Diff for /loncom/html/res/adm/pages/menu.html between versions 1.120 and 1.121

version 1.120, 2007/04/24 23:26:15 version 1.121, 2007/08/30 22:56:32
Line 53  if (lonhttpdport == null) { Line 53  if (lonhttpdport == null) {
     var lonhttpdport='8080';      var lonhttpdport='8080';
 }  }
   
   var protocol="http://";
   if (lonhttpdport == 443) {
       protocol="https://"
   }
 var imgpath=':'+lonhttpdport+'/res/adm/pages/';  var imgpath=':'+lonhttpdport+'/res/adm/pages/';
 var fontpath=':'+lonhttpdport+'/adm/lonLCDfont/';  var fontpath=':'+lonhttpdport+'/adm/lonLCDfont/';
 var currentURL='';  var currentURL='';
Line 142  function advanceclock() { Line 146  function advanceclock() {
   
 function windowcheck() {  function windowcheck() {
    if (clientwindow==null || clientwindow.closed) {     if (clientwindow==null || clientwindow.closed) {
       clientwindow=window.open("http://"+clienthost+"/",'',        clientwindow=window.open(protocol+clienthost+"/",'',
       "height=400,width=440,"+        "height=400,width=440,"+
       "scrollbars=1,toolbar=1,status=1,resizable=1,location=1,menubar=1,"+        "scrollbars=1,toolbar=1,status=1,resizable=1,location=1,menubar=1,"+
       "left=190,top=15,screenX=190,screenY=15");         "left=190,top=15,screenX=190,screenY=15"); 
Line 153  function windowcheck() { Line 157  function windowcheck() {
   
 function navwindowcheck() {  function navwindowcheck() {
    if (navwindow==null || navwindow.closed) {     if (navwindow==null || navwindow.closed) {
       navwindow=window.open("http://"+clienthost+"/adm/navmaps#curloc",        navwindow=window.open(protocol+clienthost+"/adm/navmaps#curloc",
                   "loncapanav","height=600,width=400,scrollbars=1");                     "loncapanav","height=600,width=400,scrollbars=1"); 
    }     }
 }  }
Line 209  function defdis() { Line 213  function defdis() {
   
 function switchbutton(row,col,imgsrc,texttop,textbot,action,desc) {  function switchbutton(row,col,imgsrc,texttop,textbot,action,desc) {
    var idx=10*row+col;     var idx=10*row+col;
    this.document['b'+idx].src="http://"+clienthost+imgpath+imgsrc;     this.document['b'+idx].src=protocol+clienthost+imgpath+imgsrc;
    hr[idx]=action;     hr[idx]=action;
    dt[idx]=texttop;     dt[idx]=texttop;
    db[idx]=textbot;     db[idx]=textbot;
Line 223  function switchbutton(row,col,imgsrc,tex Line 227  function switchbutton(row,col,imgsrc,tex
   
 function clearbut(row,col) {  function clearbut(row,col) {
    var idx=10*row+col;     var idx=10*row+col;
    this.document['b'+idx].src="http://"+clienthost+imgpath+'empty.gif';     this.document['b'+idx].src=protocol+clienthost+imgpath+'empty.gif';
    hr[idx]='javascript:defdis();';     hr[idx]='javascript:defdis();';
    dt[idx]='';     dt[idx]='';
    db[idx]='';     db[idx]='';
Line 236  function clearbut(row,col) { Line 240  function clearbut(row,col) {
 }  }
   
 function setstatus(tp,bt) {  function setstatus(tp,bt) {
    this.document['led'].src="http://"+clienthost+imgpath+"ledblink.gif";     this.document['led'].src=protocol+clienthost+imgpath+"ledblink.gif";
    statustop=tp;     statustop=tp;
    statusbot=bt;     statusbot=bt;
    statuslocked=1;     statuslocked=1;
Line 246  function setstatus(tp,bt) { Line 250  function setstatus(tp,bt) {
 function go(url) {  function go(url) {
    windowcheck();     windowcheck();
    statuslocked=0;     statuslocked=0;
    this.document['led'].src="http://"+clienthost+imgpath+"ledsend.gif";     this.document['led'].src=protocol+clienthost+imgpath+"ledsend.gif";
    if (url!='' && url!= null) {     if (url!='' && url!= null) {
       currentURL = null;        currentURL = null;
       currentSymb= null;        currentSymb= null;
       this.document.server.target='loncapaclient';        this.document.server.target='loncapaclient';
       this.document.server.action="http://"+clienthost+url;        this.document.server.action=protocol+clienthost+url;
       this.document.server.postdata.value='';        this.document.server.postdata.value='';
       this.document.server.command.value='';        this.document.server.command.value='';
       this.document.server.url.value='';        this.document.server.url.value='';
Line 268  function gonav(url) { Line 272  function gonav(url) {
    } else {     } else {
       this.document.server.target="loncapaclient";        this.document.server.target="loncapaclient";
    }      } 
    this.document['led'].src="http://"+clienthost+imgpath+"ledsend.gif";     this.document['led'].src=protocol+clienthost+imgpath+"ledsend.gif";
    if (url!='' && url!= null) {     if (url!='' && url!= null) {
        this.document.server.action="http://"+clienthost+url;         this.document.server.action=protocol+clienthost+url;
        this.document.server.postdata.value=currentURL;         this.document.server.postdata.value=currentURL;
        this.document.server.command.value='';         this.document.server.command.value='';
        this.document.server.url.value='';         this.document.server.url.value='';
Line 282  function gonav(url) { Line 286  function gonav(url) {
 function gopost(url,postdata,makenewwin) {  function gopost(url,postdata,makenewwin) {
    windowcheck();     windowcheck();
    statuslocked=0;     statuslocked=0;
    this.document['led'].src="http://"+clienthost+imgpath+"ledsend.gif";     this.document['led'].src=protocol+clienthost+imgpath+"ledsend.gif";
    if (url!='') {     if (url!='') {
       if (makenewwin) {        if (makenewwin) {
          var LONcomWin=window.open("http://"+clienthost+"/adm/rat/empty.html",           var LONcomWin=window.open(protocol+clienthost+"/adm/rat/empty.html",
                        'LONcom',                         'LONcom',
                        "height=600,width=600,"+                         "height=600,width=600,"+
       "scrollbars=1,toolbar=0,status=0,resizable=1,location=0,menubar=0");         "scrollbars=1,toolbar=0,status=0,resizable=1,location=0,menubar=0"); 
Line 293  function gopost(url,postdata,makenewwin) Line 297  function gopost(url,postdata,makenewwin)
       } else {        } else {
          this.document.server.target='loncapaclient';           this.document.server.target='loncapaclient';
       }        }
       this.document.server.action="http://"+clienthost+url;        this.document.server.action=protocol+clienthost+url;
       this.document.server.postdata.value=postdata;        this.document.server.postdata.value=postdata;
       this.document.server.command.value='';        this.document.server.command.value='';
       this.document.server.url.value='';        this.document.server.url.value='';
Line 305  function gopost(url,postdata,makenewwin) Line 309  function gopost(url,postdata,makenewwin)
 function gocmd(url,cmd) {  function gocmd(url,cmd) {
    windowcheck();     windowcheck();
    statuslocked=0;     statuslocked=0;
    this.document['led'].src="http://"+clienthost+imgpath+"ledsend.gif";     this.document['led'].src=protocol+clienthost+imgpath+"ledsend.gif";
    if (url!='') {     if (url!='') {
       this.document.server.target='loncapaclient';        this.document.server.target='loncapaclient';
       this.document.server.action="http://"+clienthost+url;        this.document.server.action=protocol+clienthost+url;
       this.document.server.postdata.value='';        this.document.server.postdata.value='';
       this.document.server.command.value=cmd;        this.document.server.command.value=cmd;
       this.document.server.url.value=currentURL;        this.document.server.url.value=currentURL;
Line 366  function extenddispclose() { Line 370  function extenddispclose() {
 function extenddisp() {  function extenddisp() {
    go('');     go('');
    w_extdisp_flag=1;     w_extdisp_flag=1;
    extdisp=window.open("http://"+clienthost+"/adm/rat/loading.html",     extdisp=window.open(protocol+clienthost+"/adm/rat/loading.html",
                "ExtDisp", "scrollbars=1,width=400,height=450");                 "ExtDisp", "scrollbars=1,width=400,height=450");
 }  }
   
Line 398  function drawwindow() { Line 402  function drawwindow() {
 function edit_bookmarks() {  function edit_bookmarks() {
    go('');     go('');
    w_BookmarkPal_flag=1;     w_BookmarkPal_flag=1;
    bookmarkpal=window.open("http://"+clienthost+"/adm/bookmarks",     bookmarkpal=window.open(protocol+clienthost+"/adm/bookmarks",
                "BookmarkPal", "width=400,height=505,scrollbars=0");                 "BookmarkPal", "width=400,height=505,scrollbars=0");
 }  }
   
Line 468  function showdisplay(utext,ltext) { Line 472  function showdisplay(utext,ltext) {
          if (ch==':') { ch='colon'; }           if (ch==':') { ch='colon'; }
          if (ch=='/') { ch='slash'; }           if (ch=='/') { ch='slash'; }
       } else { ch='space'; }        } else { ch='space'; }
       this.document['i'+i].src="http://"+clienthost+fontpath+ch+'.gif';        this.document['i'+i].src=protocol+clienthost+fontpath+ch+'.gif';
    }     }
    for (i=0;i<=7;i++) {     for (i=0;i<=7;i++) {
       if (i<ltext.length) {        if (i<ltext.length) {
Line 478  function showdisplay(utext,ltext) { Line 482  function showdisplay(utext,ltext) {
          if (ch==':') { ch='colon'; }           if (ch==':') { ch='colon'; }
          if (ch=='/') { ch='slash'; }           if (ch=='/') { ch='slash'; }
       } else { ch='space'; }        } else { ch='space'; }
       this.document['j'+i].src="http://"+clienthost+fontpath+ch+'.gif';        this.document['j'+i].src=protocol+clienthost+fontpath+ch+'.gif';
    }     }
   }    }
 }  }

Removed from v.1.120  
changed lines
  Added in v.1.121


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>