59,13 → 59,7 |
<!-- <link rel="stylesheet" type="text/css" href="styles/lcars.css"> --> |
<!-- <link rel="stylesheet" type="text/css" href="styles/lcars21.css"> --> |
*/ ?> |
<link rel="stylesheet" type="text/css" href="scripts/builder?type=text/css&prefix=../styles/&src=lcars-basic<?php |
$isLocal = ($_SERVER['HTTP_HOST'] === 'localhost'); |
if ($isLocal) |
{ |
?>&verbose=1&debug=1<?php |
} |
?>"> |
<link rel="stylesheet" type="text/css" href="scripts/builder?type=text/css&prefix=../styles/&src=lcars-basic"> |
<?php |
$printable = (isset($_GET['printable']) && $_GET['printable'] === '1'); |
if (!$printable) |
76,11 → 70,6 |
{ |
echo '?ani=' . $_GET['ani']; |
} |
|
if ($isLocal) |
{ |
?>&verbose=1&debug=1<?php |
} |
?>"> |
<?php |
} |
93,12 → 82,7 |
--> |
</style> |
|
<script type="text/javascript" src="scripts/builder?src=object,dom,dom/storage,dom/events,dom/timeout,dom/window<?php |
if ($isLocal) |
{ |
?>&verbose=1&debug=1<?php |
} |
?>"></script> |
<script type="text/javascript" src="scripts/builder?src=object,dom,dom/storage,dom/window"></script> |
<script type="text/javascript"> |
<?php |
/* |
374,7 → 358,32 |
<th><?php echo _('Display'); ?>:</th> |
<td><script type="text/javascript"> |
(function () { |
var screenInfo = jsx.dom.window.screenInfo; |
var screenInfo = { |
getDim: function () { |
return { |
width: screen.width, |
height: screen.height |
}; |
}, |
|
getAvailDim: function () { |
return { |
width: screen.availWidth, |
height: screen.availHeight |
}; |
}, |
|
getInnerDim: function () { |
return { |
width: window.innerWidth, |
height: window.innerHeight |
}; |
}, |
|
getColorDepth: function () { |
return (screen.colorDepth || screen.pixelDepth); |
} |
}; |
|
var dim = { |
getScreenText: function () { |
417,21 → 426,20 |
var oScreenDim; |
var oAvailDim; |
var oInnerDim; |
var _gEBI = jsx.dom.getElementById; |
jsx.dom.addEventListener(window, "resize", function () { |
window.onresize = function () { |
/* FIXME: Also update title attribute value */ |
if (typeof oScreenDim == "undefined") oScreenDim = _gEBI("screenDim"); |
if (typeof oScreenDim == "undefined") oScreenDim = document.getElementById("screenDim"); |
if (oScreenDim) oScreenDim.innerHTML = dim.getScreenText(); |
|
if (typeof oAvailDim == "undefined") oAvailDim = _gEBI("availDim"); |
if (typeof oAvailDim == "undefined") oAvailDim = document.getElementById("availDim"); |
if (oAvailDim) oAvailDim.innerHTML = dim.getAvailText(); |
|
if (typeof oInnerDim == "undefined") oInnerDim = _gEBI("innerDim"); |
if (typeof oInnerDim == "undefined") oInnerDim = document.getElementById("innerDim"); |
if (oInnerDim) oInnerDim.innerHTML = dim.getInnerText(); |
}); |
}; |
|
var oColorDepth; |
jsx.dom.timeout.runAsync(function () { |
window.setTimeout(function () { |
if (typeof oColorDepth == "undefined") |
{ |
oColorDepth = document.getElementById("colorDepth"); |
442,8 → 450,6 |
/* FIXME: Also update title attribute value */ |
oColorDepth.innerHTML = dim.getColorDepthText(); |
} |
|
this.run(); |
}, 1000); |
}()); |
</script><noscript><?php echo _('N/A'); ?></noscript></td> |
456,7 → 462,7 |
document.write('<span id="ua" title="' + ua + '">' + ua + '<\/span>'); |
|
var oUA; |
jsx.dom.timeout.runAsync(function () { |
window.setTimeout(function () { |
if (typeof oUA == "undefined") |
{ |
oUA = document.getElementById("ua"); |
469,8 → 475,6 |
/* Converts CREs */ |
oUA.title = oUA.innerHTML; |
} |
|
this.run(); |
}, 1000); |
}()); |
</script><noscript><?php echo _('N/A'); ?></noscript></td> |
478,8 → 482,7 |
<tr> |
<th><?php echo _('Features'); ?>:</th> |
<td><script type="text/javascript"> |
<?php /* FIXME: Move to window.js, keep i18n */ ?> |
var fullscreen = jsx.dom.window.fullscreen = (function () { |
var fullscreen = (function () { |
var _isHostMethod = jsx.object.isHostMethod; |
|
return { |
594,7 → 597,7 |
} |
}; |
}()); |
|
|
(function () { |
function getFeatures () |
{ |