throttle reload nad use textarea for mobile input bc it shows better symbol for the enter button

pull/111/merge
Ondřej Hruška 7 years ago
parent 319427ba2e
commit 76b447d03e
  1. 8
      html_orig/pages/term.php

@ -22,7 +22,7 @@
</div> </div>
</div> </div>
<input id="softkb-input" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"> <textarea id="softkb-input" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>
<nav id="botnav"> <nav id="botnav">
<a href="#" onclick="toggleSoftKb(true); return false" class="icn-keyboard mq-tablet-max"></a><!-- <a href="#" onclick="toggleSoftKb(true); return false" class="icn-keyboard mq-tablet-max"></a><!--
@ -47,8 +47,10 @@
}); });
} catch(e) { } catch(e) {
console.error(e); console.error(e);
console.error("Fail, reloading…"); console.error("Fail, reloading in 1s…");
location.reload(true); setTimeout(function() {
location.reload(true);
}, 1000);
} }
function toggleSoftKb(yes) { function toggleSoftKb(yes) {

Loading…
Cancel
Save