mirror of
https://github.com/Extended-Thunder/send-later.git
synced 2026-10-16 00:49:01 +02:00
Enable the user guide to be built locally so that formatting and content changes can be reviewed before submission to GitHub. Also, add some warnings for the production and beta versions of the user guide letting people know which version they're reading and pointing them at the other one.
17 lines
384 B
JavaScript
17 lines
384 B
JavaScript
function onLoad() {
|
|
let isBeta = window.location.href.includes('/next');
|
|
console.log(isBeta);
|
|
for (element of document.getElementsByClassName("beta-only")) {
|
|
element.hidden = !isBeta;
|
|
}
|
|
for (element of document.getElementsByClassName("production-only")) {
|
|
element.hidden = isBeta;
|
|
}
|
|
}
|
|
|
|
window.addEventListener(
|
|
"DOMContentLoaded",
|
|
onLoad,
|
|
{ once: true },
|
|
);
|