version 1.55, 2002/05/24 19:45:14
|
version 1.60, 2002/07/15 19:45:18
|
Line 66 var dislocked = 1;
|
Line 66 var dislocked = 1;
|
var imgpath='/res/adm/pages/'; |
var imgpath='/res/adm/pages/'; |
|
|
var currentURL=''; |
var currentURL=''; |
|
var reloadURL=''; |
var currentStale=1; |
var currentStale=1; |
var menucltim; |
var menucltim; |
|
|
var clock=new Date(); |
var constructURL=''; |
|
|
|
var clockdelta=0; |
|
|
// not used (yet) |
// not used (yet) |
// var w_Annotator; |
// var w_Annotator; |
Line 103 for (var i=1;i<=3;i++) {
|
Line 106 for (var i=1;i<=3;i++) {
|
var clienthost=window.location.host; |
var clienthost=window.location.host; |
var clientwindow=opener; |
var clientwindow=opener; |
|
|
|
function syncclock(servertime) { |
|
var clientclock=new Date; |
|
clockdelta=servertime-clientclock.getTime(); |
|
} |
|
|
function advanceclock() { |
function advanceclock() { |
clock.setTime(clock.getTime()+1000); |
var clock=new Date(); |
statusbot=clock.getHours()+':'+clock.getMinutes()+':'+clock.getSeconds(); |
clock.setTime(clock.getTime()+clockdelta); |
if (!dislocked) { display(); } |
|
|
var days=""+clock.getDate(); |
|
if (days.length<2) { days="0"+days; } |
|
var mons=""+(clock.getMonth()+1); |
|
if (mons.length<2) { mons="0"+mons; } |
|
var years=""+clock.getYear(); |
|
years=years.substring(1,3); |
|
statustop=mons+'/'+days+'/'+years; |
|
|
|
var secs=""+clock.getSeconds(); |
|
if (secs.length<2) { secs="0"+secs; } |
|
var mins=""+clock.getMinutes(); |
|
if (mins.length<2) { mins="0"+mins; } |
|
var hours=""+clock.getHours(); |
|
if (hours.length<2) { hours=" "+hours; } |
|
statusbot=hours+':'+mins+':'+secs; |
|
|
|
if (!dislocked) { showdisplay(); } |
|
|
setTimeout('advanceclock();',1000); |
setTimeout('advanceclock();',1000); |
} |
} |
|
|
Line 151 function deactivate () {
|
Line 177 function deactivate () {
|
} |
} |
|
|
function display(utext,ltext) { |
function display(utext,ltext) { |
|
this.window.focus(); |
|
showdisplay(utext,ltext); |
|
} |
|
|
|
function showdisplay(utext,ltext) { |
var i; var ch; |
var i; var ch; |
this.window.focus(); |
|
dislocked=1; |
dislocked=1; |
if (utext == null) { utext = '';} |
if (utext == null) { utext = '';} |
if (ltext == null) { ltext = '';} |
if (ltext == null) { ltext = '';} |