Make the clock page prettier (as in, with the prettier tool, not UI)

pull/237/head
ElementalAlchemist 3 years ago committed by Mike Lang
parent 3fe2848e60
commit a0d2dc99e1

@ -1,19 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<head>
<meta charset="utf-8" />
<title>Stream Time</title>
<style type="text/css">
#clock {
margin-bottom: 3px;
}
</style>
</head>
<body>
</head>
<body>
<div id="clock"></div>
<div>
<input type="number" id="delay" value="10" min="0"> seconds of delay
</div>
<div><input type="number" id="delay" value="10" min="0" /> seconds of delay</div>
<script type="text/javascript">
const BUS_START_TIME = 1605290400;
@ -22,11 +20,11 @@
if (isNaN(delay)) {
delay = 0;
}
let time = (new Date().getTime()) / 1000 - delay - BUS_START_TIME;
let time = new Date().getTime() / 1000 - delay - BUS_START_TIME;
let sign = "";
if (time < 0) {
time = -time
time = -time;
sign = "-";
}
@ -46,5 +44,5 @@
setInterval(updateClock, 1000);
</script>
</body>
</body>
</html>

Loading…
Cancel
Save