modified: app.py

new file:   static/js/fullscreen.js
new file:   static/js/idle.js
modified:   templates/about.html
modified:   templates/inactive.html
modified:   templates/profiles.html
modified:   templates/quiz.html
modified:   templates/result.html
new file:   templates/video.html
This commit is contained in:
xbl
2026-04-16 20:27:39 +02:00
parent 02f0aa7de9
commit c164c592fa
9 changed files with 127 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
(function () {
const TIMEOUT_MS = 5 * 60 * 1000;
let timer;
function reset() {
clearTimeout(timer);
timer = setTimeout(() => {
window.location.href = '/video';
}, TIMEOUT_MS);
}
['mousemove', 'mousedown', 'keydown', 'touchstart', 'scroll', 'pointerdown']
.forEach(evt => document.addEventListener(evt, reset, { passive: true }));
reset(); // start the clock on page load
})();