Subversion Repositories LCARS

Compare Revisions

Last modification

Ignore whitespace Rev 75 → Rev 76

/trunk/index.phtml
140,9 → 140,9
?>
<p style="text-align: center"><?php
echo sprintf(
_("If this site is not displayed properly, please try <a href='index.%s?printable=1'>%s</a>."),
_("If this site is not displayed properly, please try the <a href='index.%s?printable=1'>%s</a>."),
$language,
_('the printable version'));
_('Printable version'));
?></p>
<?php
}
319,8 → 319,8
title="<?php echo _("The Search for Extra-Terrestrial Intelligence at HOME"); ?>"
><span class="text">SETI at home</span></a></li>
</ul>
<script type="text/javascript" src="scripts/builder?src=object"></script>
<?php /*
<script type="text/javascript" src="scripts/builder?src=object"></script>
<script type="text/javascript">
var sURL = location.href;
var sFavAnchorTitle =
374,7 → 374,88
class="button left right" id="cmd2"
><span class="text"><?php echo _("Printable"); ?></span></a>
<div id="cmd3" class="button left right" style="cursor: not-allowed">&nbsp;</div>
<div id="cmd4" class="button left right" style="cursor: not-allowed">&nbsp;</div>
<script type="text/javascript">
var fullScreen = (function () {
var _isHostMethod = jsx.object.isHostMethod;
return {
isSupportedBy: function (elem) {
var prefixes = ["", "mozR", "webkitR"];
var suffix = "equestFullscreen";
 
for (var i = 0, len = prefixes.length; i < len; ++i)
{
var prefix = prefixes[i];
if (_isHostMethod(elem, prefix + suffix))
{
return prefix + suffix;
}
}
 
return false;
},
 
isEnabled: function () {
return document.fullscreenEnabled || document.mozFullscreenEnabled || document.webkitFullscreenEnabled;
},
 
cancel: function (target, oldHandler, textTarget) {
var prefixes = ["", "mozC", "webkitC"];
var suffix = "ancelFullScreen";
 
for (var i = 0, len = prefixes.length; i < len; ++i)
{
var prefix = prefixes[i];
if (_isHostMethod(document, prefix + suffix))
{
document[prefix + suffix]();
 
/* NOTE: ...FullscreenEnabled not reliable after cancel */
if (textTarget)
{
textTarget.textContent = "<?php echo _("Full Screen"); ?>";
}
if (target)
{
target.onclick = oldHandler;
}
}
}
},
requestOn: function (elem, eventTarget, textTarget) {
var requestMethodName;
 
if (elem && (requestMethodName = this.isSupportedBy(elem)))
{
elem[requestMethodName]();
if (textTarget && this.isEnabled())
{
var oldText = textTarget.textContent;
var me = this;
var oldHandler = eventTarget.onclick;
eventTarget.onclick = function () {
me.cancel(this, oldHandler, textTarget);
};
textTarget.textContent = "<?php echo _("Window"); ?>";
}
}
}
};
}());
</script>
<div id="cmd4" class="button left right"
onclick="fullScreen.requestOn(document.documentElement, this, this.firstChild)"
tabindex="1"
><span class="text"><script type="text/javascript">
if (fullScreen.isSupportedBy(document.documentElement))
{
document.write("<?php echo _("Full Screen"); ?>");
}
</script></span></div>
</div>
<div class="elbo-button">
<span class="text"><?php echo gmdate('Ym.d', $modi); ?></span>