cpsdqs/unified-input
Ondřej Hruška 7 years ago
parent 79664f56a6
commit 086532ff4c
  1. 2
      jssrc/term_screen.js
  2. 4
      pages/term.php

@ -1043,7 +1043,7 @@ Screen.once('load', () => {
let fitScreen = false let fitScreen = false
function fitScreenIfNeeded () { function fitScreenIfNeeded () {
Screen.window.fitIntoWidth = fitScreen ? window.innerWidth : 0 Screen.window.fitIntoWidth = fitScreen ? window.innerWidth - 20 : 0
Screen.window.fitIntoHeight = fitScreen ? window.innerHeight : 0 Screen.window.fitIntoHeight = fitScreen ? window.innerHeight : 0
} }
fitScreenIfNeeded() fitScreenIfNeeded()

@ -43,7 +43,7 @@
<h1><!-- Screen title gets loaded here by JS --></h1> <h1><!-- Screen title gets loaded here by JS --></h1>
<div id="term-wrap"> <div id="term-wrap">
<div id="screen" class="theme-%theme%"> <div id="screen">
<input id="softkb-input" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" /> <input id="softkb-input" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" />
<div id="touch-select-menu"> <div id="touch-select-menu">
<button id="touch-select-copy-btn">Copy</button> <button id="touch-select-copy-btn">Copy</button>
@ -73,7 +73,7 @@
try { try {
window.noAutoShow = true; window.noAutoShow = true;
termInit(); // the screen will be loaded via ajax termInit(); // the screen will be loaded via ajax
Screen.load('%j:labels_seq%'); Screen.load('%j:labels_seq%', +'%theme%');
} catch(e) { } catch(e) {
console.error(e); console.error(e);
<?php if (!DEBUG): ?> <?php if (!DEBUG): ?>

Loading…
Cancel
Save