Rewrite of timerpage #7
@ -1,3 +1,7 @@
|
|||||||
body {
|
body {
|
||||||
font-size:0.3em;
|
font-size:0.3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.moverLogo {
|
||||||
|
height: 80px !important;
|
||||||
|
}
|
@ -112,39 +112,46 @@ animation:fade 1000ms infinite;
|
|||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--my-end-left: 99%;
|
||||||
|
--my-end-top: 99%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#moveClock {
|
#moveClock {
|
||||||
font-size: xx-large;
|
font-size: 6em;
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
-webkit-animation: moveX 40s linear 0s infinite alternate, moveY 45s linear 0s infinite alternate;
|
-webkit-animation: moveX 40s linear 0s infinite alternate, moveY 45s linear 0s infinite alternate;
|
||||||
-moz-animation: moveX 40s linear 0s infinite alternate, moveY 45s linear 0s infinite alternate;
|
-moz-animation: moveX 40s linear 0s infinite alternate, moveY 45s linear 0s infinite alternate;
|
||||||
-o-animation: moveX 40s linear 0s infinite alternate, moveY 45s linear 0s infinite alternate;
|
-o-animation: moveX 40s linear 0s infinite alternate, moveY 45s linear 0s infinite alternate;
|
||||||
animation: moveX 40s linear 0s infinite alternate, moveY 45s linear 0s infinite alternate;
|
animation: moveX 40s linear 0s infinite alternate, moveY 45s linear 0s infinite alternate;
|
||||||
|
transition: all 0.8s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@-webkit-keyframes moveX {
|
@-webkit-keyframes moveX {
|
||||||
from { left: 0; } to { left: 100%; }
|
from { left: 0; } to { left: var(--my-end-left) }
|
||||||
}
|
}
|
||||||
@-moz-keyframes moveX {
|
@-moz-keyframes moveX {
|
||||||
from { left: 0; } to { left: 100%; }
|
from { left: 0; } to { left: var(--my-end-left); }
|
||||||
}
|
}
|
||||||
@-o-keyframes moveX {
|
@-o-keyframes moveX {
|
||||||
from { left: 0; } to { left: 100%; }
|
from { left: 0; } to { left: var(--my-end-left); }
|
||||||
}
|
}
|
||||||
@keyframes moveX {
|
@keyframes moveX {
|
||||||
from { left: 0; } to { left: 100%; }
|
from { left: 0; } to { left: var(--my-end-left); }
|
||||||
}
|
}
|
||||||
|
|
||||||
@-webkit-keyframes moveY {
|
@-webkit-keyframes moveY {
|
||||||
from { top: 0; } to { top: 100%; }
|
from { top: 0; } to { top: var(--my-end-top); }
|
||||||
}
|
}
|
||||||
@-moz-keyframes moveY {
|
@-moz-keyframes moveY {
|
||||||
from { top: 0; } to { top: 100%; }
|
from { top: 0; } to { top: var(--my-end-top); }
|
||||||
}
|
}
|
||||||
@-o-keyframes moveY {
|
@-o-keyframes moveY {
|
||||||
from { top: 0; } to { top: 100%; }
|
from { top: 0; } to { top: var(--my-end-top); }
|
||||||
}
|
}
|
||||||
@keyframes moveY {
|
@keyframes moveY {
|
||||||
from { top: 0; } to { top: 100%; }
|
from { top: 0; } to { top: var(--my-end-top); }
|
||||||
}
|
}
|
@ -28,6 +28,10 @@ let dataFrame = {};
|
|||||||
let timeDiffToServer = 0;
|
let timeDiffToServer = 0;
|
||||||
let sessionToken = ""; // Our current session token
|
let sessionToken = ""; // Our current session token
|
||||||
|
|
||||||
|
// Handle the screensaver to fit the screen
|
||||||
|
setTimeout(handleDVD, 200);
|
||||||
|
window.addEventListener("resize", handleDVD);
|
||||||
|
|
||||||
// Handle connection event
|
// Handle connection event
|
||||||
socket.onopen = function (e) {
|
socket.onopen = function (e) {
|
||||||
socket.send("new client");
|
socket.send("new client");
|
||||||
@ -245,6 +249,14 @@ function handleUpdate() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handleDVD() {
|
||||||
|
const objHeight = document.body.offsetHeight - screensaverText.offsetHeight;
|
||||||
|
const objWidth = document.body.offsetWidth - screensaverText.offsetWidth;
|
||||||
|
document.documentElement.style.setProperty('--my-end-left', objWidth + "px");
|
||||||
|
document.documentElement.style.setProperty('--my-end-top', objHeight + "px");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Additional documentation
|
Additional documentation
|
||||||
|
|
||||||
|
4631
static/logo/logoProposal-invert.svg
Normal file
4631
static/logo/logoProposal-invert.svg
Normal file
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 145 KiB |
@ -49,10 +49,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="moveClock" style="display: none;">
|
<div id="moveClock" style="display: none;">
|
||||||
<div id="screensaverClock">
|
<img src="logo/logoProposal-invert.svg" alt="openCountdown" height="180px" class="moverLogo" >
|
||||||
|
<center><div id="screensaverClock">
|
||||||
00:00:00
|
00:00:00
|
||||||
</div>
|
</div>
|
||||||
openCountdown
|
</center>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!-- Load scripts -->
|
<!-- Load scripts -->
|
||||||
<script src="js/reconnecting-websocket.min.js"></script>
|
<script src="js/reconnecting-websocket.min.js"></script>
|
||||||
|
Loading…
Reference in New Issue
Block a user