First commit.

A simple webclock written in PHP, HTML, and js. No CSS is provided.
This commit is contained in:
efrick
2020-03-31 16:54:09 -04:00
commit 453a3c561f
2 changed files with 46 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
window.onload = startInterval;
function startInterval(){
setInterval("startTime();",1000);
}
function startTime(){
var current_time = new Date();
var formated_time = current_time.getHours() + ":"
+ current_time.getMinutes() + ":"
+ current_time.getSeconds();
document.getElementById('time_title').innerHTML = "Time is: " + formated_time;
document.getElementById('time_body').innerHTML = Date();
document.getElementById('time_test').innerHTML = current_time.getDate();
}