fixed layout
This commit is contained in:
parent
cf7bd8da9c
commit
9066397cd4
@ -12,8 +12,22 @@ let pinInput4 = document.getElementById('pinInput4');
|
|||||||
|
|
||||||
let pinError = document.getElementById('pinError');
|
let pinError = document.getElementById('pinError');
|
||||||
|
|
||||||
|
let lastActivity = new Date().getTime();
|
||||||
|
let lastActivityTimeout = 1000 * 60 * 5; // 5 minutes
|
||||||
|
|
||||||
let currentUser = null;
|
let currentUser = null;
|
||||||
|
|
||||||
|
document.addEventListener('click', function() {
|
||||||
|
lastActivity = new Date().getTime();
|
||||||
|
});
|
||||||
|
|
||||||
|
setInterval(function() {
|
||||||
|
let now = new Date().getTime();
|
||||||
|
if(now - lastActivity > lastActivityTimeout) {
|
||||||
|
window.location.href = '/';
|
||||||
|
}
|
||||||
|
}, 1000);
|
||||||
|
|
||||||
// Attach event listeners to all numpad buttons
|
// Attach event listeners to all numpad buttons
|
||||||
let numpadButtons = numpad.getElementsByTagName('button');
|
let numpadButtons = numpad.getElementsByTagName('button');
|
||||||
for(let i = 0; i < numpadButtons.length; i++) {
|
for(let i = 0; i < numpadButtons.length; i++) {
|
||||||
|
@ -3,7 +3,8 @@
|
|||||||
<input id="scannerField" type="text"/>
|
<input id="scannerField" type="text"/>
|
||||||
<section class="section container" id="mainSelect">
|
<section class="section container" id="mainSelect">
|
||||||
<h1 class="title">Produktverwaltung</h1>
|
<h1 class="title">Produktverwaltung</h1>
|
||||||
<p class="heading"><button class="js-modal-trigger button" data-target="modal-js-example">
|
<p class="heading buttons">
|
||||||
|
<button class="js-modal-trigger button" data-target="modal-js-example">
|
||||||
Neues Produkt anlegen
|
Neues Produkt anlegen
|
||||||
</button><button class="js-modal-trigger button" data-target="modal-restock" id="btn_restock">
|
</button><button class="js-modal-trigger button" data-target="modal-restock" id="btn_restock">
|
||||||
Lager nachfüllen
|
Lager nachfüllen
|
||||||
|
Loading…
x
Reference in New Issue
Block a user