version 1.43, 2002/02/15 19:53:09
|
version 1.47, 2002/04/04 17:35:57
|
Line 41 Jan Guy Albertelli
|
Line 41 Jan Guy Albertelli
|
5/4,5/9,5/28,5/30,6/1,6/2,6/3,6/8,6/15,6/16 Gerd Kortemeyer |
5/4,5/9,5/28,5/30,6/1,6/2,6/3,6/8,6/15,6/16 Gerd Kortemeyer |
7/24,8/6 Scott Harrison |
7/24,8/6 Scott Harrison |
8/24 Gerd Kortemeyer |
8/24 Gerd Kortemeyer |
|
YEAR=2002 |
|
March 2002 Matthew Hall |
|
3/19 Gerd Kortemeyer |
--> |
--> |
<head> |
<head> |
<title>LON-CAPA Remote</title> |
<title>LON-CAPA Remote</title> |
Line 48 Jan Guy Albertelli
|
Line 51 Jan Guy Albertelli
|
|
|
|
|
<body bgcolor="#BBBBBB" |
<body bgcolor="#BBBBBB" |
background="remotebg.gif"> |
background="remotebg.gif" |
|
onUnload="logout();"> |
<basefont size="1" /> |
<basefont size="1" /> |
|
|
<script type="text/javascript"> |
<script type="text/javascript"> |
<!-- |
<!-- |
statustop=''; |
var statustop = ''; |
statusbot=''; |
var statusbot = ''; |
active=0; |
var active = 0; |
|
|
imgpath='/res/adm/pages/'; |
var imgpath='/res/adm/pages/'; |
|
|
var currentURL=''; |
var currentURL=''; |
var currentStale=1; |
var currentStale=1; |
Line 79 var w_LONcatInfo_flag=-1;
|
Line 83 var w_LONcatInfo_flag=-1;
|
// -1 means never yet opened/defined |
// -1 means never yet opened/defined |
/////////////////////////////////////// |
/////////////////////////////////////// |
|
|
hr=new Array; |
var hr = new Array; |
db=new Array; |
var db = new Array; |
dt=new Array; |
var dt = new Array; |
|
|
|
for (var i=1;i<=3;i++) { |
|
for (var j=1;j<=10;j++) { |
|
var index = 10*j+i; |
|
hr[index]=null; |
|
db[index]=null; |
|
dt[index]=null; |
|
} |
|
} |
|
|
clienthost=window.location.host; |
var clienthost=window.location.host; |
clientwindow=opener; |
var clientwindow=opener; |
|
|
function windowcheck() { |
function windowcheck() { |
if (clientwindow.closed) { |
if (clientwindow==null || clientwindow.closed) { |
clientwindow=window.open("http://"+clienthost+"/"); |
clientwindow=window.open("http://"+clienthost+"/",'', |
|
"height=400,width=440,"+ |
|
"scrollbars=1,toolbar=1,status=1,resizable=1,location=1,"+ |
|
"left=190,top=15,screenX=190,screenY=15"); |
} |
} |
clientwindow.name='loncapaclient'; |
clientwindow.name='loncapaclient'; |
|
clientwindow.menuwindow=self; |
} |
} |
|
|
function logout () { |
function logout () { |
Line 124 function deactivate () {
|
Line 141 function deactivate () {
|
function display(utext,ltext) { |
function display(utext,ltext) { |
var i; var ch; |
var i; var ch; |
this.window.focus(); |
this.window.focus(); |
|
if (utext == null) { utext = '';} |
|
if (ltext == null) { ltext = '';} |
if (typeof(utext)=="undefined") { utext=''; } |
if (typeof(utext)=="undefined") { utext=''; } |
if (typeof(ltext)=="undefined") { ltext=''; } |
if (typeof(ltext)=="undefined") { ltext=''; } |
if ((utext=='') && (ltext=='')) { |
if ((utext=='') && (ltext=='')) { |
Line 179 function setstatus(tp,bt) {
|
Line 198 function setstatus(tp,bt) {
|
endsend(); |
endsend(); |
} |
} |
|
|
|
function cstrgo(currenturl,defaulturl) { |
|
windowcheck(); |
|
var url; |
|
if (currenturl != null && currenturl != '') { |
|
url = currenturl; |
|
var priv_pattern = /^\/priv/; |
|
var tilda_pattern = /^\/~/; |
|
if (priv_pattern.test(url) || tilda_pattern.test(url)) { |
|
url = defaulturl; |
|
} else { |
|
// map /res/103/turtle -> /priv/turtle |
|
url = url.replace(/^\/res\/[A-z0-9]+\//,'/priv/'); |
|
} |
|
} else { |
|
url = defaulturl; |
|
} |
|
this.document['led'].src="ledsend.gif"; |
|
if (url != '') { |
|
clientwindow.window.location.href="http://"+clienthost+url; |
|
} |
|
} |
|
|
function go(url) { |
function go(url) { |
windowcheck(); |
windowcheck(); |
this.document['led'].src="ledsend.gif"; |
this.document['led'].src="ledsend.gif"; |
if (url!='') { |
if (url!='') { |
|
currentURL = null; |
clientwindow.window.location.href="http://"+clienthost+url; |
clientwindow.window.location.href="http://"+clienthost+url; |
} |
} |
} |
} |