58,7 → 58,9 |
<?php /* |
<!-- <link rel="stylesheet" type="text/css" href="styles/lcars.css"> --> |
<!-- <link rel="stylesheet" type="text/css" href="styles/lcars21.css"> --> |
<!-- No optimization here: Resource Builder does not handle URI parameters --> |
<!-- No optimization here: IE 9 in non-Compatibility Mode sends "Accept: text/css", |
Apache responds with 406: |
http://blog.s9y.org/archives/227-ie9-has-trouble-with-css-content-types.html --> |
*/ ?> |
<link rel="stylesheet" type="text/css" href="styles/lcars-basic"> |
<?php |
161,7 → 163,7 |
| <a href="mozilla/" target="_top">Mozilla</a> |
| <a href="poetry/" target="_top">Poesie</a> |
*/ |
|
|
/* |
| [<abbr title="nur in englischer Sprache verfügbar" |
>en</abbr>] |
264,7 → 266,7 |
<div class="spacer"> </div> |
</div> |
</div> |
|
|
<div class="menu-container"> |
<nav class="menu"> |
<ul style="padding-top: 1em"> |
333,7 → 335,7 |
"Klicken Sie hier mit der rechten Maustaste, um PointedEars' Website" |
+ " Ihren Lesezeichen hinzuzufügen"; |
var sFavoriteTitle = "PointedEars' Website"; |
|
|
if (jsx.object.isHostMethod(jsx.global.window, "external", "AddFavorite")) |
{ |
document.write( |
358,7 → 360,7 |
<div id="connectors"> |
<div class="bow top left"> </div> |
<div class="bow top right"> </div> |
|
|
<div class="bow mid left"> </div> |
<div class="bow mid right"> </div> |
</div> |
377,7 → 379,7 |
var ID_AVAIL_DIM = 'availDim'; |
var ID_INNER_DIM = 'innerDim'; |
var TEXT_NOT_AVAILABLE = "<?php echo tr('N/A'); ?>"; |
|
|
var dim = (function () { |
var screenInfo = jsx.dom.window.screenInfo; |
|
386,17 → 388,17 |
var screenDim = screenInfo.getDim(); |
return screenDim.width + "×" + screenDim.height; |
}, |
|
|
getAvailText: function () { |
var availDim = screenInfo.getAvailDim(); |
return availDim.width + "×" + availDim.height + " <?php echo tr('available'); ?>"; |
}, |
|
|
getInnerText: function () { |
var innerDim = screenInfo.getInnerDim(); |
return ", " + innerDim.width + "×" + innerDim.height + " <?php echo tr('used'); ?>"; |
}, |
|
|
getColorDepthText: function () { |
var colorDepth = screenInfo.getColorDepth(); |
return colorDepth |
405,7 → 407,7 |
} |
}; |
}()); |
|
|
(function () { |
var screenDimText = dim.getScreenText(); |
var availDimText = dim.getAvailText(); |
417,7 → 419,7 |
+ (innerDimText ? '<span id="' + ID_INNER_DIM + '">' + innerDimText + "<\/span>)" : "") |
+ (colorDepthText ? ' × <span id="colorDepth">' + colorDepthText + "<\/span>" : "") |
: TEXT_NOT_AVAILABLE; |
|
|
/* FIXME: Convert HTML to text, update whole title text */ |
document.write('<span>' + displayInfo + '<\/span>'); |
|
427,7 → 429,7 |
{ |
oColorDepth = document.getElementById("colorDepth"); |
} |
|
|
if (oColorDepth) |
{ |
var colorDepthText = dim.getColorDepthText(); |
461,7 → 463,7 |
{ |
oUA = document.getElementById("ua"); |
} |
|
|
if (oUA) |
{ |
var ua = navigator.userAgent; |
503,7 → 505,7 |
var altitudeAccuracy = coords.altitudeAccuracy; |
var speed = coords.speed; |
var heading = coords.heading; |
|
|
return [ |
"<?php echo tr('Latitude:'); ?> " + (latitude != null ? latitude + "°" : TEXT_NOT_AVAILABLE), |
"<?php echo tr('Longitude:'); ?> " + (longitude != null ? longitude + "°" : TEXT_NOT_AVAILABLE), |
519,7 → 521,7 |
window.alert("<?php echo tr('Your current coordinates on Terra'); ?>\n\n" + this.getText(position)); |
} |
}; |
|
|
(function () { |
function getFeatures () |
{ |
557,12 → 559,12 |
{ |
features.push("<?php echo tr('Fullscreen'); ?>"); |
} |
|
|
if (navigator.webkitGetGamepads && navigator.webkitGetGamepads().length) |
{ |
features.push("<?php echo tr('Gamepad'); ?>"); |
} |
|
|
if (navigator.geolocation) |
{ |
features.push('<a href="#" title="<?php echo tr('Get location'); ?>"' |
575,7 → 577,7 |
{ |
features.push("Java"); |
} |
|
|
var storage = jsx.dom.storage; |
if (storage.localStorage.isSupported()) features.push("Local Storage"); |
|
608,7 → 610,7 |
{ |
return s.replace(/<[^>]+>/g, ""); |
} |
|
|
var sFeatures = getFeatures(); |
document.write('<span id="features" title="' + stripTags(sFeatures) + '">' + sFeatures + '<\/span>'); |
|
628,13 → 630,13 |
{ |
oFeaturesHtml = document.createElement("span"); |
} |
|
|
if (oFeaturesHtml) |
{ |
oFeaturesHtml.innerHTML = sNewFeatures; |
sNewFeatures = oFeaturesHtml.innerHTML; |
} |
|
|
if (oFeatures.innerHTML != sNewFeatures) |
{ |
oFeatures.innerHTML = sNewFeatures; |
694,7 → 696,7 |
{ |
cmd3 = jsx.dom.getElementById("cmd3"); |
} |
|
|
if (cmd3) |
{ |
cmd3.firstChild.tabIndex = "1"; |
704,7 → 706,7 |
var fullscreenText = "<?php echo tr("Fullscreen"); ?>"; |
document.write(fullscreenText); |
} |
|
|
var oScreenDim; |
var oAvailDim; |
var oInnerDim; |
711,7 → 713,7 |
var _gEBI = jsx.dom.getElementById; |
var previousIsFullscreen; |
var oldHandler; |
|
|
_addEventListener(window, "resize", function () { |
<?php /* FIXME: Also update title attribute value */ ?> |
if (typeof oScreenDim == "undefined") oScreenDim = _gEBI(ID_SCREEN_DIM); |
722,7 → 724,7 |
|
if (typeof oInnerDim == "undefined") oInnerDim = _gEBI(ID_INNER_DIM); |
if (oInnerDim) oInnerDim.innerHTML = dim.getInnerText(); |
|
|
if (fullscreen.isSupportedBy(document.documentElement)) |
{ |
var nowIsFullscreen = fullscreen.isFullscreen(); |
732,7 → 734,7 |
{ |
cmd3 = document.getElementById("cmd3"); |
} |
|
|
var target = cmd3.firstChild; |
var textTarget = target.firstChild; |
if (nowIsFullscreen) |
748,7 → 750,7 |
target.onclick = oldHandler; |
textTarget.textContent = fullscreenText; |
} |
|
|
previousIsFullscreen = nowIsFullscreen; |
} |
} |