368,47 → 368,101 |
<tr> |
<th><?php echo _('Display'); ?>:</th> |
<td><script type="text/javascript"> |
var dim = { |
getScreen: function () { |
return screen.width + "×" + screen.height; |
}, |
(function () { |
var screenInfo = { |
getDim: function () { |
return { |
width: screen.width, |
height: screen.height |
}; |
}, |
|
getAvail: function () { |
return screen.availWidth + "×" + screen.availHeight; |
}, |
getAvailDim: function () { |
return { |
width: screen.availWidth, |
height: screen.availHeight |
}; |
}, |
|
getInner: function () { |
return window.innerWidth + "×" + window.innerHeight; |
}, |
getInnerDim: function () { |
return { |
width: window.innerWidth, |
height: window.innerHeight |
}; |
}, |
|
getColorDepth: function () { |
return (screen.colorDepth || screen.pixelDepth); |
} |
}; |
|
var dim = { |
getScreenText: function () { |
var screenDim = screenInfo.getDim(); |
return screenDim.width + "×" + screenDim.height; |
}, |
|
getColorDepth: function () { |
return (screen.colorDepth || screen.pixelDepth); |
} |
}; |
getAvailText: function () { |
var availDim = screenInfo.getAvailDim(); |
return availDim.width + "×" + availDim.height + " <?php echo _('available'); ?>"; |
}, |
|
var displayInfo; |
(function () { |
displayInfo = |
'<span id="screenDim">' + dim.getScreen() + '<\/span>' |
+ ' (<span id="availDim">' + dim.getAvail() + "<\/span> <?php echo _('available'); ?>," |
+ ' <span id="innerDim">' + dim.getInner() + "<\/span> <?php echo _('used'); ?>) <?php echo _('pixels'); ?>" |
+ ' × 2<sup><span id="colorDepth">' + dim.getColorDepth() + "<\/span><\/sup> <?php echo _('colors'); ?>"; |
getInnerText: function () { |
var innerDim = screenInfo.getInnerDim(); |
return ", " + innerDim.width + "×" + innerDim.height + " <?php echo _('used'); ?>"; |
}, |
|
getColorDepthText: function () { |
var colorDepth = screenInfo.getColorDepth(); |
return colorDepth |
? '2<sup>' + colorDepth + "<\/sup> <?php echo _('colors'); ?>" |
: ""; |
} |
}; |
|
var screenDimText = dim.getScreenText(); |
var availDimText = dim.getAvailText(); |
var innerDimText = dim.getInnerText(); |
var colorDepthText = dim.getColorDepthText(); |
var displayInfo = (screenDimText || availDimText || innerDimText || colorDepthText) |
? (screenDimText ? '<span id="screenDim">' + screenDimText + '<\/span>' : "") |
+ (availDimText ? ' (<span id="availDim">' + availDimText + "<\/span>" : "") |
+ (innerDimText ? '<span id="innerDim">' + innerDimText + "<\/span>) <?php echo _('pixels'); ?>" : "") |
+ (colorDepthText ? ' × <span id="colorDepth">' + colorDepthText + "<\/span>" : "") |
: "<?php echo _('N/A'); ?>"; |
|
/* FIXME: Convert HTML to text, update whole title text */ |
document.write('<span>' + displayInfo + '<\/span>'); |
|
var oScreenDim; |
var oAvailDim; |
var oInnerDim; |
window.onresize = function () { |
/* FIXME: Also update title attribute value */ |
if (typeof oScreenDim == "undefined") oScreenDim = document.getElementById("screenDim"); |
if (oScreenDim) oScreenDim.innerHTML = dim.getScreenText(); |
|
if (typeof oAvailDim == "undefined") oAvailDim = document.getElementById("availDim"); |
if (oAvailDim) oAvailDim.innerHTML = dim.getAvailText(); |
|
if (typeof oInnerDim == "undefined") oInnerDim = document.getElementById("innerDim"); |
if (oInnerDim) oInnerDim.innerHTML = dim.getInnerText(); |
}; |
|
var oColorDepth; |
window.setTimeout(function () { |
if (typeof oColorDepth == "undefined") |
{ |
oColorDepth = document.getElementById("colorDepth"); |
} |
|
if (oColorDepth) |
{ |
/* FIXME: Also update title attribute value */ |
oColorDepth.innerHTML = dim.getColorDepthText(); |
} |
}, 1000); |
}()); |
|
window.onresize = function () { |
/* FIXME: Update whole title text */ |
document.getElementById("screenDim").innerHTML = dim.getScreen(); |
document.getElementById("availDim").innerHTML = dim.getAvail(); |
document.getElementById("innerDim").innerHTML = dim.getInner(); |
}; |
|
window.setTimeout(function () { |
/* FIXME: Update whole title text */ |
document.getElementById("colorDepth").innerHTML = dim.getColorDepth(); |
}, 1000); |
</script><noscript><?php echo _('N/A'); ?></noscript></td> |
</tr> |
<tr> |
417,9 → 471,21 |
(function () { |
var ua = navigator.userAgent; |
document.write('<span id="ua" title="' + ua + '">' + ua + '<\/span>'); |
|
|
var oUA; |
window.setTimeout(function () { |
document.getElementById("ua").innerHTML = navigator.userAgent; |
if (typeof oUA == "undefined") |
{ |
oUA = document.getElementById("ua"); |
} |
|
if (oUA) |
{ |
oUA.innerHTML = navigator.userAgent; |
|
/* Converts CREs */ |
oUA.title = oUA.innerHTML; |
} |
}, 1000); |
}()); |
</script><noscript><?php echo _('N/A'); ?></noscript></td> |
562,12 → 628,20 |
var sFeatures = getFeatures(); |
document.write('<span id="features" title="' + sFeatures + '">' + sFeatures + '<\/span>'); |
|
var oFeatures; |
window.setTimeout(function () { |
var sFeatures = getFeatures(); |
var oFeatures = document.getElementById("features"); |
oFeatures.innerHTML = sFeatures; |
/* Converts CREs */ |
oFeatures.title = oFeatures.innerHTML; |
if (typeof oFeatures == "undefined") |
{ |
oFeatures = document.getElementById("features"); |
} |
|
if (oFeatures) |
{ |
oFeatures.innerHTML = getFeatures(); |
|
/* Converts CREs */ |
oFeatures.title = oFeatures.innerHTML; |
} |
}, 1000); |
}()); |
</script><noscript><?php echo _('N/A'); ?></noscript></td> |
596,8 → 670,7 |
<li id="cmd3"><div class="button left right" |
style="cursor: not-allowed !important" |
onclick="fullscreen.requestOn(document.documentElement, this, this.firstChild)" |
onkeyup="if (event.keyCode == 13) { this.onclick(); this.onmouseup(); }" |
onmouseup="this.blur()" |
onkeyup="if (event.keyCode == 13) { this.onclick(); }" |
tabindex="1" |
><span class="text"><script type="text/javascript"> |
if (fullscreen.isSupportedBy(document.documentElement)) |