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