Compare commits

..

No commits in common. "9066397cd479541459e54050d24455219c3446ed" and "14cf8af14bd9962be8a68d69789bdfaa8ccdddbf" have entirely different histories.

6 changed files with 3 additions and 34 deletions

View File

@ -16,11 +16,6 @@ document.body.addEventListener('click', () => {
// Lock screen or show mode
let screenState = 'lock';
let cookieScreen = getCookie('screen');
if (cookieScreen) {
screenState = cookieScreen;
}
function handleImage() {
if (screenState === 'lock') {
fetch('https://staging.thegreydiamond.de/projects/photoPortfolio/api/getRand.php?uuid=01919dec-b2cd-7adc-8ca2-a071d1169cbc&unsplash=true&orientation=landscape')

Binary file not shown.

Before

Width:  |  Height:  |  Size: 637 KiB

After

Width:  |  Height:  |  Size: 4.7 MiB

View File

@ -689,16 +689,6 @@ document.addEventListener('DOMContentLoaded', () => {
});
});
function setCookie(name, value, days) {
let expires = "";
if(days) {
let date = new Date();
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
expires = "; expires=" + date.toUTCString();
}
document.cookie = name + "=" + value + expires + "; path=/";
}
function getCookie(name) {
let value = "; " + document.cookie;
let parts = value.split("; " + name + "=");

View File

@ -12,22 +12,8 @@ let pinInput4 = document.getElementById('pinInput4');
let pinError = document.getElementById('pinError');
let lastActivity = new Date().getTime();
let lastActivityTimeout = 1000 * 60 * 5; // 5 minutes
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
let numpadButtons = numpad.getElementsByTagName('button');
for(let i = 0; i < numpadButtons.length; i++) {

View File

@ -3,8 +3,7 @@
<input id="scannerField" type="text"/>
<section class="section container" id="mainSelect">
<h1 class="title">Produktverwaltung</h1>
<p class="heading buttons">
<button class="js-modal-trigger button" data-target="modal-js-example">
<p class="heading"><button class="js-modal-trigger button" data-target="modal-js-example">
Neues Produkt anlegen
</button><button class="js-modal-trigger button" data-target="modal-restock" id="btn_restock">
Lager nachfüllen

View File

@ -10,8 +10,7 @@
<div id="date"></div>
</div>
<script src="/static/apiWrapper.js"></script>
<script src="/static/pageDriver.js"></script>
<script src="/static/js/lockscreenBgHandler.js"></script>
<%~ include("partials/base_foot.eta") %>
<%~ include("partials/base_foot.eta") %>