diff --git a/LICENSE b/LICENSE index 0160467..0aedfb5 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020-2025 Matt Walsh +Copyright (c) 2020-2026 Matt Walsh Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/server/scripts/index.mjs b/server/scripts/index.mjs index a64b1ac..1474fe4 100644 --- a/server/scripts/index.mjs +++ b/server/scripts/index.mjs @@ -72,7 +72,7 @@ const init = async () => { if (!navigator.geolocation) btnGetGps.style.display = 'none'; document.querySelector('#divTwc').addEventListener('mousemove', () => { - if (document.fullscreenElement) updateFullScreenNavigate(); + if (document.fullscreenElement || settings.kiosk?.value) updateFullScreenNavigate(); }); document.querySelector('#btnGetLatLng').addEventListener('click', () => autoComplete.directFormSubmit()); @@ -384,7 +384,7 @@ const updateFullScreenNavigate = () => { } navigateFadeIntervalId = setTimeout(() => { - if (document.fullscreenElement) { + if (document.fullscreenElement || settings.kiosk?.value) { divTwcBottom.classList.remove('visible'); divTwcBottom.classList.add('hidden'); document.querySelector('#divTwc').classList.add('no-cursor'); diff --git a/server/scripts/modules/settings.mjs b/server/scripts/modules/settings.mjs index 34a0300..1df405f 100644 --- a/server/scripts/modules/settings.mjs +++ b/server/scripts/modules/settings.mjs @@ -44,9 +44,11 @@ const kioskChange = (value) => { if (value) { body.classList.add('kiosk'); + document.querySelector('#divTwc')?.classList.add('no-cursor'); window.dispatchEvent(new Event('resize')); } else { body.classList.remove('kiosk'); + document.querySelector('#divTwc')?.classList.remove('no-cursor'); window.dispatchEvent(new Event('resize')); }