Add resize button

http-comm
cpsdqs 7 years ago
parent 7407419e56
commit 3e6187dba9
Signed by untrusted user: cpsdqs
GPG Key ID: 3F59586BB7448DD1
  1. BIN
      html_orig/fontello/fontello.zip
  2. 13
      html_orig/jssrc/term_screen.js
  3. 3
      html_orig/pages/term.php
  4. 6
      html_orig/sass/_fontello.scss

Binary file not shown.

@ -881,3 +881,16 @@ function fitScreenIfNeeded () {
}
fitScreenIfNeeded();
window.addEventListener('resize', fitScreenIfNeeded)
window.toggleFitScreen = function () {
fitScreen = !fitScreen;
const resizeButtonIcon = qs('#resize-button-icon')
if (fitScreen) {
resizeButtonIcon.classList.remove('icn-resize-small')
resizeButtonIcon.classList.add('icn-resize-full')
} else {
resizeButtonIcon.classList.remove('icn-resize-full')
resizeButtonIcon.classList.add('icn-resize-small')
}
fitScreenIfNeeded();
}

@ -58,7 +58,8 @@
</div>
<nav id="term-nav">
<a href="#" onclick="kbOpen(true);return false" class="mq-tablet-max"><i class="icn-keyboard"></i><span><?= tr('term_nav.keybd') ?></span></a><!--
<a href="#" onclick="toggleFitScreen();return false" class="mq-tablet-max"><i id="resize-button-icon" class="icn-resize-small"></i></a><!--
--><a href="#" onclick="kbOpen(true);return false" class="mq-tablet-max"><i class="icn-keyboard"></i><span><?= tr('term_nav.keybd') ?></span></a><!--
--><a href="#" onclick="TermUpl.open();return false"><i class="icn-download"></i><span><?= tr('term_nav.upload') ?></span></a><!--
--><a href="<?= url('cfg_term') ?>" class="x-term-conf-btn"><i class="icn-configure"></i><span><?= tr('term_nav.config') ?></span></a><!--
--><a href="<?= url('cfg_wifi') ?>" class="x-term-conf-btn"><i class="icn-wifi"></i><span><?= tr('term_nav.wifi') ?></span></a><!--

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save