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,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta charset="utf-8" />
<title>Stream Time</title>
<style type="text/css">
#clock {
@ -11,9 +11,7 @@
</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 = "-";
}

Loading…
Cancel
Save