diff options
author | RaindropsSys <raindrops@equestria.dev> | 2023-11-17 23:25:29 +0100 |
---|---|---|
committer | RaindropsSys <raindrops@equestria.dev> | 2023-11-17 23:25:29 +0100 |
commit | 953ddd82e48dd206cef5ac94456549aed13b3ad5 (patch) | |
tree | 8f003106ee2e7f422e5a22d2ee04d0db302e66c0 /pages/schedules.inc | |
parent | 62a9199846b0c07c03218703b33e8385764f42d9 (diff) | |
download | pluralconnect-953ddd82e48dd206cef5ac94456549aed13b3ad5.tar.gz pluralconnect-953ddd82e48dd206cef5ac94456549aed13b3ad5.tar.bz2 pluralconnect-953ddd82e48dd206cef5ac94456549aed13b3ad5.zip |
Updated 30 files and deleted 2976 files (automated)
Diffstat (limited to 'pages/schedules.inc')
-rw-r--r-- | pages/schedules.inc | 60 |
1 files changed, 19 insertions, 41 deletions
diff --git a/pages/schedules.inc b/pages/schedules.inc index 03277cc..dde2981 100644 --- a/pages/schedules.inc +++ b/pages/schedules.inc @@ -33,19 +33,8 @@ global $use2023UI; <div class="container"> <h2>Schedules</h2> - <h4>World clock</h4> - <div id="schedules" style="margin-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 20px;"> <div> - <div id="live-time-other2-outer" class="day-gradient" style="text-align: center; background-color: rgba(255, 255, 255, .1); padding: 20px 0; border-radius: 10px; margin-bottom: 20px;"> - <b>Meadowsys</b><br> - <h3 id="live-time-other2">--:--</h3> - </div> - - <hr style="display: none;" class="schedules-separator"> - </div> - - <div> <div id="live-time-other-outer" class="day-gradient" style="text-align: center; background-color: rgba(255, 255, 255, .1); padding: 20px 0; border-radius: 10px; margin-bottom: 20px;"> <b><?= $app["other"]["name"] ?></b><br> <h3 id="live-time-other">--:--</h3> @@ -69,6 +58,13 @@ global $use2023UI; <h3 id="live-time-raindrops">--:--</h3> </div> </div> + + <div> + <div id="live-time-moonwind-outer" class="day-gradient" style="text-align: center; background-color: rgba(255, 255, 255, .1); padding: 20px 0; border-radius: 10px; margin-bottom: 20px;"> + <b>Moonwind System</b><br> + <h3 id="live-time-moonwind">--:--</h3> + </div> + </div> </div> </div> @@ -87,31 +83,31 @@ global $use2023UI; } function updateTime() { - let time0 = (new Intl.DateTimeFormat('en-US', { - timeZone: 'America/Los_Angeles', + let time1 = (new Intl.DateTimeFormat('en-US', { + timeZone: 'Europe/Paris', hour: 'numeric', minute: '2-digit', - hour12: true + hour12: false })).format(new Date()); - document.getElementById("live-time-other2").innerText = time0; - document.getElementById("live-time-other2-outer").style.backgroundPositionY = getDayPercentage(time0) + "%"; + document.getElementById("live-time-raindrops").innerText = time1; + document.getElementById("live-time-raindrops-outer").style.backgroundPositionY = getDayPercentage(time1) + "%"; - let time1 = (new Intl.DateTimeFormat('en-US', { - timeZone: 'Europe/Paris', + let time4 = (new Intl.DateTimeFormat('en-US', { + timeZone: 'Europe/Kyiv', hour: 'numeric', minute: '2-digit', - hour12: true + hour12: false })).format(new Date()); - document.getElementById("live-time-raindrops").innerText = time1; - document.getElementById("live-time-raindrops-outer").style.backgroundPositionY = getDayPercentage(time1) + "%"; + document.getElementById("live-time-moonwind").innerText = time4; + document.getElementById("live-time-moonwind-outer").style.backgroundPositionY = getDayPercentage(time4) + "%"; let time2 = (new Intl.DateTimeFormat('en-US', { timeZone: 'Europe/London', hour: 'numeric', minute: '2-digit', - hour12: true + hour12: false })).format(new Date()); document.getElementById("live-time-cloudburst").innerText = time2; @@ -121,24 +117,11 @@ global $use2023UI; timeZone: 'America/Chicago', hour: 'numeric', minute: '2-digit', - hour12: true + hour12: false })).format(new Date()); document.getElementById("live-time-other").innerText = time3; document.getElementById("live-time-other-outer").style.backgroundPositionY = getDayPercentage(time3) + "%"; - - document.getElementById("live-time-other1").innerText = (new Intl.DateTimeFormat('en-US', { - timeZone: 'America/Anchorage', - hour: 'numeric', - minute: '2-digit', - hour12: true - })).format(new Date()); - document.getElementById("live-time-other2").innerText = (new Intl.DateTimeFormat('en-US', { - timeZone: 'America/Vancouver', - hour: 'numeric', - minute: '2-digit', - hour12: true - })).format(new Date()); } updateTime(); @@ -148,9 +131,4 @@ global $use2023UI; }, 10000); </script> -<?php if ($use2023UI) { - echo "<div class='container'><hr></div>"; - require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/fragments/evening.inc"; -} ?> - <?php require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/components/footer.inc'; ?> |