Subversion Repositories LCARS

Compare Revisions

Last modification

Ignore whitespace Rev 165 → Rev 166

/trunk/index.phtml
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&uuml;gbar"
>en</abbr>]
266,7 → 264,7
<div class="spacer">&nbsp;</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">&nbsp;</div>
<div class="bow top right">&nbsp;</div>
 
<div class="bow mid left">&nbsp;</div>
<div class="bow mid right">&nbsp;</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 ? ' ×&nbsp;<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;
}
}
/trunk/index.php
73,30 → 73,34
content="<?php echo tr("All rights reserved."); ?> <?php echo tr("The author is not responsible for the availability and the content of websites referred by this site, and not responsible for the availability and the content of websites referred by those sites. Whereever outsourced material is used, copyright or trademark infringement is not intended. Third parties who claim copyrights or trademarks used herein are asked to send an informal email to webmaster@PointedEars.de for immediate removal or modification of the respective material on the website instead of reminding the author of usage of this material. Thank you."); ?>">
<?php /*
<!-- <link rel="stylesheet" type="text/css" href="styles/lcars21.css"> -->
<!-- IE 9 in non-Compatibility Mode sends "Accept: text/css",
Apache responds with 406 without .php:
http://blog.s9y.org/archives/227-ie9-has-trouble-with-css-content-types.html
(Resource Builder handles negotation for sources)
-->
*/ ?>
<link rel="stylesheet" type="text/css" href="styles/lcars-basic.css">
<link rel="stylesheet" type="text/css" href="styles/lcars22">
<link rel="stylesheet" type="text/css" href="scripts/builder.php?type=text/css&amp;prefix=../styles/&amp;src=lcars-basic,lcars22">
<style type="text/css">
<!--
a {
text-decoration: none;
}
 
ul {
list-style: none;
padding-left: 0;
}
 
#greeting {
margin-top: 0;
}
 
#greeting p {
background-color: #000;
color: #fff;
font-size: 136%;
}
 
#languages .key {
min-width: 0.65em;
}
170,7 → 174,7
}
}
];
 
var animation = new Animation({
timelines: [
new Timeline({
227,18 → 231,18
border="0"
onmouseover="return setStatus(this.title)"
onmouseout="return resetStatus()"></div>
 
<ul id="greeting">
<li style="white-space: nowrap"><p style="text-align: center" lang="x-vulcan-latin">Dif-tor heh smusma</p></li>
<li style="white-space: nowrap"><p style="text-align: center" lang="en">Live long and prosper</p></li>
<li style="white-space: nowrap"><p style="text-align: center" lang="de">Leben Sie lang und erfolgreich</p></li>
</ul>
 
<ul style="text-align: center">
<li class="instruction" lang="en">Please select your language</li>
<li class="instruction" lang="de">Bitte w&auml;hlen Sie Ihre Sprache</li>
</ul>
 
<div class="group">
<div class="separator">&nbsp;</div>
<ul id="languages">
252,7 → 256,7
</ul>
<div style="clear: both"><!-- --></div>
</div>
 
<?php
$app = 'Language';
require_once 'footer.phtml';