|
|
|
<script>
|
|
|
|
// Workaround for badly loaded page
|
|
|
|
setTimeout(function() {
|
|
|
|
if (typeof termInit == 'undefined' || typeof $ == 'undefined') {
|
|
|
|
console.error("Page load failed, refreshing…");
|
|
|
|
location.reload(true);
|
|
|
|
}
|
|
|
|
}, 2000);
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<h1></h1>
|
|
|
|
|
|
|
|
<div id="termwrap">
|
|
|
|
<div id="screen" class="theme-%theme%"></div>
|
|
|
|
|
|
|
|
<div id="buttons">
|
|
|
|
<button data-n="1" class="btn-blue"></button><!--
|
|
|
|
--><button data-n="2" class="btn-blue"></button><!--
|
|
|
|
--><button data-n="3" class="btn-blue"></button><!--
|
|
|
|
--><button data-n="4" class="btn-blue"></button><!--
|
|
|
|
--><button data-n="5" class="btn-blue"></button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<textarea id="softkb-input" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>
|
|
|
|
|
|
|
|
<nav id="botnav">
|
|
|
|
<a href="#" onclick="toggleSoftKb(true); return false" class="icn-keyboard mq-tablet-max"></a><!--
|
|
|
|
--><a href="<?= url('cfg_wifi') ?>"><?= tr('menu.settings') ?></a><!--
|
|
|
|
--><a href="<?= url('help') ?>">Help</a><!--
|
|
|
|
--><a href="<?= url('about') ?>">About</a>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
try {
|
|
|
|
window.noAutoShow = true;
|
|
|
|
termInit(); // the screen will be loaded via ajax
|
|
|
|
Screen.load('%j:labels_seq%');
|
|
|
|
|
|
|
|
// auto-clear the input box
|
|
|
|
$('#softkb-input').on('input', function(e) {
|
|
|
|
setTimeout(function(){$('#softkb-input').val('');}, 1);
|
|
|
|
});
|
|
|
|
} catch(e) {
|
|
|
|
console.error(e);
|
|
|
|
console.error("Fail, reloading…");
|
|
|
|
location.reload(true);
|
|
|
|
}
|
|
|
|
|
|
|
|
function toggleSoftKb(yes) {
|
|
|
|
var i = qs('#softkb-input');
|
|
|
|
if (yes) i.focus();
|
|
|
|
else i.blur();
|
|
|
|
}
|
|
|
|
</script>
|