Rev 92 | Rev 97 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 92 | Rev 95 | ||
---|---|---|---|
Line 178... | Line 178... | ||
178 | <!-- Klicken Sie hier, falls Sie nach 5 Sekunden nicht automatisch
|
178 | <!-- Klicken Sie hier, falls Sie nach 5 Sekunden nicht automatisch
|
179 | weitergeleitet werden. -->
|
179 | weitergeleitet werden. -->
|
180 | */
|
180 | */
|
181 | ?>
|
181 | ?>
|
182 | <hr style="height: 0; border-width: 1px 0 0 0; width: 100%"> |
182 | <hr style="height: 0; border-width: 1px 0 0 0; width: 100%"> |
- | 183 | <p style="text-align: center"><?php echo sprintf( |
|
- | 184 | _("Original LCARS design by" |
|
- | 185 | . " <a href='%s' title='%s'>Michael Okuda</a>." |
|
- | 186 | . " This site is based on an <a href='%s'" |
|
- | 187 | . " title='LCARS Standards Development Board'" |
|
- | 188 | . ">implementation in Flash by Chris Rossi</a>," |
|
- | 189 | . " and research by <a href='%s'" |
|
- | 190 | . " title='Creating a Coherent LCARS Interface'>Bracer Jack</a>" |
|
- | 191 | . " and <a href='%s'" |
|
- | 192 | . " title='LCARS 47 Development Blog – LCARS 101: A Designer’s Handbook'" |
|
- | 193 | . ">Eleanor Denver</a>."), |
|
- | 194 | 'https://twitter.com/MikeOkuda', |
|
- | 195 | _('Michael Okuda on Twitter'), |
|
- | 196 | 'http://www.lcarsdeveloper.com/', |
|
- | 197 | 'http://www.bracercom.com/tutorial/content/CoherentLCARSInterface/LCARSCoherentInterface.html', |
|
- | 198 | 'http://www.lcars47.com/p/lcars-101.html'); |
|
- | 199 | ?><br>
|
|
183 | <p style="text-align: center">Copyright © 2002–2013 <a |
200 | Copyright © 2002–2013 <a |
184 | href="mailto:webmaster@PointedEars.de?subject=Feedback/LCARS/Welcome/<?php
|
201 | href="mailto:webmaster@PointedEars.de?subject=Feedback/LCARS/Welcome/<?php
|
185 | echo $language; |
202 | echo $language; |
186 | ?>&body=<?php |
203 | ?>&body=<?php |
187 | echo rawurlencode(sprintf('[%s]', _("Your feedback"))); |
204 | echo rawurlencode(sprintf('[%s]', _("Your feedback"))); |
188 | ?>"
|
205 | ?>"
|
189 | title="<?php echo _("Send your feedback to PointedEars"); ?>" |
206 | title="<?php echo _("Send your feedback to PointedEars"); ?>" |
190 | onmouseover="return mailStatus()" |
207 | onmouseover="return mailStatus()" |
191 | onmouseout="return resetStatus()" |
208 | onmouseout="return resetStatus()" |
192 | >Thomas ‘PointedEars’ Lahn</a>. <?php echo _("All rights reserved."); ?></p> |
209 | >Thomas ‘PointedEars’ Lahn</a>. <?php echo _("All rights reserved."); ?></p> |
- | 210 | <p style="text-align: center"></p> |
|
193 | <?php
|
211 | <?php
|
194 | /* embed src="media/interface/speech/de/warten.wav" width="0" height="0"
|
212 | /* embed src="media/interface/speech/de/warten.wav" width="0" height="0"
|
195 | hidden="true" autostart="true" dir="ltr" lang="de" */
|
213 | hidden="true" autostart="true" dir="ltr" lang="de" */
|
196 | ?>
|
214 | ?>
|
197 | </div> |
215 | </div> |
Line 361... | Line 379... | ||
361 | <div class="upper"> |
379 | <div class="upper"> |
362 | <div class="content"> |
380 | <div class="content"> |
363 | <div class="title"><span>Home</span></div> |
381 | <div class="title"><span>Home</span></div> |
364 | <div class="analysis"> </div> |
382 | <div class="analysis"> </div> |
365 | <script type="text/javascript"> |
383 | <script type="text/javascript"> |
366 | var fullScreen = (function () { |
384 | var fullscreen = (function () { |
367 | var _isHostMethod = jsx.object.isHostMethod; |
385 | var _isHostMethod = jsx.object.isHostMethod; |
368 | 386 | ||
369 | return { |
387 | return { |
370 | isSupportedBy: function (elem) { |
388 | getSupportedProperty: function (base, names, test) { |
371 | var prefixes = ["r", "mozR", "webkitR"]; |
- | |
372 | var suffix = "equestFullscreen"; |
- | |
373 | - | ||
374 | for (var i = 0, len = prefixes.length; i < len; ++i) |
389 | for (var i = 0, len = names.length; i < len; ++i) |
375 | { |
390 | { |
376 | var prefix = prefixes[i]; |
391 | var name = names[i]; |
- | 392 | if (test.call(null, base, name)) |
|
- | 393 | { |
|
- | 394 | return name; |
|
- | 395 | } |
|
- | 396 | } |
|
- | 397 | ||
- | 398 | return null; |
|
- | 399 | }, |
|
- | 400 | ||
- | 401 | getSupportedCancel: (function () { |
|
- | 402 | var _supportedCancel; |
|
377 | 403 | ||
- | 404 | return function () { |
|
378 | if (_isHostMethod(elem, prefix + suffix)) |
405 | if (typeof _supportedCancel == "undefined") |
379 | { |
406 | { |
- | 407 | var properties = ["cancelFullScreen", "mozCancelFullScreen", |
|
380 | return prefix + suffix; |
408 | "webkitCancelFullScreen"]; |
- | 409 | ||
- | 410 | _supportedCancel = this.getSupportedProperty(document, properties, _isHostMethod); |
|
381 | } |
411 | } |
- | 412 | ||
- | 413 | return _supportedCancel; |
|
- | 414 | }; |
|
- | 415 | }()), |
|
- | 416 | ||
- | 417 | getSupportedElement: (function () { |
|
- | 418 | var _supportedElement; |
|
- | 419 | ||
- | 420 | return function () { |
|
- | 421 | if (typeof _supportedElement == "undefined") |
|
- | 422 | { |
|
- | 423 | var properties = ["fullscreenElement", "mozFullscreenElement", |
|
- | 424 | "webkitFullscreenElement"]; |
|
- | 425 | ||
- | 426 | _supportedElement = this.getSupportedProperty(document, properties, |
|
- | 427 | function (base, name) { |
|
- | 428 | return typeof base[name] != "undefined"; |
|
- | 429 | }); |
|
382 | } |
430 | } |
383 | 431 | ||
384 | return false; |
432 | return _supportedElement; |
- | 433 | }; |
|
- | 434 | }()), |
|
- | 435 | ||
- | 436 | isSupportedBy: function (elem) { |
|
- | 437 | var methods = ["requestFullscreen", "mozRequestFullscreen", |
|
- | 438 | "webkitRequestFullscreen"]; |
|
- | 439 | return this.getSupportedProperty(elem, methods, _isHostMethod); |
|
385 | }, |
440 | }, |
386 | 441 | ||
387 | isEnabled: function () { |
442 | isFullscreen: function () { |
388 | return document.fullscreenEnabled || document.mozFullscreenEnabled || document.webkitFullscreenEnabled; |
443 | var properties = ["fullscreenElement", "mozFullscreenElement", |
- | 444 | "webkitFullscreenElement"]; |
|
- | 445 | var supportedProperty = this.getSupportedProperty( |
|
- | 446 | document, properties, |
|
- | 447 | function (base, name) { |
|
- | 448 | return typeof base[name] != "undefined"; |
|
- | 449 | }); |
|
- | 450 | ||
- | 451 | return supportedProperty && document[supportedProperty] != null; |
|
389 | }, |
452 | }, |
390 | 453 | ||
391 | cancel: function (target, oldHandler, textTarget) { |
454 | cancel: function (target, oldHandler, textTarget) { |
392 | var prefixes = ["c", "mozC", "webkitC"]; |
455 | var supportedCancel = this.getSupportedCancel(); |
393 | var suffix = "ancelFullScreen"; |
456 | if (supportedCancel) |
394 | - | ||
395 | for (var i = 0, len = prefixes.length; i < len; ++i) |
- | |
396 | { |
457 | { |
397 | var prefix = prefixes[i]; |
458 | document[supportedCancel](); |
398 | 459 | ||
- | 460 | var supportedElement = this.getSupportedElement(); |
|
- | 461 | if (supportedElement) |
|
- | 462 | { |
|
399 | if (_isHostMethod(document, prefix + suffix)) |
463 | if (document[supportedElement] == null) |
400 | { |
464 | { |
401 | document[prefix + suffix](); |
- | |
402 | - | ||
403 | /* NOTE: ...FullscreenEnabled not reliable after cancel */ |
- | |
404 | if (textTarget) |
465 | if (textTarget) |
405 | { |
466 | { |
406 | textTarget.textContent = "<?php echo _("Fullscreen"); ?>"; |
467 | textTarget.textContent = "<?php echo _("Fullscreen"); ?>"; |
407 | } |
468 | } |
408 | 469 | ||
Line 410... | Line 471... | ||
410 | { |
471 | { |
411 | target.onclick = oldHandler; |
472 | target.onclick = oldHandler; |
412 | } |
473 | } |
413 | } |
474 | } |
414 | } |
475 | } |
- | 476 | } |
|
415 | }, |
477 | }, |
416 | 478 | ||
417 | requestOn: function (elem, eventTarget, textTarget) { |
479 | requestOn: function (elem, eventTarget, textTarget) { |
418 | var requestMethodName; |
480 | var requestMethodName; |
419 | 481 | ||
420 | if (elem && (requestMethodName = this.isSupportedBy(elem))) |
482 | if (elem && (requestMethodName = this.isSupportedBy(elem))) |
421 | { |
483 | { |
422 | elem[requestMethodName](); |
484 | elem[requestMethodName](); |
423 | if (textTarget && this.isEnabled()) |
485 | if (textTarget && this.isFullscreen()) |
424 | { |
486 | { |
425 | var oldText = textTarget.textContent; |
487 | var oldText = textTarget.textContent; |
426 | var me = this; |
488 | var me = this; |
427 | var oldHandler = eventTarget.onclick; |
489 | var oldHandler = eventTarget.onclick; |
428 | eventTarget.onclick = function () { |
490 | eventTarget.onclick = function () { |
Line 453... | Line 515... | ||
453 | onmouseout="return resetStatus()" |
515 | onmouseout="return resetStatus()" |
454 | onfocus="return this.onmouseover()" |
516 | onfocus="return this.onmouseover()" |
455 | onblur="return this.onmouseout()" |
517 | onblur="return this.onmouseout()" |
456 | ><span class="text"><?php echo _("Printable"); ?></span></a></li> |
518 | ><span class="text"><?php echo _("Printable"); ?></span></a></li> |
457 | <li id="cmd3"><div class="button left right" |
519 | <li id="cmd3"><div class="button left right" |
458 | onclick="fullScreen.requestOn(document.documentElement, this, this.firstChild)" |
520 | onclick="fullscreen.requestOn(document.documentElement, this, this.firstChild)" |
459 | onkeyup="if (event.keyCode == 13) { this.onclick(); this.onmouseup(); }" |
521 | onkeyup="if (event.keyCode == 13) { this.onclick(); this.onmouseup(); }" |
460 | onmouseup="this.blur()" |
522 | onmouseup="this.blur()" |
461 | tabindex="1" |
523 | tabindex="1" |
462 | ><span class="text"><script type="text/javascript"> |
524 | ><span class="text"><script type="text/javascript"> |
463 | if (fullScreen.isSupportedBy(document.documentElement)) |
525 | if (fullscreen.isSupportedBy(document.documentElement)) |
- | 526 | { |
|
- | 527 | /* |
|
- | 528 | var previousIsFullscreen = fullscreen.isFullscreen(); |
|
- | 529 | var oldHandler; |
|
- | 530 | window.onresize = function () { |
|
- | 531 | var nowIsFullscreen = fullscreen.isFullscreen(); |
|
- | 532 | if (nowIsFullscreen != previousIsFullscreen) |
|
464 | { |
533 | { |
- | 534 | var cmd3 = document.getElementById("cmd3"); |
|
- | 535 | var target = cmd3.firstChild; |
|
- | 536 | var textTarget = target.firstChild; |
|
- | 537 | if (nowIsFullscreen) |
|
- | 538 | { |
|
- | 539 | oldHandler = target.onclick; |
|
- | 540 | // fullscreen.requestOn(document.documentElement, cmd3.firstElementChild, cmd3.firstElementChild.firstElementChild); |
|
- | 541 | } |
|
- | 542 | else |
|
- | 543 | { |
|
- | 544 | fullscreen.cancel(target, oldHandler, textTarget); |
|
- | 545 | } |
|
- | 546 | ||
- | 547 | previousIsFullscreen = nowIsFullscreen; |
|
- | 548 | } |
|
- | 549 | }; |
|
- | 550 | */ |
|
465 | document.write("<?php echo _("Fullscreen"); ?>"); |
551 | document.write("<?php echo _("Fullscreen"); ?>"); |
466 | } |
552 | } |
467 | </script></span></div></li> |
553 | </script></span></div></li> |
468 | <li id="cmd4"><div class="button left right" style="cursor: not-allowed !important"> </div></li> |
554 | <li id="cmd4"><div class="button left right" style="cursor: not-allowed !important"> </div></li> |
469 | </ul> |
555 | </ul> |