Permalink
Browse files

Show scrollbar on mouse movement

  • Loading branch information...
NEMS Linux
NEMS Linux committed Dec 30, 2018
1 parent 62e0919 commit 020b690e98e287c0f6d3108faa62d3d098249a23
Showing with 15 additions and 9 deletions.
  1. +14 −7 tv/index.php
  2. +1 −2 tv/nagios.css
@@ -129,34 +129,41 @@ function refreshAt(hours, minutes, seconds) {
$(document).mousemove(function() {
if (!fadeInBuffer) {
if (timer) {
// console.log("clearTimer");
clearTimeout(timer);
timer = 0;
}
// console.log("fadeIn");
$('html').css({
cursor: ''
cursor: '',
overflow: 'auto'
});
} else {
$('body').css({
cursor: 'default'
cursor: 'default',
overflow: 'auto'
});
fadeInBuffer = false;
}
timer = setTimeout(function() {
// console.log("fadeout");
$('body').css({
cursor: 'none'
cursor: 'none',
overflow: 'hidden'
});
$('html').css({
overflow: 'hidden'
});
fadeInBuffer = true;
}, 1000)
});
$('body').css({
cursor: 'default'
cursor: 'default',
overflow: 'auto'
});
$('html').css({
overflow: 'auto'
});
});
@@ -1,6 +1,6 @@
html {
height: 100%;
overflow:hidden;
overflow: hidden;
}

* {
@@ -18,7 +18,6 @@ body {
padding: .5em 1em;
margin-bottom: 65px;
height: 100%;
overflow:hidden;
}

table {

0 comments on commit 020b690

Please sign in to comment.