Update index.html
This commit is contained in:
parent
6751c1f7c6
commit
90d07ea983
27
index.html
27
index.html
|
@ -1,29 +1,8 @@
|
|||
<html>
|
||||
<head>
|
||||
<script type="text/javascript">
|
||||
function startTime()
|
||||
{
|
||||
var today=new Date();
|
||||
var h=today.getHours();
|
||||
var m=today.getMinutes();
|
||||
var s=today.getSeconds();
|
||||
// add a zero in front of numbers<10
|
||||
m=checkTime(m);
|
||||
s=checkTime(s);
|
||||
document.getElementById('txt').innerHTML=h+":"+m+":"+s;
|
||||
t=setTimeout('startTime()',500);
|
||||
}
|
||||
function checkTime(i)
|
||||
{
|
||||
if (i<10)
|
||||
{
|
||||
i="0" + i;
|
||||
}
|
||||
return i;
|
||||
}
|
||||
</script>
|
||||
<h1>What time is it for me?<h1>
|
||||
<div class="cleanslate w24tz-current-time w24tz-large" style="display: inline-block !important; visibility: hidden !important; min-width:300px !important; min-height:145px !important;"><p><a href="//24timezones.com/Portland/time" style="text-decoration: none" class="clock24" id="tz24-1619160919-c1202-eyJob3VydHlwZSI6MTIsInNob3dkYXRlIjoiMSIsInNob3dzZWNvbmRzIjoiMSIsImNvbnRhaW5lcl9pZCI6ImNsb2NrX2Jsb2NrX2NiNjA4MjZmNTcwZmQ2ZCIsInR5cGUiOiJkYiIsImxhbmciOiJlbiJ9" title="Portland Time" target="_blank" rel="nofollow">Time in Portland</a></p><div id="clock_block_cb60826f570fd6d"></div></div>
|
||||
<script type="text/javascript" src="//w.24timezones.com/l.js" async></script>
|
||||
</head>
|
||||
<body onload="startTime()">
|
||||
<div id="txt"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Reference in New Issue