Skip to content

Commit

Permalink
Merge pull request #706 from jackyaz/patch-1
Browse files Browse the repository at this point in the history
www: Use interval for clock & boot time
  • Loading branch information
RMerl committed Feb 25, 2021
2 parents 7bc6c9b + 6e2efe4 commit 29235c4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions release/src/router/www/Main_LogStatus_Content.asp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
<script type="text/javascript" language="JavaScript" src="/validator.js"></script>
<script language="JavaScript" type="text/javascript" src="/js/jquery.js"></script>
<script>
var clockinterval;
var bootinterval;
function showclock(){
JS_timeObj.setTime(systime_millsec);
systime_millsec += 1000;
Expand All @@ -30,7 +32,6 @@ function showclock(){
timezone;*/ // Viz remove GMT timezone 2011.08
JS_timeObj.getFullYear();
document.getElementById("system_time").innerHTML = JS_timeObj2;
setTimeout("showclock()", 1000);
if(navigator.appName.indexOf("Microsoft") >= 0)
document.getElementById("textarea").style.width = "99%";
//document.getElementById("banner3").style.height = "13";
Expand All @@ -47,7 +48,6 @@ function showbootTime(){
document.getElementById("boot_minutes").innerHTML = Minutes;
document.getElementById("boot_seconds").innerHTML = Seconds;
boottime += 1;
setTimeout("showbootTime()", 1000);
}
function clearLog(){
document.form1.target = "hidden_frame";
Expand All @@ -68,6 +68,8 @@ function initial(){
show_menu();
showclock();
showbootTime();
clockinterval = setInterval(showclock, 1000);
bootinterval = setInterval(showbootTime, 1000);
showDST();
document.getElementById('textarea').scrollTop = 9999999;//make Scroll_y bottom
setTimeout("get_log_data();", 100);
Expand Down

0 comments on commit 29235c4

Please sign in to comment.