Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <meta name="GENERATOR" content="LichtkrantEditor 8.1">
- <meta name="AUTHOR" content="ria">
- <meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
- <META HTTP-EQUIV="expires" CONTENT="0">
- <link rel="stylesheet" href="lk_style.css" type="text/css">
- <TITLE>Lichtkrant Botframe0</TITLE>
- <SCRIPT LANGUAGE="JavaScript">
- var ns4 = (document.layers)? true:false;
- var ie4 = (document.all)? true:false;
- var d = parent.output.document,t = parent.topframe.document;
- var HTMLMaxtijd=0;
- var Maxtijd=15;
- var PagesBeforeUpdate=21;
- var MainPages = 3;
- var NrOfPages = 3;
- var MaxNrOfPeriodes = -1;
- var Uitschakeltijd = "99:99";
- var htmlfile="";
- var lettertype = "Arial";
- var PageArray = new CreateArray(3);
- PageArray[0]="Vergeet niet in te schrijven voor de audities ATK<BR>(toneel, zang, dans, decor)voor 19/9!<BR>Inschrijfformulier bij de receptie. <BR> <BR>5hv en 6vw SOK indeling, tijden en locatie hangt op het sportbord. <BR>Sta je niet op de lijst meld je dan bij één van de docent BWO.<BR> <BR>";
- PageArray[1]="14-09 / Vrijdag<BR>Afwezig: ROW<BR><center><table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" class=\"z\"><tr><td class=x>klas</td><td class=x>uur</td><td class=x>docent</td><td class=x>vak</td><td class=x>lokaal</td><td class=x>vak</td><td class=x>docent</td><td class=x>lokaal</td></tr></table></center><center><table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" class=\"z\"><tr><td class=y>1C</td><td class=y>4</td><td class=y>LAT</td><td class=y>ne</td><td class=y>101</td><td class=y>ne</td><td class=y>LAT</td><td class=y>117</td></tr><tr><td class=x>1G</td><td class=x>4</td><td class=x>ROW</td><td class=x>en</td><td class=x>015</td><td class=x>en</td><td class=x>VEM</td><td class=x>015</td></tr><tr><td class=y>2M</td><td class=y>6</td><td class=y>SCL</td><td class=y>en</td><td class=y>015</td><td class=y>en</td><td class=y>SCL</td><td class=y>010</td></tr></table></center> <BR> <BR>";
- PageArray[2]="17-09 / Maandag<BR>Afwezig: DIM, DOR (7-7), SLR (1-4), VLR (1-1)<BR><center><table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" class=\"z\"><tr><td class=x>klas</td><td class=x>uur</td><td class=x>docent</td><td class=x>vak</td><td class=x>lokaal</td><td class=x>docent</td><td class=x>vak</td></tr></table></center><center><table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" class=\"z\"><tr><td class=y>1F</td><td class=y>4</td><td class=y>BUF</td><td class=y>M</td><td class=y>238</td><td class=y>BUF</td><td class=y>M</td></tr><tr><td class=x>1G</td><td class=x>3</td><td class=x>BOY</td><td class=x>ne</td><td class=x>157</td><td class=x>BOY</td><td class=x>ne</td></tr><tr><td class=y>2M</td><td class=y>6</td><td class=y>DIM</td><td class=y>M</td><td class=y>106</td><td class=y>MAA</td><td class=y>ak</td></tr><tr><td class=x>5V1, 5V3,</td><td class=x>5</td><td class=x>DIM</td><td class=x>ak6</td><td class=x>106</td><td class=x>BRE</td><td class=x>ak6</td></tr><tr><td class=y>5V1</td><td class=y>2</td><td class=y>SLR</td><td class=y>na2</td><td class=y>205</td><td class=y>HUP</td><td class=y>na2</td></tr></table></center> <BR>";
- var SecTeller=0
- var wtime = null;
- var width,margin;
- var tgs = new Array( "div","td","th","pre");
- var PageTeller=0;
- var PagesShown=0;
- var sz=0;
- var HTMLmode=false;
- var Commandstring="[LK8.1]";
- function CreateArray (num ){
- this.length = num;
- for (var j =0; j <num; j++) {this[j] = "";}}
- function shrink(aPage)
- {
- var Overlap, cEl = null,i,j,cTags;
- if (sz==0){
- if (aPage < MainPages){
- sz = 37;
- }else{
- sz = 37;
- }}
- sz++;
- do {
- sz--;
- if ( !( cEl = d.getElementById("body") ) ) cEl = d.getElementsByTagName("body")[ 0 ];
- cEl.style.fontSize = sz+"px";
- for ( i = 0 ; i < tgs.length ; i++ ) {
- cTags = cEl.getElementsByTagName( tgs[ i ] );
- for ( j = 0 ; j < cTags.length ; j++ ) cTags[ j ].style.fontSize = sz+"px";
- }
- Overlap = ((d.body.scrollHeight > d.body.clientHeight) || (d.body.scrollWidth > d.body.clientWidth));
- }
- while ((sz>10) && Overlap);
- }
- function StyleProc(aPage){
- var pg=0;
- var S0X1="font-family:Arial; font-size:37px;font-weight: bold;color: #00AE00;text-align:left;";
- var S0X3="border-width: 1px;border-style:solid;border-top-color:#B2B2B2;border-left-color:#B2B2B2;border-bottom-color:#4E4E4E;border-right-color:#4E4E4E;padding:7px;";
- var S1X1="font-family:Arial; font-size:37px;font-weight: bold;color: #00AE00;text-align:left;";
- var S1X3="border-width: 1px;border-style:solid;border-top-color:#B2B2B2;border-left-color:#B2B2B2;border-bottom-color:#4E4E4E;border-right-color:#4E4E4E;padding:7px;";
- var r="#c1 {position:absolute;left:0;top:0;z-index:-1}";
- r+=".small { font-family: System; font-size: 8px; color: #BBCB87; position: absolute; bottom: 10px; left: 10px}";
- if (aPage < MainPages){
- r+="body {margin : 0px;";
- r+="background-color:#E3F3AF;"+S0X1+"}";
- r+="PRE {margin-left: "+margin+"px;"+S0X1+"}TD {"+S0X1+S0X3+"}";
- r+="TABLE {"+S0X3+"}";
- r+="TH {"+S0X1+S0X3+";background-color: #BBCB87}";
- }else{
- r+="body {margin : 0px;";
- r+="background-color:#E3F3AF;"+S1X1+"}";
- r+="PRE {margin-left: "+margin+"px;"+S1X1+"}TD {"+S1X1+S1X3+"}";
- r+="TABLE {"+S1X3+"}";
- r+="TH {"+S1X1+S1X3+";background-color: #BBCB87}";
- }
- return(r);
- }
- function CheckEindTijd(){
- if (document.xclock.time.value.substring(0,5) == Uitschakeltijd) {
- Commandstring = "[LK8.1][POWEROFF]";
- defaultStatus = Commandstring + " uitschakelen gestart"
- }}
- function PrintPeriode(){
- var ii = MaxNrOfPeriodes;
- while ((ii>=0) && (PerArray[ii]>document.xclock.time.value)) {ii--};
- if (ii>=0) {document.xclock.periode.value = PerArray[ii].substring(6,200)}
- else {document.xclock.periode.value = ""}
- }
- function PageInc(anInterval){
- PageTeller = PageTeller + anInterval;
- PagesShown++;
- if (PageTeller >= NrOfPages){ PageTeller = 0;
- }else if (PageTeller < 0 ) PageTeller = NrOfPages-1;
- }
- function Reload(){
- defaultStatus = "Loading nieuwe gegevens ";
- window.location.reload( true );
- }
- function ShowTop(){
- if (ie4) {t.clear};
- t.write("<HTML><style type=text/css>BODY {font-family: System; color: navy; background:#707070;margin:2px}DIV {font-size: 12px; font-weight: bold; position: absolute; top: 5px; left: 100px}</style><body><img src=lk_anim.gif width=24 height=22 border=0 alt=\"LichtkrantEditor is een product van SpoelstraIT Advies zie http://www.spoelstrait.nl\" align=left><DIV>Mededelingen/Roosterwijzigingen #0</DIV></body></html>");
- t.close();
- }
- function WritePage(){
- if (ie4){d.clear};
- d.write("<HTML><HEAD>");
- d.write("<link rel=\"stylesheet\" href=\"lk_style.css\" type=\"text/css\">");
- d.write("<style type=text/css>");
- d.write(StyleProc(PageTeller));
- d.write("</STYLE>");
- d.write("</HEAD>");
- d.write("<body>");
- d.write ("<PRE>");
- d.write (PageArray[PageTeller]);
- d.write("</pre></body></html>");
- d.close();
- shrink(PageTeller);
- }
- function ShowPage(){
- document.xclock.seconds.value=" ";
- SecTeller=0;
- if ((htmlfile !="") && (PageTeller==NrOfPages-1)){
- document.xclock.page.value="HTML";
- HTMLmode=true;
- defaultStatus = Commandstring + "HTML presentatie wordt ingevoegd.";
- parent.output.location=htmlfile;
- }else{
- HTMLmode=false;
- width=800;
- margin=10;
- width = (ns4)? window.innerWidth-16 : document.body.offsetWidth-20;
- margin=Math.floor(width/12);
- document.xclock.page.value = "" +(PageTeller+1)+" van "+ NrOfPages;
- if ((PagesShown>10) && (PagesBeforeUpdate<0)) {Reload()} else {WritePage()};
- }}
- function Clupdate() {
- var t = new Date();
- var hours = t.getHours();
- var min = t.getMinutes();
- var sec = t.getSeconds();
- if (min < 10) min = "0" + min;
- if (sec < 10) sec = "0" + sec;
- if (hours < 10) hours = "0" + hours;
- CheckEindTijd();
- document.xclock.time.value = hours + ":" + min + ":" + sec;
- if (HTMLmode) {min=HTMLMaxtijd} else {min=Maxtijd};
- sec = 1+((SecTeller * 10) / min);
- while (document.xclock.seconds.value.length < sec) {
- document.xclock.seconds.value = document.xclock.seconds.value+"/";}
- }
- function Clock() {
- Clupdate();
- if (HTMLmode) {
- if (SecTeller>=HTMLMaxtijd){
- HTMLmode=false;
- PageInc(1);
- ShowPage();
- }
- }else{
- if (SecTeller>=Maxtijd) {
- PageInc(1);
- ShowPage();
- PagesBeforeUpdate--
- defaultStatus = Commandstring + "Laatste update : Vr 15:48";
- }
- }
- wtime = window.setTimeout("Clock()", 1000);
- SecTeller++
- }
- function XStartUp(){
- if (top.location==location){ top.location="lk_latt0.htm";}else{
- if (htmlfile !="") NrOfPages++;
- ShowTop();
- ShowPage();
- Clock();
- }}
- function Next(){
- PageInc(1);
- ShowPage();
- }
- function Prev (){
- PageInc(-1);
- ShowPage();
- }
- function Sluit (){
- parent.window.close();
- }
- </SCRIPT>
- <style type=text/css>
- BODY {font-family: System; color: navy; background:#707070;margin:0px}
- INPUT {font-family: System; color: navy; background:#909090;}
- TD {font-family: Arial; margin:3px}
- </STYLE>
- </head>
- <BODY bgcolor=#C0C0C0 text=navy onLoad="XStartUp();">
- <form name="xclock"><table border=0 width="100%"><tr height=24><td>
- <input type=text name="time" size="8">
- <input type=text name="periode" size="0">
- <input type=text name="seconds" size="12">
- <input type=text name="page" size="12">
- </td><td align=right><img src="lk_prev.gif" width=24 height=22 border=0 alt="Voorgaande pagina" onClick="javascript:Prev();">
- <img src="lk_index.gif" width=24 height=22 border=0 alt="Lichtkrant GPUntis">
- <img src="lk_next.gif" width=24 height=22 border=0 alt="Volgende Pagina" onClick="javascript:Next();"></td></tr></table></form>
- </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement