From 44e5af67f612fc2f572669f4f6efd94599b39135 Mon Sep 17 00:00:00 2001 From: Ral Date: Wed, 29 Dec 2021 00:41:09 +0100 Subject: [PATCH] Fix JS for older browsers --- public/cms/index.html | 4 +-- public/hashtag/index.html | 4 +-- public/index.html | 4 +-- ...6f431aa1d363b933809e3877abb8f4354f2bae1.js | 30 +++++++++++++++++++ ...7aef2c34acb2d0834c5b786ce353789a500b5b2.js | 17 ----------- ...fda601f0c32c541bb3b060756cc5e4674a9558.js} | 4 +-- public/music-and-posts/index.html | 4 +-- public/music/index.html | 4 +-- public/schedule/index.html | 4 +-- 9 files changed, 44 insertions(+), 31 deletions(-) create mode 100644 public/js/config.2fd38d4779fef41f713ebc0f66f431aa1d363b933809e3877abb8f4354f2bae1.js delete mode 100644 public/js/config.aeeb72c33acfda7ed505068737aef2c34acb2d0834c5b786ce353789a500b5b2.js rename public/{main.b95b770378f5aa404878194a2a67b6ff6ac77b6ab6f98f536485ed4719f3b7ea.js => main.92ebdf5660681a66f540837f65fda601f0c32c541bb3b060756cc5e4674a9558.js} (99%) diff --git a/public/cms/index.html b/public/cms/index.html index fdb9b47..8615e02 100644 --- a/public/cms/index.html +++ b/public/cms/index.html @@ -6,7 +6,7 @@ rC3 NOWHERE - +
@@ -14,6 +14,6 @@ - + \ No newline at end of file diff --git a/public/hashtag/index.html b/public/hashtag/index.html index 5c40c2a..500c198 100644 --- a/public/hashtag/index.html +++ b/public/hashtag/index.html @@ -5,7 +5,7 @@ rC3 NOWHERE - +
@@ -13,6 +13,6 @@ - + \ No newline at end of file diff --git a/public/index.html b/public/index.html index 8db9837..36c511e 100644 --- a/public/index.html +++ b/public/index.html @@ -5,7 +5,7 @@ rC3 NOWHERE - +
@@ -13,6 +13,6 @@ - + \ No newline at end of file diff --git a/public/js/config.2fd38d4779fef41f713ebc0f66f431aa1d363b933809e3877abb8f4354f2bae1.js b/public/js/config.2fd38d4779fef41f713ebc0f66f431aa1d363b933809e3877abb8f4354f2bae1.js new file mode 100644 index 0000000..9d1667a --- /dev/null +++ b/public/js/config.2fd38d4779fef41f713ebc0f66f431aa1d363b933809e3877abb8f4354f2bae1.js @@ -0,0 +1,30 @@ +(() => { + // ns-params:@params + var cmsFetchInterval = 500; + var cmsURL = "/content/live"; + var mastodonFetchInterval = 120; + var mastodonURL = "/toots-rc3-chaos.social.json"; + var musicFetchInterval = 1; + var musicURL = "/music.json"; + var scheduleFetchInterval = 60; + var scheduleURL = "/everything.schedule.json"; + var twitterFetchInterval = 120; + var twitterURL = "/tweets-rc3.json"; + var workerBaseURL = "/"; + + // + window.infoBeamerConfig = /* @__PURE__ */ new Map(); + window.infoBeamerConfig.set("workerBaseURL", workerBaseURL); + window.infoBeamerConfig.set("scheduleURL", scheduleURL); + window.infoBeamerConfig.set("scheduleFetchInterval", scheduleFetchInterval); + window.infoBeamerConfig.set("twitterURL", twitterURL); + window.infoBeamerConfig.set("twitterFetchInterval", twitterFetchInterval); + window.infoBeamerConfig.set("mastodonURL", mastodonURL); + window.infoBeamerConfig.set("mastodonFetchInterval", mastodonFetchInterval); + window.infoBeamerConfig.set("musicURL", musicURL); + window.infoBeamerConfig.set("musicFetchInterval", musicFetchInterval); + window.infoBeamerConfig.set("cmsURL", cmsURL); + window.infoBeamerConfig.set("cmsFetchInterval", cmsFetchInterval); + console.log("Info Beamer Configuration: "); + console.log(window.infoBeamerConfig); +})(); diff --git a/public/js/config.aeeb72c33acfda7ed505068737aef2c34acb2d0834c5b786ce353789a500b5b2.js b/public/js/config.aeeb72c33acfda7ed505068737aef2c34acb2d0834c5b786ce353789a500b5b2.js deleted file mode 100644 index dd1d859..0000000 --- a/public/js/config.aeeb72c33acfda7ed505068737aef2c34acb2d0834c5b786ce353789a500b5b2.js +++ /dev/null @@ -1,17 +0,0 @@ -(() => { - // - window.infoBeamerConfig = /* @__PURE__ */ new Map(); - window.infoBeamerConfig.set("workerBaseURL", "/"); - window.infoBeamerConfig.set("scheduleURL", "/everything.schedule.json"); - window.infoBeamerConfig.set("scheduleFetchInterval", 60); - window.infoBeamerConfig.set("twitterURL", "/tweets-rc3.json"); - window.infoBeamerConfig.set("twitterFetchInterval", 120); - window.infoBeamerConfig.set("mastodonURL", "/toots-rc3-chaos.social.json"); - window.infoBeamerConfig.set("mastodonFetchInterval", 120); - window.infoBeamerConfig.set("musicURL", "/music.json"); - window.infoBeamerConfig.set("musicFetchInterval", 1); - window.infoBeamerConfig.set("cmsURL", "/content/live"); - window.infoBeamerConfig.set("cmsFetchInterval", 500); - console.log("Info Beamer Configuration: "); - console.log(window.infoBeamerConfig); -})(); diff --git a/public/main.b95b770378f5aa404878194a2a67b6ff6ac77b6ab6f98f536485ed4719f3b7ea.js b/public/main.92ebdf5660681a66f540837f65fda601f0c32c541bb3b060756cc5e4674a9558.js similarity index 99% rename from public/main.b95b770378f5aa404878194a2a67b6ff6ac77b6ab6f98f536485ed4719f3b7ea.js rename to public/main.92ebdf5660681a66f540837f65fda601f0c32c541bb3b060756cc5e4674a9558.js index 0d7335c..8d5df8a 100644 --- a/public/main.b95b770378f5aa404878194a2a67b6ff6ac77b6ab6f98f536485ed4719f3b7ea.js +++ b/public/main.92ebdf5660681a66f540837f65fda601f0c32c541bb3b060756cc5e4674a9558.js @@ -529,12 +529,12 @@ let birth; if (age > maxImageAge) { index = random_integer(items.length); - item = items.at(index); + item = items[index]; birth = time; age = 0; } else { index = image_index(); - item = items.at(index); + item = items[index]; birth = image_birth_time(); } inner = html` diff --git a/public/music-and-posts/index.html b/public/music-and-posts/index.html index f6225e4..c96be8b 100644 --- a/public/music-and-posts/index.html +++ b/public/music-and-posts/index.html @@ -5,7 +5,7 @@ rC3 NOWHERE - +
@@ -13,6 +13,6 @@ - + \ No newline at end of file diff --git a/public/music/index.html b/public/music/index.html index a75db07..4ff4475 100644 --- a/public/music/index.html +++ b/public/music/index.html @@ -5,7 +5,7 @@ rC3 NOWHERE - +
@@ -13,6 +13,6 @@ - + \ No newline at end of file diff --git a/public/schedule/index.html b/public/schedule/index.html index c806a73..3c5ad5d 100644 --- a/public/schedule/index.html +++ b/public/schedule/index.html @@ -6,7 +6,7 @@ rC3 NOWHERE - +
@@ -14,6 +14,6 @@ - + \ No newline at end of file