Subversion Repositories LCARS

Compare Revisions

Last modification

Regard whitespace Rev 230 → Rev 231

/trunk/application/layouts/index/multi-display.phtml
78,6 → 78,7
 
<div class="menu-container">
<nav class="menu">
<!--
<ul>
<?php foreach ($languages as $key => $name): ?>
<li><a
89,6 → 90,7
<?php endforeach; ?>
</ul>
<div class="bow" style="margin-bottom: 0.4em; height: 0.4em">&nbsp;</div>
-->
<ul style="margin-bottom: 1.2em">
<li><a href="<?php echo $menu['scripts']['path']; ?>"
target="_top" class="button" lang="<?php echo $language; ?>"
203,7 → 205,7
<div class="analysis" id="analysis">
<table>
<tr>
<th lang="<?php echo $language; ?>"><span class="text"><?php echo tr('Display'); ?>:</span></th>
<th lang="<?php echo $language; ?>"><span class="text"><?php echo tr('Display'); ?></span></th>
<td lang="<?php echo $language; ?>"><script
type="text/javascript"
>
285,7 → 287,7
<noscript><?php echo tr('N/A'); ?></noscript></td>
</tr>
<tr>
<th lang="<?php echo $language; ?>"><span class="text"><?php echo tr('User Agent'); ?>:</span></th>
<th lang="<?php echo $language; ?>"><span class="text"><?php echo tr('User Agent'); ?></span></th>
<td><script type="text/javascript"
src="application/scripts/ua.js"
></script>
293,7 → 295,7
echo tr('N/A'); ?></noscript></td>
</tr>
<tr>
<th lang="<?php echo $language; ?>"><span class="text"><?php echo tr('Features'); ?>:</span></th>
<th lang="<?php echo $language; ?>"><span class="text"><?php echo tr('Features'); ?></span></th>
<td><script type="text/javascript">
var fullscreen = jsx.dom.window.fullscreen;
 
458,10 → 460,24
onblur="return this.onmouseout()"
lang="<?php echo $language; ?>"
><span class="text"><?php echo tr("Printable"); ?></span></a></li>
<li id="cmd3"><div class="button left right"
<li id="cmd3"><script type="text/javascript">
function toggleFullscreen (button)
{
var nowIsFullscreen = fullscreen.isFullscreen();
 
if (nowIsFullscreen)
{
fullscreen.cancel();
}
else
{
fullscreen.requestOn(document.documentElement, button);
}
}
</script><div class="button left right"
style="cursor: not-allowed !important"
onclick="fullscreen.requestOn(document.documentElement, this)"
onkeyup="if (event.keyCode == 13) { this.onclick(); }"
onclick="toggleFullscreen(this)"
onkeyup="if (event.keyCode == 13) { this.click(); }"
lang="<?php echo $language; ?>"
><span class="text"><script type="text/javascript">
var cmd3;
475,7 → 491,7
 
if (cmd3)
{
cmd3.firstChild.tabIndex = "1";
cmd3.lastChild.tabIndex = "1";
}
});
 
511,21 → 527,14
cmd3 = document.getElementById("cmd3");
}
 
var target = cmd3.firstChild;
var textTarget = target.firstChild;
var textTarget = cmd3.lastChild.firstChild;
if (nowIsFullscreen)
{
/* FIXME: Do not override event listeners, use the state instead */
oldHandler = target.onclick;
target.onclick = function () {
fullscreen.cancel();
};
textTarget.textContent = "<?php echo tr("Window"); ?>";
textTarget.innerHTML = "<?php echo tr("Window"); ?>";
}
else
{
target.onclick = oldHandler;
textTarget.textContent = fullscreenText;
textTarget.innerHTML = fullscreenText;
}
 
previousIsFullscreen = nowIsFullscreen;
532,8 → 541,7
}
}
});
</script></span>
</div></li>
</script></span></div></li>
<li id="cmd4"><script type="text/javascript">
var LANG_KLINGON = "<?php echo $klingon; ?>";
var LANG_VULCAN = "<?php echo $vulcan; ?>";
565,14 → 573,14
if (!is_alien_language)
{
button.setAttribute("data-caption", button.firstChild.textContent);
button.firstChild.textContent = "Latin";
button.firstChild.textContent = "<?php echo tr('Latin'); ?>";
}
}
}
</script>
<div class="button left right"<?php
$language_keys = array_keys($languages);
if (in_array(@$klingon, $language_keys) || in_array(@$vulcan, $language_keys))
// $language_keys = array_keys($languages);
if (in_array($language, array(@$klingon, @$vulcan)))
{
?> tabindex="1" onclick="return toggleScript(this)"<?php
}
580,12 → 588,14
{
?> style="cursor: not-allowed !important"<?php
}
?>><span class="text" lang="<?php echo $language; ?>"><?php
?>
onkeyup="if (event.keyCode == 13) { this.click(); }"
><span class="text" lang="<?php echo $language; ?>"><?php
switch ($language)
{
case $klingon: echo 'pIqaD'; break;
case $vulcan: echo 'Hitra-Zukitan'; break;
default: echo 'Original';
// default: echo tr('Original');
}
?></span>
</div></li>