Subversion Repositories LCARS

Compare Revisions

Last modification

Ignore whitespace Rev 231 → Rev 230

/trunk/application/layouts/index/multi-display.phtml
78,8 → 78,7
 
<div class="menu-container">
<nav class="menu">
<!--
<ul>
<ul>
<?php foreach ($languages as $key => $name): ?>
<li><a
href="index.<?php echo language_key_short($key); ?>?ani=0"
90,7 → 89,6
<?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; ?>"
205,7 → 203,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"
>
287,7 → 285,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>
295,7 → 293,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;
 
460,24 → 458,10
onblur="return this.onmouseout()"
lang="<?php echo $language; ?>"
><span class="text"><?php echo tr("Printable"); ?></span></a></li>
<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"
<li id="cmd3"><div class="button left right"
style="cursor: not-allowed !important"
onclick="toggleFullscreen(this)"
onkeyup="if (event.keyCode == 13) { this.click(); }"
onclick="fullscreen.requestOn(document.documentElement, this)"
onkeyup="if (event.keyCode == 13) { this.onclick(); }"
lang="<?php echo $language; ?>"
><span class="text"><script type="text/javascript">
var cmd3;
491,7 → 475,7
 
if (cmd3)
{
cmd3.lastChild.tabIndex = "1";
cmd3.firstChild.tabIndex = "1";
}
});
 
527,14 → 511,21
cmd3 = document.getElementById("cmd3");
}
 
var textTarget = cmd3.lastChild.firstChild;
var target = cmd3.firstChild;
var textTarget = target.firstChild;
if (nowIsFullscreen)
{
textTarget.innerHTML = "<?php echo tr("Window"); ?>";
/* FIXME: Do not override event listeners, use the state instead */
oldHandler = target.onclick;
target.onclick = function () {
fullscreen.cancel();
};
textTarget.textContent = "<?php echo tr("Window"); ?>";
}
else
{
textTarget.innerHTML = fullscreenText;
target.onclick = oldHandler;
textTarget.textContent = fullscreenText;
}
 
previousIsFullscreen = nowIsFullscreen;
541,7 → 532,8
}
}
});
</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; ?>";
573,14 → 565,14
if (!is_alien_language)
{
button.setAttribute("data-caption", button.firstChild.textContent);
button.firstChild.textContent = "<?php echo tr('Latin'); ?>";
button.firstChild.textContent = "Latin";
}
}
}
</script>
<div class="button left right"<?php
// $language_keys = array_keys($languages);
if (in_array($language, array(@$klingon, @$vulcan)))
$language_keys = array_keys($languages);
if (in_array(@$klingon, $language_keys) || in_array(@$vulcan, $language_keys))
{
?> tabindex="1" onclick="return toggleScript(this)"<?php
}
588,14 → 580,12
{
?> style="cursor: not-allowed !important"<?php
}
?>
onkeyup="if (event.keyCode == 13) { this.click(); }"
><span class="text" lang="<?php echo $language; ?>"><?php
?>><span class="text" lang="<?php echo $language; ?>"><?php
switch ($language)
{
case $klingon: echo 'pIqaD'; break;
case $vulcan: echo 'Hitra-Zukitan'; break;
// default: echo tr('Original');
default: echo 'Original';
}
?></span>
</div></li>