// show or hide irc info based on page URL
if (!window.location.pathname.match(RegExp("\/2021\/live.*"))) {
var irc_info = [
- "Freenode IRC channel for ",
- stream.name,
- ": ",
+ "This room's channel: ",
m("strong", ["/join ", stream.ircChannel])
];
+ // set css to show irc links in sidebar
+ document.querySelector('#irc-links-panel').style.display = "block";
} else {
var irc_info = [
m("strong", [
m("a", { target: "_blank", href: "https://my.fsf.org/civicrm/event/info?reset=1&id=92" }, "Register"),
]),
- " to access IRC rooms"
+ " gratis to access more IRC rooms. ",
+ m("strong", [
+ m("a", { href: "/2021/registered/live/" }, "Already registered?"),
+ ])
];
}
"Conference-wide Freenode IRC channel: ",
m("strong", "/join #libreplanet")
]),
- m("li", irc_info),
+ m("li",
+ m("div", { class: "special-irc" },
+ irc_info)
+ ),
// m("li", [
// "Conference-wide Mumble (voice chat) server: ",
// m("strong", "mumble.fsf.org")
m("strong", "#libreplanet")
])
]),
- m("h2", "IRC")
];
};