Created
November 6, 2013 04:38
-
-
Save 666threesixes666/7330975 to your computer and use it in GitHub Desktop.
index.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
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(function(){startTime()},500); | |
} | |
function checkTime(i) | |
{ | |
if (i<10) | |
{ | |
i="0" + i; | |
} | |
return i; | |
} | |
</script> | |
</head> | |
<body onload="startTime()"> | |
<header> | |
<nav> | |
<a href="index.html">Home</a> | | |
<a href="phpBB">Forums</a> | | |
<a href="mediawiki">mediawiki</a> | | |
<a href="dokuwiki">dokuwiki</a> | | |
<a href="mantisbt">bugs</a> | |
</nav> | |
</header> | |
<!--#include virtual="quote.txt" --> | |
<!--#echo var="https://www.google.com/" --> | |
<div id="txt"></div> | |
<!--#flastmod virtual="index.html" --> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment