Skip to content

Commit

Permalink
Update plugins.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen authored Jan 1, 2021
1 parent cf55745 commit 0f57144
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ input.addEventListener("keyup", function(event) {
function timer() {
setTimeout(function(){ alert(text); }, time);
}
var vartime=setInterval(function(){clock()},1);
function clock(){
var d=new Date();
var t=d.toLocaleTimeString();
document.getElementById("clock").innerHTML=t;
}
/* ----------------------------------------------------------------*/
/* browser */
/* ----------------------------------------------------------------*/
Expand Down

0 comments on commit 0f57144

Please sign in to comment.