Rev 228 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
227 | PointedEar | 1 | |
2 | <div id="LCARS"> |
||
210 | PointedEar | 3 | <?php /* |
4 | <div id="button-grid" style="position: absolute; opacity: 0.3"> |
||
5 | <a class="button" style="display: block; clear: left; float: left"><span class="text">Button 1</span></a> |
||
6 | |||
7 | <a class="button" style="display: block; clear: left; float: left"><span class="text">Button 1</span></a> |
||
8 | <a class="button" style="display: block; float: left"><span class="text">Button 1</span></a> |
||
9 | <a class="button" style="display: block; float: left"><span class="text">Button 1</span></a> |
||
10 | <a class="button" style="display: block; float: left"><span class="text">Button 1</span></a> |
||
11 | |||
12 | <a class="button" style="display: block; clear: left; float: left"><span class="text">Button 1</span></a> |
||
13 | <a class="button" style="display: block; float: left"><span class="text">Button 1</span></a> |
||
14 | <a class="button" style="display: block; float: left"><span class="text">Button 1</span></a> |
||
15 | <a class="button" style="display: block; float: left"><span class="text">Button 1</span></a> |
||
16 | |||
17 | <a class="button" style="display: block; clear: left; float: left"><span class="text">Button 1</span></a> |
||
18 | <a class="button" style="display: block; float: left"><span class="text">Button 1</span></a> |
||
19 | <a class="button" style="display: block; float: left"><span class="text">Button 1</span></a> |
||
20 | <a class="button" style="display: block; float: left"><span class="text">Button 1</span></a> |
||
21 | |||
22 | <a class="button" style="display: block; clear: left; float: left"><span class="text">Button 1</span></a> |
||
23 | <a class="button" style="display: block; float: left"><span class="text">Button 1</span></a> |
||
24 | <a class="button" style="display: block; float: left"><span class="text">Button 1</span></a> |
||
25 | <a class="button" style="display: block; float: left"><span class="text">Button 1</span></a> |
||
26 | |||
27 | <a class="button" style="display: block; clear: left; float: left"><span class="text">Button 1</span></a> |
||
28 | <a class="button" style="display: block; float: left"><span class="text">Button 1</span></a> |
||
29 | <a class="button" style="display: block; float: left"><span class="text">Button 1</span></a> |
||
30 | <a class="button" style="display: block; float: left"><span class="text">Button 1</span></a> |
||
31 | <a class="button" style="display: block; float: left"><span class="text">Button 1</span></a> |
||
32 | |||
33 | <a class="button" style="display: block; clear: left; float: left"><span class="text">Button 1</span></a> |
||
34 | <a class="button" style="display: block; float: left"><span class="text">Button 1</span></a> |
||
35 | <a class="button" style="display: block; float: left"><span class="text">Button 1</span></a> |
||
36 | <a class="button" style="display: block; float: left"><span class="text">Button 1</span></a> |
||
37 | |||
38 | <a class="button" style="display: block; clear: left; float: left"><span class="text">Button 1</span></a> |
||
39 | <a class="button" style="display: block; float: left"><span class="text">Button 1</span></a> |
||
40 | <a class="button" style="display: block; float: left"><span class="text">Button 1</span></a> |
||
41 | |||
42 | <a class="button" style="display: block; clear: left; float: left"><span class="text">Button 1</span></a> |
||
43 | <a class="button" style="display: block; float: left"><span class="text">Button 1</span></a> |
||
44 | <a class="button" style="display: block; float: left"><span class="text">Button 1</span></a> |
||
45 | |||
46 | <a class="button" style="display: block; clear: left; float: left"><span class="text">Button 1</span></a> |
||
47 | <a class="button" style="display: block; float: left"><span class="text">Button 1</span></a> |
||
48 | <a class="button" style="display: block; float: left"><span class="text">Button 1</span></a> |
||
49 | |||
50 | <a class="button" style="display: block; clear: left; float: left"><span class="text">Button 1</span></a> |
||
51 | <a class="button" style="display: block; float: left"><span class="text">Button 1</span></a> |
||
52 | <a class="button" style="display: block; float: left"><span class="text">Button 1</span></a> |
||
53 | </div> |
||
54 | */ ?> |
||
55 | <div id="bow"> |
||
227 | PointedEar | 56 | <div id="bow-top"> |
57 | <div class="separator-left"> </div> |
||
58 | <div class="text"> |
||
59 | <span>PointedEars’ Website</span> |
||
60 | </div> |
||
61 | </div> |
||
62 | <div id="bow-top-left"> |
||
63 | <div class="concave"> </div> |
||
64 | <div |
||
65 | style="position: absolute; top: 3.2em; left: 0; background-color: black" |
||
66 | > |
||
67 | <div class="bow" |
||
68 | style="margin-top: 0.2em; width: 8em; height: 1em" |
||
69 | > </div> |
||
70 | </div> |
||
71 | </div> |
||
72 | <div id="bottom"> |
||
73 | <div id="bow-bottom"> |
||
74 | <div class="concave"> </div> |
||
75 | <div class="spacer"> </div> |
||
76 | </div> |
||
77 | </div> |
||
210 | PointedEar | 78 | |
227 | PointedEar | 79 | <div class="menu-container"> |
80 | <nav class="menu"> |
||
231 | PointedEar | 81 | <!-- |
82 | <ul> |
||
210 | PointedEar | 83 | <?php foreach ($languages as $key => $name): ?> |
227 | PointedEar | 84 | <li><a |
85 | href="index.<?php echo language_key_short($key); ?>?ani=0" |
||
86 | lang="<?php echo $key; ?>" hreflang="<?php echo $key; ?>" |
||
87 | class="button<?php if ($language === $key) { ?> selected<?php } ?>" |
||
88 | tabindex="2" |
||
89 | ><span class="text"><?php echo language_name($key); ?></span></a></li> |
||
210 | PointedEar | 90 | <?php endforeach; ?> |
91 | </ul> |
||
227 | PointedEar | 92 | <div class="bow" style="margin-bottom: 0.4em; height: 0.4em"> </div> |
231 | PointedEar | 93 | --> |
227 | PointedEar | 94 | <ul style="margin-bottom: 1.2em"> |
95 | <li><a href="<?php echo $menu['scripts']['path']; ?>" |
||
96 | target="_top" class="button" lang="<?php echo $language; ?>" |
||
97 | ><span class="text"><?php echo $menu['scripts']['text']; ?></span></a></li> |
||
98 | <li><a href="<?php echo $menu['es-matrix']['path']; ?>" |
||
99 | target="_top" class="button" |
||
100 | title="<?php echo $menu['es-matrix']['title']; ?>" |
||
101 | ><span class="text"><?php echo $menu['es-matrix']['text']; ?></span></a></li> |
||
102 | <li><a href="<?php echo $menu['devel']['path']; ?>" |
||
103 | target="_top" class="button" lang="<?php echo $language; ?>" |
||
104 | ><span class="text"><?php echo $menu['devel']['text']; ?></span></a></li> |
||
105 | </ul> |
||
106 | <ul style="margin-bottom: 0.2em"> |
||
107 | <li><a href="psf/" target="_top" class="button ancillary"><abbr |
||
108 | title="<?php echo tr("PointedEars' Standard Frases"); ?>" |
||
109 | class="text" |
||
110 | >psf</abbr></a></li> |
||
111 | <li><a href="<?php echo $menu['series']['path']; ?>" |
||
112 | target="_top" class="button ancillary" |
||
113 | title="<?php echo tr('List of recommended TV shows and episodes, with logos in CSS'); ?>" |
||
114 | ><span class="text"><?php echo $menu['series']['text']; ?></span></a></li> |
||
115 | <li><a href="<?php echo $menu['ufpdb']['path']; ?>" |
||
116 | target="_top" class="button database" |
||
117 | ><abbr title="<?php echo $menu['ufpdb']['title']; ?>" |
||
118 | class="text" |
||
119 | ><?php echo $menu['ufpdb']['text']; ?></abbr></a></li> |
||
120 | </ul> |
||
121 | <div style="position: relative; margin-bottom: 1.2em"> |
||
122 | <div class="bow" style="height: 0.8em"> </div> |
||
123 | </div> |
||
124 | <ul> |
||
125 | <li><a |
||
126 | href="http://climateapps2.oerc.ox.ac.uk/cpdnboinc/show_user.php?userid=648544" |
||
127 | target="_top" class="button secondary" |
||
128 | title="<?php echo tr("The world’s largest climate forecasting experiment for the 21st century"); ?>" |
||
129 | ><span class="text">climateprediction.net</span></a></li> |
||
130 | <li><a |
||
131 | href="http://fah-web2.stanford.edu/cgi-bin/main.py?qtype=userpage&username=Thomas_Lahn" |
||
132 | target="_top" class="button secondary" |
||
133 | title="<?php echo tr("Distributed computing to understand protein folding, protein aggregation, and related diseases"); ?>" |
||
134 | ><span class="text">Folding at home</span></a></li> |
||
135 | <li><a |
||
136 | href="http://lhcathomeclassic.cern.ch/sixtrack/show_user.php?userid=221181" |
||
137 | target="_top" class="button secondary" |
||
138 | title="<?php echo tr("Particle physics research with the Large Hadron Collider at CERN"); ?>" |
||
139 | ><span class="text">LHC at home</span></a></li> |
||
140 | <li><a |
||
141 | href="http://setiathome.berkeley.edu/show_user.php?userid=378921" |
||
142 | target="_top" class="button secondary" |
||
143 | title="<?php echo tr("The Search for Extra-Terrestrial Intelligence at HOME"); ?>" |
||
144 | ><span class="text">SETI at home</span></a></li> |
||
145 | <li><a |
||
146 | href="http://stackoverflow.com/users/855543/pointedears" |
||
147 | target="_top" class="button secondary" |
||
148 | title="<?php echo tr("Me on Stack Overflow"); ?>" |
||
149 | ><span class="text">Stack Overflow</span></a></li> |
||
150 | <li><a href="https://twitter.com/PointedEars2" target="_top" |
||
151 | class="button secondary" |
||
152 | title="<?php echo tr("Me on Twitter"); ?>" |
||
153 | ><span class="text">Twitter</span></a></li> |
||
154 | <li><a |
||
155 | href="<?php echo tr("http://en.wikipedia.org/wiki/Special:Contributions/PointedEars"); ?>" |
||
156 | target="_top" class="button secondary" |
||
157 | title="<?php echo tr("My contributions to Wikipedia"); ?>" |
||
158 | ><span class="text"><?php echo tr('Wikipedia'); ?></span></a></li> |
||
159 | </ul> |
||
210 | PointedEar | 160 | <?php /* |
161 | <script type="text/javascript"> |
||
162 | var sURL = location.href; |
||
163 | var sFavAnchorTitle = |
||
164 | "Klicken Sie hier, um PointedEars' Website Ihren Favoriten" |
||
165 | + " hinzuzufĂĽgen"; |
||
166 | var sOtherAnchorTitle = |
||
167 | "Klicken Sie hier mit der rechten Maustaste, um PointedEars' Website" |
||
168 | + " Ihren Lesezeichen hinzuzufĂĽgen"; |
||
169 | var sFavoriteTitle = "PointedEars' Website"; |
||
170 | |||
171 | if (jsx.object.isHostMethod(jsx.global.window, "external", "AddFavorite")) |
||
172 | { |
||
173 | document.write( |
||
174 | '<div style="position: relative; margin-top: 1em; border-bottom: 0.2em solid transparent">' |
||
175 | + ' <div class="bow" style="width: 8em; height: 1em"> <\/div>' |
||
176 | + ' <div class="bow" style="position: absolute; top: 0; left: 8.2em; width: 2em; height: 1em"> <\/div>' |
||
177 | + '</div>' |
||
178 | + '<a href="javascript:window.external.AddFavorite(' |
||
179 | + ' sURL, sFavoriteTitle);" title="' + sFavAnchorTitle + '"' |
||
180 | + ' class="button"' |
||
181 | + ' onclick="window.external.AddFavorite(' |
||
182 | + ' sURL, sFavoriteTitle); return false"' |
||
183 | + ' onmouseover="return setStatus(sFavAnchorTitle)"' |
||
184 | + ' onmouseout="return resetStatus()"' |
||
185 | + '><span class="text">Favorit<\/span><\/a>'); |
||
186 | } |
||
187 | </script> |
||
188 | */ ?> |
||
189 | </nav> |
||
227 | PointedEar | 190 | </div> |
191 | </div> |
||
192 | <div id="connectors"> |
||
193 | <div class="bow top left"> </div> |
||
194 | <div class="bow top right"> </div> |
||
195 | |||
196 | <div class="bow mid left"> </div> |
||
197 | <div class="bow mid right"> </div> |
||
198 | </div> |
||
199 | <div class="multi-display"> |
||
200 | <div class="upper"> |
||
201 | <div class="content"> |
||
202 | <div class="title" id="title" lang="<?php echo $language; ?>"> |
||
203 | <span class="text"><?php echo tr('Home'); ?></span> |
||
210 | PointedEar | 204 | </div> |
227 | PointedEar | 205 | <div class="analysis" id="analysis"> |
206 | <table> |
||
207 | <tr> |
||
231 | PointedEar | 208 | <th lang="<?php echo $language; ?>"><span class="text"><?php echo tr('Display'); ?></span></th> |
227 | PointedEar | 209 | <td lang="<?php echo $language; ?>"><script |
210 | type="text/javascript" |
||
211 | > |
||
210 | PointedEar | 212 | var _addEventListener = jsx.dom.addEventListener; |
213 | var _runAsync = jsx.dom.timeout.runAsync; |
||
214 | var ID_SCREEN_DIM = 'screenDim'; |
||
215 | var ID_AVAIL_DIM = 'availDim'; |
||
216 | var ID_INNER_DIM = 'innerDim'; |
||
217 | |||
218 | var dim = (function () { |
||
219 | var screenInfo = jsx.dom.window.screenInfo; |
||
220 | |||
221 | return { |
||
222 | getScreenText: function () { |
||
223 | var screenDim = screenInfo.getDim(); |
||
224 | return screenDim.width + "Ă—" + screenDim.height; |
||
225 | }, |
||
226 | |||
227 | getAvailText: function () { |
||
228 | var availDim = screenInfo.getAvailDim(); |
||
229 | return <?php echo sprintf(tr('%s + "x" + %s + " available"'), 'availDim.width', 'availDim.height'); ?>; |
||
230 | }, |
||
231 | |||
232 | getInnerText: function () { |
||
233 | var innerDim = screenInfo.getInnerDim(); |
||
234 | return ", " + <?php echo sprintf(tr('%s + "x" + %s + " used"'), 'innerDim.width', 'innerDim.height'); ?>; |
||
235 | }, |
||
236 | |||
237 | getColorDepthText: function () { |
||
238 | var colorDepth = screenInfo.getColorDepth(); |
||
239 | return colorDepth |
||
240 | ? '2<sup>' + colorDepth + "<\/sup> <?php echo tr('colors'); ?>" |
||
241 | : ""; |
||
242 | } |
||
243 | }; |
||
244 | }()); |
||
245 | |||
246 | (function () { |
||
247 | var screenDimText = dim.getScreenText(); |
||
248 | var availDimText = dim.getAvailText(); |
||
249 | var innerDimText = dim.getInnerText(); |
||
250 | var colorDepthText = dim.getColorDepthText(); |
||
251 | var displayInfo = (screenDimText || availDimText || innerDimText || colorDepthText) |
||
252 | ? (screenDimText ? <?php echo sprintf("'" . tr('%s pixels') . "'", "<span id=\"' + ID_SCREEN_DIM + '\">' + screenDimText + '<\/span>' + '"); ?> : "") |
||
253 | + (availDimText ? ' (<span id="' + ID_AVAIL_DIM + '">' + availDimText + "<\/span>" : "") |
||
254 | + (innerDimText ? '<span id="' + ID_INNER_DIM + '">' + innerDimText + "<\/span>)" : "") |
||
255 | + (colorDepthText ? ' Ă— <span id="colorDepth">' + colorDepthText + "<\/span>" : "") |
||
256 | : TEXT_NOT_AVAILABLE; |
||
257 | |||
258 | /* FIXME: Convert HTML to text, update whole title text */ |
||
259 | document.write('<span class="text">' + displayInfo + '<\/span>'); |
||
260 | |||
261 | var oColorDepth; |
||
262 | var tColor = _runAsync(function () { |
||
263 | if (typeof oColorDepth == "undefined") |
||
264 | { |
||
265 | oColorDepth = document.getElementById("colorDepth"); |
||
266 | } |
||
267 | |||
268 | if (oColorDepth) |
||
269 | { |
||
270 | var colorDepthText = dim.getColorDepthText(); |
||
271 | <?php /* FIXME: Also update title attribute value */ ?> |
||
272 | if (oColorDepth.innerHTML != colorDepthText) |
||
273 | { |
||
274 | oColorDepth.innerHTML = colorDepthText; |
||
275 | } |
||
276 | } |
||
277 | |||
278 | tColor = this.run(); |
||
279 | }, 1000); |
||
280 | |||
281 | _addEventListener(document, "unload", function () { |
||
282 | tColor.unset(); |
||
283 | tColor = null; |
||
284 | }); |
||
285 | }()); |
||
227 | PointedEar | 286 | </script> |
287 | <noscript><?php echo tr('N/A'); ?></noscript></td> |
||
288 | </tr> |
||
289 | <tr> |
||
231 | PointedEar | 290 | <th lang="<?php echo $language; ?>"><span class="text"><?php echo tr('User Agent'); ?></span></th> |
227 | PointedEar | 291 | <td><script type="text/javascript" |
292 | src="application/scripts/ua.js" |
||
293 | ></script> |
||
294 | <noscript><?php |
||
210 | PointedEar | 295 | echo tr('N/A'); ?></noscript></td> |
227 | PointedEar | 296 | </tr> |
297 | <tr> |
||
231 | PointedEar | 298 | <th lang="<?php echo $language; ?>"><span class="text"><?php echo tr('Features'); ?></span></th> |
227 | PointedEar | 299 | <td><script type="text/javascript"> |
210 | PointedEar | 300 | var fullscreen = jsx.dom.window.fullscreen; |
301 | |||
302 | (function () { |
||
303 | function getFeatures () |
||
304 | { |
||
305 | var features = []; |
||
306 | if (typeof document.cookie != "undefined") |
||
307 | { |
||
308 | var cookiesText = "<?php echo tr('Cookies'); ?>" |
||
309 | if (navigator.cookieEnabled) |
||
310 | { |
||
311 | if (document.cookie) |
||
312 | { |
||
313 | var cookies = document.cookie; |
||
314 | cookies = cookies.split(/\s*;\s*/); |
||
315 | features.push('<a href="#" title="' |
||
316 | + cookies.join(" ") |
||
317 | + '"' |
||
318 | + ' onclick="window.alert(\'<?php echo tr('Cookies for'); ?> ' + document.domain + '\\n\\n' + cookies.join("\\n") + '\'); return false">' + cookiesText + '<\/a>'); |
||
319 | } |
||
320 | else |
||
321 | { |
||
322 | features.push('<span class="unavailable"' |
||
323 | + ' title="<?php echo tr('Cookies supported, but no data for this site'); ?>"' |
||
324 | + '>' + cookiesText + '<\/span>'); |
||
325 | } |
||
326 | } |
||
327 | else |
||
328 | { |
||
329 | features.push('<span class="offline"' |
||
330 | + ' title="<?php echo tr('Cookies supported, but disabled'); ?>"' |
||
331 | + '>' + cookiesText + '<\/span>'); |
||
332 | } |
||
333 | } |
||
334 | |||
335 | if (fullscreen.isSupportedBy(document.documentElement)) |
||
336 | { |
||
337 | features.push("<span lang='<?php echo $language; ?>'><span class='text'><?php echo tr('Fullscreen'); ?><\/span><\/span>"); |
||
338 | } |
||
339 | |||
340 | if (navigator.webkitGetGamepads && navigator.webkitGetGamepads().length) |
||
341 | { |
||
342 | features.push("<?php echo tr('Gamepad'); ?>"); |
||
343 | } |
||
344 | |||
345 | if (jsx.dom.geolocation.isAvailable()) |
||
346 | { |
||
227 | PointedEar | 347 | features.push('<a href="#" title="<?php echo htmlspecialchars(tr('Get location'), ENT_QUOTES); ?>"' |
348 | + ' lang="<?php echo $language; ?>"' |
||
349 | + ' onclick=\'return lcars.multiDisplay.geolocate("<?php echo htmlspecialchars(tr('Geolocation'), ENT_QUOTES); ?>", "<?php echo $language; ?>")\'' |
||
350 | + '><span class="text"><?php echo htmlspecialchars(tr('Geolocation'), ENT_QUOTES); ?><\/span><\/a>'); |
||
210 | PointedEar | 351 | } |
352 | |||
353 | if (typeof navigator.javaEnabled != "undefined" && navigator.javaEnabled()) |
||
354 | { |
||
355 | features.push("Java"); |
||
356 | } |
||
357 | |||
358 | var storage = jsx.dom.storage; |
||
359 | if (storage.localStorage.isSupported()) features.push("Local Storage"); |
||
360 | |||
361 | if (navigator.plugins) |
||
362 | { |
||
363 | if (navigator.plugins.length > 0) |
||
364 | { |
||
365 | features.push('<span title="' |
||
366 | + navigator.plugins.length |
||
367 | + ' <?php echo tr('plugins installed'); ?>">Plugins<\/span>'); |
||
368 | } |
||
369 | else |
||
370 | { |
||
371 | features.push('<span class="unavailable"' |
||
372 | + ' title="<?php echo tr('Plugins supported, but none detected'); ?>"' |
||
373 | + '>Plugins<\/span>'); |
||
374 | } |
||
375 | } |
||
376 | |||
377 | if (storage.sessionStorage.isSupported()) |
||
378 | { |
||
379 | features.push("Session Storage"); |
||
380 | } |
||
381 | |||
382 | if (typeof window.ontouchstart != "undefined") features.push("Touch"); |
||
383 | return features.join(" • "); |
||
384 | } |
||
385 | |||
386 | function stripTags (s) |
||
387 | { |
||
388 | return s.replace(/<[^>]+>/g, ""); |
||
389 | } |
||
390 | |||
391 | var sFeatures = getFeatures(); |
||
392 | document.write('<span id="features" title="' + stripTags(sFeatures) + '">' + sFeatures + '<\/span>'); |
||
393 | |||
394 | var oFeatures; |
||
395 | var oFeaturesHtml; |
||
396 | var tFeatures = _runAsync(function () { |
||
397 | if (typeof oFeatures == "undefined") |
||
398 | { |
||
399 | oFeatures = document.getElementById("features"); |
||
400 | } |
||
401 | |||
402 | if (oFeatures) |
||
403 | { |
||
404 | var sNewFeatures = getFeatures(); |
||
405 | |||
406 | if (!oFeaturesHtml) |
||
407 | { |
||
408 | oFeaturesHtml = document.createElement("span"); |
||
409 | } |
||
410 | |||
411 | if (oFeaturesHtml) |
||
412 | { |
||
413 | oFeaturesHtml.innerHTML = sNewFeatures; |
||
414 | sNewFeatures = oFeaturesHtml.innerHTML; |
||
415 | } |
||
416 | |||
417 | if (oFeatures.innerHTML != sNewFeatures) |
||
418 | { |
||
419 | oFeatures.innerHTML = sNewFeatures; |
||
420 | } |
||
421 | |||
422 | /* Converts CREs */ |
||
423 | var newTitle = stripTags(oFeatures.innerHTML) |
||
424 | if (oFeatures.title != newTitle) |
||
425 | { |
||
426 | oFeatures.title = newTitle; |
||
427 | } |
||
428 | } |
||
429 | |||
430 | tFeatures = this.run(); |
||
431 | }, 1000); |
||
432 | }()); |
||
433 | |||
434 | _addEventListener(document, "unload", function () { |
||
435 | tFeatures.unset(); |
||
436 | tFeatures = null; |
||
437 | }); |
||
438 | |||
439 | var windowText = "<?php echo tr("Window"); ?>"; |
||
227 | PointedEar | 440 | </script> |
441 | <noscript><?php echo tr('N/A'); ?></noscript></td> |
||
442 | </tr> |
||
443 | </table> |
||
444 | </div> |
||
445 | <ul class="commands"> |
||
446 | <li id="cmd1"><a href="index.php" title="Language selection" |
||
447 | tabindex="1" class="button left right" |
||
448 | onmouseover="return setStatus(this.title + ': ' + this.href)" |
||
449 | onmouseout="return resetStatus()" |
||
450 | onfocus="return this.onmouseover()" |
||
451 | onblur="return this.onmouseout()" |
||
452 | ><abbr class="text" title="Language selection">Language</abbr></a></li> |
||
453 | <li id="cmd2"><a |
||
454 | href="index.<?php echo $language; ?>?printable=1" |
||
455 | title="<?php echo tr('Printable version'); ?>" tabindex="1" |
||
456 | class="button left right" |
||
457 | onmouseover="return setStatus(this.title + ': ' + this.href)" |
||
458 | onmouseout="return resetStatus()" |
||
459 | onfocus="return this.onmouseover()" |
||
460 | onblur="return this.onmouseout()" |
||
461 | lang="<?php echo $language; ?>" |
||
462 | ><span class="text"><?php echo tr("Printable"); ?></span></a></li> |
||
231 | PointedEar | 463 | <li id="cmd3"><script type="text/javascript"> |
464 | function toggleFullscreen (button) |
||
465 | { |
||
466 | var nowIsFullscreen = fullscreen.isFullscreen(); |
||
467 | |||
468 | if (nowIsFullscreen) |
||
469 | { |
||
470 | fullscreen.cancel(); |
||
471 | } |
||
472 | else |
||
473 | { |
||
474 | fullscreen.requestOn(document.documentElement, button); |
||
475 | } |
||
476 | } |
||
477 | </script><div class="button left right" |
||
227 | PointedEar | 478 | style="cursor: not-allowed !important" |
231 | PointedEar | 479 | onclick="toggleFullscreen(this)" |
480 | onkeyup="if (event.keyCode == 13) { this.click(); }" |
||
227 | PointedEar | 481 | lang="<?php echo $language; ?>" |
482 | ><span class="text"><script type="text/javascript"> |
||
210 | PointedEar | 483 | var cmd3; |
484 | if (fullscreen.isSupportedBy(document.documentElement)) |
||
485 | { |
||
486 | _addEventListener(window, "load", function () { |
||
487 | if (typeof cmd3 == "undefined") |
||
488 | { |
||
489 | cmd3 = jsx.dom.getElementById("cmd3"); |
||
490 | } |
||
491 | |||
492 | if (cmd3) |
||
493 | { |
||
231 | PointedEar | 494 | cmd3.lastChild.tabIndex = "1"; |
210 | PointedEar | 495 | } |
496 | }); |
||
497 | |||
498 | var fullscreenText = "<?php echo tr("Fullscreen"); ?>"; |
||
499 | document.write(fullscreenText); |
||
500 | } |
||
501 | |||
502 | var oScreenDim; |
||
503 | var oAvailDim; |
||
504 | var oInnerDim; |
||
505 | var _gEBI = jsx.dom.getElementById; |
||
506 | var previousIsFullscreen; |
||
507 | var oldHandler; |
||
508 | |||
509 | _addEventListener(window, "resize", function () { |
||
510 | <?php /* FIXME: Also update title attribute value */ ?> |
||
511 | if (typeof oScreenDim == "undefined") oScreenDim = _gEBI(ID_SCREEN_DIM); |
||
512 | if (oScreenDim) oScreenDim.innerHTML = dim.getScreenText(); |
||
513 | |||
514 | if (typeof oAvailDim == "undefined") oAvailDim = _gEBI(ID_AVAIL_DIM); |
||
515 | if (oAvailDim) oAvailDim.innerHTML = dim.getAvailText(); |
||
516 | |||
517 | if (typeof oInnerDim == "undefined") oInnerDim = _gEBI(ID_INNER_DIM); |
||
518 | if (oInnerDim) oInnerDim.innerHTML = dim.getInnerText(); |
||
519 | |||
520 | if (fullscreen.isSupportedBy(document.documentElement)) |
||
521 | { |
||
522 | var nowIsFullscreen = fullscreen.isFullscreen(); |
||
523 | if (nowIsFullscreen != previousIsFullscreen) |
||
524 | { |
||
525 | if (typeof cmd3 == "undefined") |
||
526 | { |
||
527 | cmd3 = document.getElementById("cmd3"); |
||
528 | } |
||
529 | |||
231 | PointedEar | 530 | var textTarget = cmd3.lastChild.firstChild; |
210 | PointedEar | 531 | if (nowIsFullscreen) |
532 | { |
||
231 | PointedEar | 533 | textTarget.innerHTML = "<?php echo tr("Window"); ?>"; |
210 | PointedEar | 534 | } |
535 | else |
||
536 | { |
||
231 | PointedEar | 537 | textTarget.innerHTML = fullscreenText; |
210 | PointedEar | 538 | } |
539 | |||
540 | previousIsFullscreen = nowIsFullscreen; |
||
541 | } |
||
542 | } |
||
543 | }); |
||
231 | PointedEar | 544 | </script></span></div></li> |
227 | PointedEar | 545 | <li id="cmd4"><script type="text/javascript"> |
546 | var LANG_KLINGON = "<?php echo $klingon; ?>"; |
||
210 | PointedEar | 547 | var LANG_VULCAN = "<?php echo $vulcan; ?>"; |
228 | PointedEar | 548 | lcars.language = "<?php echo $language; ?>"; |
227 | PointedEar | 549 | </script> |
228 | PointedEar | 550 | <script type="text/javascript" src="application/scripts/klingon.js"></script> |
551 | <script type="text/javascript" src="application/scripts/vulcan-media-script.js"></script> |
||
552 | <script type="text/javascript"> |
||
553 | function toggleScript (button) |
||
227 | PointedEar | 554 | { |
228 | PointedEar | 555 | var is_alien_language = (lcars.language == LANG_KLINGON |
556 | || lcars.language == LANG_VULCAN); |
||
557 | |||
558 | if (media_script_used) |
||
227 | PointedEar | 559 | { |
228 | PointedEar | 560 | klingonLatinScript(button); |
561 | latinScript(button); |
||
562 | |||
563 | if (!is_alien_language) |
||
564 | { |
||
565 | button.firstChild.textContent = button.getAttribute("data-caption"); |
||
566 | } |
||
227 | PointedEar | 567 | } |
228 | PointedEar | 568 | else |
569 | { |
||
570 | pIqaD(button); |
||
571 | mediaScript(button); |
||
572 | |||
573 | if (!is_alien_language) |
||
574 | { |
||
575 | button.setAttribute("data-caption", button.firstChild.textContent); |
||
231 | PointedEar | 576 | button.firstChild.textContent = "<?php echo tr('Latin'); ?>"; |
228 | PointedEar | 577 | } |
578 | } |
||
227 | PointedEar | 579 | } |
228 | PointedEar | 580 | </script> |
581 | <div class="button left right"<?php |
||
231 | PointedEar | 582 | // $language_keys = array_keys($languages); |
583 | if (in_array($language, array(@$klingon, @$vulcan))) |
||
228 | PointedEar | 584 | { |
585 | ?> tabindex="1" onclick="return toggleScript(this)"<?php |
||
586 | } |
||
227 | PointedEar | 587 | else |
588 | { |
||
589 | ?> style="cursor: not-allowed !important"<?php |
||
590 | } |
||
231 | PointedEar | 591 | ?> |
592 | onkeyup="if (event.keyCode == 13) { this.click(); }" |
||
593 | ><span class="text" lang="<?php echo $language; ?>"><?php |
||
228 | PointedEar | 594 | switch ($language) |
595 | { |
||
596 | case $klingon: echo 'pIqaD'; break; |
||
597 | case $vulcan: echo 'Hitra-Zukitan'; break; |
||
231 | PointedEar | 598 | // default: echo tr('Original'); |
228 | PointedEar | 599 | } |
227 | PointedEar | 600 | ?></span> |
601 | </div></li> |
||
602 | </ul> |
||
603 | </div> |
||
604 | <div class="elbo-button"> |
||
228 | PointedEar | 605 | <span class="text" lang="<?php echo $language; ?>" |
227 | PointedEar | 606 | title="<?php echo tr("Date of last modification"); ?>" |
607 | ><?php echo gmdate('Ym.d', $modi); ?></span> |
||
608 | </div> |
||
609 | <div class="elbo" lang="<?php echo $language; ?>"> |
||
610 | <span class="text"><abbr |
||
611 | title="<?php echo tr('Library Computer Access and Retrieval System'); ?>" |
||
612 | ><?php echo tr('LCARS'); ?></abbr> PE-22A</span> |
||
613 | <div class="concave"> </div> |
||
614 | </div> |
||
615 | <div class="border"> |
||
616 | <div class="left"> </div> |
||
617 | <div class="right"> </div> |
||
618 | </div> |
||
619 | </div> |
||
620 | <div class="lower"> |
||
621 | <div class="elbo"> |
||
622 | <div class="concave"> </div> |
||
623 | </div> |
||
624 | <div class="bg"> </div> |
||
625 | <div class="border-container"> |
||
626 | <div class="border"> |
||
627 | <div class="left"> </div> |
||
628 | <div class="right"> </div> |
||
210 | PointedEar | 629 | </div> |
630 | </div> |
||
631 | </div> |
||
227 | PointedEar | 632 | </div> |
633 | </div> |