version 1.70, 2002/10/11 19:27:00
|
version 1.71, 2002/10/11 20:52:13
|
Line 45 var statustop = '';
|
Line 45 var statustop = '';
|
var statusbot = ''; |
var statusbot = ''; |
var active = 0; |
var active = 0; |
var dislocked = 1; |
var dislocked = 1; |
|
var statuslocked = 0; |
|
|
var imgpath='/res/adm/pages/'; |
var imgpath='/res/adm/pages/'; |
var fontpath='/adm/lonLCDfont/'; |
var fontpath='/adm/lonLCDfont/'; |
Line 97 function syncclock(servertime) {
|
Line 98 function syncclock(servertime) {
|
function advanceclock() { |
function advanceclock() { |
var clock=new Date(); |
var clock=new Date(); |
clock.setTime(clock.getTime()+clockdelta); |
clock.setTime(clock.getTime()+clockdelta); |
|
if (!statuslocked) { |
|
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(); |
|
|
|
if (years>1000) { |
|
years=years.substring(2,4); |
|
} else { |
|
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; |
|
|
var days=""+clock.getDate(); |
if (!dislocked) { showdisplay(); } |
if (days.length<2) { days="0"+days; } |
|
var mons=""+(clock.getMonth()+1); |
|
if (mons.length<2) { mons="0"+mons; } |
|
var years=""+clock.getYear(); |
|
|
|
if (years>1000) { |
|
years=years.substring(2,4); |
|
} else { |
|
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 230 function setstatus(tp,bt) {
|
Line 231 function setstatus(tp,bt) {
|
this.document['led'].src="http://"+clienthost+imgpath+"ledblink.gif"; |
this.document['led'].src="http://"+clienthost+imgpath+"ledblink.gif"; |
statustop=tp; |
statustop=tp; |
statusbot=bt; |
statusbot=bt; |
|
statuslocked=1; |
defdis(); |
defdis(); |
endsend(); |
endsend(); |
} |
} |
Line 272 function cstrgo(currenturl,defaulturl) {
|
Line 274 function cstrgo(currenturl,defaulturl) {
|
|
|
function go(url) { |
function go(url) { |
windowcheck(); |
windowcheck(); |
|
statuslocked=0; |
this.document['led'].src="ledsend.gif"; |
this.document['led'].src="ledsend.gif"; |
if (url!='' && url!= null) { |
if (url!='' && url!= null) { |
currentURL = null; |
currentURL = null; |
Line 282 function go(url) {
|
Line 285 function go(url) {
|
|
|
function gopost(url,postdata) { |
function gopost(url,postdata) { |
windowcheck(); |
windowcheck(); |
this.document['led'].src="ledsend.gif"; |
statuslocked=0; |
|
this.document['led'].src="http://"+clienthost+imgpath+"ledsend.gif"; |
if (url!='') { |
if (url!='') { |
this.document.server.action="http://"+clienthost+url; |
this.document.server.action="http://"+clienthost+url; |
this.document.server.postdata.value=postdata; |
this.document.server.postdata.value=postdata; |
Line 295 function gopost(url,postdata) {
|
Line 299 function gopost(url,postdata) {
|
|
|
function gocmd(url,cmd) { |
function gocmd(url,cmd) { |
windowcheck(); |
windowcheck(); |
this.document['led'].src="ledsend.gif"; |
statuslocked=0; |
|
this.document['led'].src="http://"+clienthost+imgpath+"ledsend.gif"; |
if (url!='') { |
if (url!='') { |
this.document.server.action="http://"+clienthost+url; |
this.document.server.action="http://"+clienthost+url; |
this.document.server.postdata.value=''; |
this.document.server.postdata.value=''; |