comparison client/digitallibrary/navigation.js @ 225:7349d58cd391

new digicat version with only one js file
author luginbue
date Fri, 09 Jul 2004 02:15:54 +0200
parents 21789f3f7251
children 7be74fc07fe1
comparison
equal deleted inserted replaced
224:b51840f2ff75 225:7349d58cd391
18 18
19 Author: Christian Luginbuehl, 01.05.2003 , Version Alcatraz 0.4 19 Author: Christian Luginbuehl, 01.05.2003 , Version Alcatraz 0.4
20 20
21 */ 21 */
22 22
23 function identify() {
24 return 'Digilib v0.6';
25 }
26
27
23 var ZOOMFACTOR = Math.sqrt(2); 28 var ZOOMFACTOR = Math.sqrt(2);
24 29
25 dlParams = new Object(); 30 dlParams = new Object();
26 31
27 function newParameter(name, value, defaultValue, detail) { 32 function newParameter(name, value, defaultValue, detail) {
117 } 122 }
118 123
119 } 124 }
120 125
121 // window size 126 // window size
127
122 var wwidth, wheight; 128 var wwidth, wheight;
129
123 if (self.innerHeight) // all except Explorer 130 if (self.innerHeight) // all except Explorer
124 { 131 {
125 wwidth = self.innerWidth; 132 wwidth = self.innerWidth;
126 wheight = self.innerHeight; 133 wheight = self.innerWeight;
127 } 134 }
128 else if (document.documentElement && document.documentElement.clientHeight) 135 else if (document.documentElement && document.documentElement.clientHeight)
129 // Explorer 6 Strict Mode 136 // Explorer 6 Strict Mode
130 { 137 {
131 wwidth = document.documentElement.clientWidth; 138 wwidth = document.documentElement.clientWidth;
132 wheight = document.documentElement.clientHeight; 139 wheight = document.doumentElement.clientHeight;
133 } 140 }
134 else if (document.body) // other Explorers 141 else if (document.body) // other Explorers
135 { 142 {
136 wwidth = document.body.clientWidth; 143 wwidth = document.body.clientWidth;
137 wheight = document.body.clientHeight; 144 wheight = doument.body.clientHeight;
138 } 145 }
139 queryString += "&dw=" + (wwidth-30) + "&dh=" + (wheight-30); 146 queryString += "&dw=" + (wwidth-30) + "&dh=" + (whewight-30);
140 147
141 queryString += "&lv=1"; 148 queryString += "&lv=1";
142 149
143 queryString = queryString.slice(1); 150 queryString = queryString.slice(1);
144 151
225 win.focus(); 232 win.focus();
226 233
227 } 234 }
228 235
229 236
230 function ref(select) { 237 function ref() {
231 238
232 var hyperlinkRef = baseUrl + "/digilib.jsp?"; 239 var hyperlinkRef = baseUrl + "/digilib.jsp?";
233 hyperlinkRef += dlParams.fn.value + "+" + dlParams.pn.value + "+" + dlParams.ws.value + "+"; 240 hyperlinkRef += dlParams.fn.value + "+" + dlParams.pn.value + "+" + dlParams.ws.value + "+";
234 hyperlinkRef += dlParams.mo.value + "+" + dlParams.mk.value; 241 hyperlinkRef += dlParams.mo.value + "+" + dlParams.mk.value;
235 242
236 if ( (dlParams.wx.value != 0) || (dlParams.wy.value != 0) || (dlParams.ww.value != 1) || (dlParams.wh.value != 1) ) { 243 if ( (dlParams.wx.value != 0) || (dlParams.wy.value != 0) || (dlParams.ww.value != 1) || (dlParams.wh.value != 1) ) {
237 hyperlinkRef += "+" + dlParams.wx.value + "+" + dlParams.wy.value + "+" + dlParams.ww.value; 244 hyperlinkRef += "+" + dlParams.wx.value + "+" + dlParams.wy.value + "+" + dlParams.ww.value;
238 hyperlinkRef += "+" + dlParams.wh.value; 245 hyperlinkRef += "+" + dlParams.wh.value;
239 } 246 }
240 247
248 return hyperlinkRef;
249
250 }
251
252
253 function ref(select) {
254
241 if ( select == 0 ) { 255 if ( select == 0 ) {
242 prompt("Link for LaTeX-documents", "\\href{" + hyperlinkRef + "}{TEXT}"); 256 prompt("Link for LaTeX-documents", "\\href{" + ref() + "}{TEXT}");
243 } else if ( select == 1 ) { 257 } else if ( select == 1 ) {
244 prompt("Link for HTML-documents", hyperlinkRef); 258 prompt("Link for HTML-documents", ref());
245 } 259 }
246 } 260 }
247 261
248 262
249 function mark() { 263 function mark() {