180,7 → 180,24 |
*/ |
?> |
<hr style="height: 0; border-width: 1px 0 0 0; width: 100%"> |
<p style="text-align: center">Copyright © 2002–2013 <a |
<p style="text-align: center"><?php echo sprintf( |
_("Original LCARS design by" |
. " <a href='%s' title='%s'>Michael Okuda</a>." |
. " This site is based on an <a href='%s'" |
. " title='LCARS Standards Development Board'" |
. ">implementation in Flash by Chris Rossi</a>," |
. " and research by <a href='%s'" |
. " title='Creating a Coherent LCARS Interface'>Bracer Jack</a>" |
. " and <a href='%s'" |
. " title='LCARS 47 Development Blog – LCARS 101: A Designer’s Handbook'" |
. ">Eleanor Denver</a>."), |
'https://twitter.com/MikeOkuda', |
_('Michael Okuda on Twitter'), |
'http://www.lcarsdeveloper.com/', |
'http://www.bracercom.com/tutorial/content/CoherentLCARSInterface/LCARSCoherentInterface.html', |
'http://www.lcars47.com/p/lcars-101.html'); |
?><br> |
Copyright © 2002–2013 <a |
href="mailto:webmaster@PointedEars.de?subject=Feedback/LCARS/Welcome/<?php |
echo $language; |
?>&body=<?php |
190,6 → 207,7 |
onmouseover="return mailStatus()" |
onmouseout="return resetStatus()" |
>Thomas ‘PointedEars’ Lahn</a>. <?php echo _("All rights reserved."); ?></p> |
<p style="text-align: center"></p> |
<?php |
/* embed src="media/interface/speech/de/warten.wav" width="0" height="0" |
hidden="true" autostart="true" dir="ltr" lang="de" */ |
363,53 → 381,97 |
<div class="title"><span>Home</span></div> |
<div class="analysis"> </div> |
<script type="text/javascript"> |
var fullScreen = (function () { |
var fullscreen = (function () { |
var _isHostMethod = jsx.object.isHostMethod; |
|
return { |
isSupportedBy: function (elem) { |
var prefixes = ["r", "mozR", "webkitR"]; |
var suffix = "equestFullscreen"; |
|
for (var i = 0, len = prefixes.length; i < len; ++i) |
getSupportedProperty: function (base, names, test) { |
for (var i = 0, len = names.length; i < len; ++i) |
{ |
var prefix = prefixes[i]; |
|
if (_isHostMethod(elem, prefix + suffix)) |
var name = names[i]; |
if (test.call(null, base, name)) |
{ |
return prefix + suffix; |
return name; |
} |
} |
|
return false; |
return null; |
}, |
|
isEnabled: function () { |
return document.fullscreenEnabled || document.mozFullscreenEnabled || document.webkitFullscreenEnabled; |
getSupportedCancel: (function () { |
var _supportedCancel; |
|
return function () { |
if (typeof _supportedCancel == "undefined") |
{ |
var properties = ["cancelFullScreen", "mozCancelFullScreen", |
"webkitCancelFullScreen"]; |
|
_supportedCancel = this.getSupportedProperty(document, properties, _isHostMethod); |
} |
|
return _supportedCancel; |
}; |
}()), |
|
getSupportedElement: (function () { |
var _supportedElement; |
|
return function () { |
if (typeof _supportedElement == "undefined") |
{ |
var properties = ["fullscreenElement", "mozFullscreenElement", |
"webkitFullscreenElement"]; |
|
_supportedElement = this.getSupportedProperty(document, properties, |
function (base, name) { |
return typeof base[name] != "undefined"; |
}); |
} |
|
return _supportedElement; |
}; |
}()), |
|
isSupportedBy: function (elem) { |
var methods = ["requestFullscreen", "mozRequestFullscreen", |
"webkitRequestFullscreen"]; |
return this.getSupportedProperty(elem, methods, _isHostMethod); |
}, |
|
isFullscreen: function () { |
var properties = ["fullscreenElement", "mozFullscreenElement", |
"webkitFullscreenElement"]; |
var supportedProperty = this.getSupportedProperty( |
document, properties, |
function (base, name) { |
return typeof base[name] != "undefined"; |
}); |
|
return supportedProperty && document[supportedProperty] != null; |
}, |
|
cancel: function (target, oldHandler, textTarget) { |
var prefixes = ["c", "mozC", "webkitC"]; |
var suffix = "ancelFullScreen"; |
|
for (var i = 0, len = prefixes.length; i < len; ++i) |
var supportedCancel = this.getSupportedCancel(); |
if (supportedCancel) |
{ |
var prefix = prefixes[i]; |
document[supportedCancel](); |
|
if (_isHostMethod(document, prefix + suffix)) |
var supportedElement = this.getSupportedElement(); |
if (supportedElement) |
{ |
document[prefix + suffix](); |
|
/* NOTE: ...FullscreenEnabled not reliable after cancel */ |
if (textTarget) |
if (document[supportedElement] == null) |
{ |
textTarget.textContent = "<?php echo _("Fullscreen"); ?>"; |
if (textTarget) |
{ |
textTarget.textContent = "<?php echo _("Fullscreen"); ?>"; |
} |
|
if (target) |
{ |
target.onclick = oldHandler; |
} |
} |
|
if (target) |
{ |
target.onclick = oldHandler; |
} |
} |
} |
}, |
420,7 → 482,7 |
if (elem && (requestMethodName = this.isSupportedBy(elem))) |
{ |
elem[requestMethodName](); |
if (textTarget && this.isEnabled()) |
if (textTarget && this.isFullscreen()) |
{ |
var oldText = textTarget.textContent; |
var me = this; |
455,13 → 517,37 |
onblur="return this.onmouseout()" |
><span class="text"><?php echo _("Printable"); ?></span></a></li> |
<li id="cmd3"><div class="button left right" |
onclick="fullScreen.requestOn(document.documentElement, this, this.firstChild)" |
onclick="fullscreen.requestOn(document.documentElement, this, this.firstChild)" |
onkeyup="if (event.keyCode == 13) { this.onclick(); this.onmouseup(); }" |
onmouseup="this.blur()" |
tabindex="1" |
><span class="text"><script type="text/javascript"> |
if (fullScreen.isSupportedBy(document.documentElement)) |
if (fullscreen.isSupportedBy(document.documentElement)) |
{ |
/* |
var previousIsFullscreen = fullscreen.isFullscreen(); |
var oldHandler; |
window.onresize = function () { |
var nowIsFullscreen = fullscreen.isFullscreen(); |
if (nowIsFullscreen != previousIsFullscreen) |
{ |
var cmd3 = document.getElementById("cmd3"); |
var target = cmd3.firstChild; |
var textTarget = target.firstChild; |
if (nowIsFullscreen) |
{ |
oldHandler = target.onclick; |
// fullscreen.requestOn(document.documentElement, cmd3.firstElementChild, cmd3.firstElementChild.firstElementChild); |
} |
else |
{ |
fullscreen.cancel(target, oldHandler, textTarget); |
} |
|
previousIsFullscreen = nowIsFullscreen; |
} |
}; |
*/ |
document.write("<?php echo _("Fullscreen"); ?>"); |
} |
</script></span></div></li> |