mroe changes...

This commit is contained in:
2015-02-24 14:21:01 -05:00
parent 986051529a
commit dfd64ba4f9
10 changed files with 48 additions and 10 deletions

1
lib/time.inc.php Executable file
View File

@@ -0,0 +1 @@
<?php echo date('F d, Y H:i:s') ?>

19
lib/timer.js Executable file
View File

@@ -0,0 +1,19 @@
function doAjaxGet(dataSource) {
if(navigator.appName == "Microsoft Internet Explorer") {
objHTTP = new ActiveXObject("Microsoft.XMLHTTP");
} else {
objHTTP = new XMLHttpRequest();
}
objHTTP.open("POST", dataSource, true);
objHTTP.onreadystatechange = function()
{
if (objHTTP.readyState == 4 && objHTTP.status == 200) {
document.getElementById('oClock').innerHTML = objHTTP.responseText;
}
}
objHTTP.send('null');
}
function startclock() {
doAjaxGet('time.inc.php');
setTimeout('startclock()',1000);
}