From 14fe47d1b7bb65aedeb106068516b66a3d35a54d Mon Sep 17 00:00:00 2001 From: DremOS Developing Team <connorrox60@gmail.com> Date: Wed, 7 Nov 2018 15:41:20 -0600 Subject: [PATCH] Update index-open.html --- index-open.html | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/index-open.html b/index-open.html index f537704..becf040 100644 --- a/index-open.html +++ b/index-open.html @@ -3,6 +3,25 @@ <title>DremJS</title> <embed src="mopen.mp3" width="0" height="0" loop="false" autostart="true" hidden="true" /> <embed src="ambient.mp3" width="0" loop="true" autostart="true" hidden="true" /> + <script src="jquery/jquery-3.3.1.min.js"></script> +<script src="jquery/jquery-3.3.1.min.js"></script> +<script> +function startTime() { + var today = new Date(); + var h = today.getHours(); + var m = today.getMinutes(); + var s = today.getSeconds(); + m = checkTime(m); + s = checkTime(s); + document.getElementById('txt').innerHTML = + h + ":" + m + ":" + s; + var t = setTimeout(startTime, 500); +} +function checkTime(i) { + if (i < 10) {i = "0" + i}; // add zero in front of numbers < 10 + return i; +} +</script> <style> .start { position: absolute; @@ -33,6 +52,12 @@ position: absolute; bottom: 36px; right: 16px; + font-size: 12px; + } + .br4 { + position: absolute; + bottom: 50px; + right: 16px; font-size: 12px; } html { @@ -57,7 +82,8 @@ margin: 0; } </style> - <body> + <body onload="startTime();"> +<p class="cwhite br4"><div id="txt"></div></p> <p class="cwhite br3">DremJS Version 0.0.8-2a</p> <p class="cwhite br2">Build 14</p> <p class="cwhite br1">© Innovation Inc.</p>