58,9 → 58,7 |
<?php /* |
<!-- <link rel="stylesheet" type="text/css" href="styles/lcars.css"> --> |
<!-- <link rel="stylesheet" type="text/css" href="styles/lcars21.css"> --> |
<!-- 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 --> |
<!-- No optimization here: Resource Builder does not handle URI parameters --> |
*/ ?> |
<link rel="stylesheet" type="text/css" href="styles/lcars-basic"> |
<?php |
163,7 → 161,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>] |
266,7 → 264,7 |
<div class="spacer"> </div> |
</div> |
</div> |
|
|
<div class="menu-container"> |
<nav class="menu"> |
<ul style="padding-top: 1em"> |
335,7 → 333,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( |
360,7 → 358,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> |
379,7 → 377,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; |
|
388,17 → 386,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 |
407,7 → 405,7 |
} |
}; |
}()); |
|
|
(function () { |
var screenDimText = dim.getScreenText(); |
var availDimText = dim.getAvailText(); |
419,7 → 417,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>'); |
|
429,7 → 427,7 |
{ |
oColorDepth = document.getElementById("colorDepth"); |
} |
|
|
if (oColorDepth) |
{ |
var colorDepthText = dim.getColorDepthText(); |
463,7 → 461,7 |
{ |
oUA = document.getElementById("ua"); |
} |
|
|
if (oUA) |
{ |
var ua = navigator.userAgent; |
505,7 → 503,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), |
521,7 → 519,7 |
window.alert("<?php echo tr('Your current coordinates on Terra'); ?>\n\n" + this.getText(position)); |
} |
}; |
|
|
(function () { |
function getFeatures () |
{ |
559,12 → 557,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'); ?>"' |
577,7 → 575,7 |
{ |
features.push("Java"); |
} |
|
|
var storage = jsx.dom.storage; |
if (storage.localStorage.isSupported()) features.push("Local Storage"); |
|
610,7 → 608,7 |
{ |
return s.replace(/<[^>]+>/g, ""); |
} |
|
|
var sFeatures = getFeatures(); |
document.write('<span id="features" title="' + stripTags(sFeatures) + '">' + sFeatures + '<\/span>'); |
|
630,13 → 628,13 |
{ |
oFeaturesHtml = document.createElement("span"); |
} |
|
|
if (oFeaturesHtml) |
{ |
oFeaturesHtml.innerHTML = sNewFeatures; |
sNewFeatures = oFeaturesHtml.innerHTML; |
} |
|
|
if (oFeatures.innerHTML != sNewFeatures) |
{ |
oFeatures.innerHTML = sNewFeatures; |
696,7 → 694,7 |
{ |
cmd3 = jsx.dom.getElementById("cmd3"); |
} |
|
|
if (cmd3) |
{ |
cmd3.firstChild.tabIndex = "1"; |
706,7 → 704,7 |
var fullscreenText = "<?php echo tr("Fullscreen"); ?>"; |
document.write(fullscreenText); |
} |
|
|
var oScreenDim; |
var oAvailDim; |
var oInnerDim; |
713,7 → 711,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); |
724,7 → 722,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(); |
734,7 → 732,7 |
{ |
cmd3 = document.getElementById("cmd3"); |
} |
|
|
var target = cmd3.firstChild; |
var textTarget = target.firstChild; |
if (nowIsFullscreen) |
750,7 → 748,7 |
target.onclick = oldHandler; |
textTarget.textContent = fullscreenText; |
} |
|
|
previousIsFullscreen = nowIsFullscreen; |
} |
} |