Subversion Repositories LCARS

Compare Revisions

Last modification

Regard whitespace Rev 129 → Rev 130

/trunk/index.phtml
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&amp;prefix=../styles/&amp;src=lcars-basic">
<link rel="stylesheet" type="text/css" href="scripts/builder?type=text/css&amp;prefix=../styles/&amp;src=lcars-basic<?php
$isLocal = ($_SERVER['HTTP_HOST'] === 'localhost');
if ($isLocal)
{
?>&amp;verbose=1&amp;debug=1<?php
}
?>">
<?php
$printable = (isset($_GET['printable']) && $_GET['printable'] === '1');
if (!$printable)
70,6 → 76,11
{
echo '?ani=' . $_GET['ani'];
}
 
if ($isLocal)
{
?>&amp;verbose=1&amp;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)
{
?>&amp;verbose=1&amp;debug=1<?php
}
?>"></script>
<script type="text/javascript">
<?php
/*
358,33 → 374,8
<th><?php echo _('Display'); ?>:</th>
<td><script type="text/javascript">
(function () {
var screenInfo = {
getDim: function () {
return {
width: screen.width,
height: screen.height
};
},
var screenInfo = jsx.dom.window.screenInfo;
 
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 () {
var screenDim = screenInfo.getDim();
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 {