mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-17 00:59:29 -07:00
Merge branch 'main' into screen-enhance
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -103,9 +103,8 @@ class CurrentWeather extends WeatherDisplay {
|
||||
});
|
||||
|
||||
// copy enhanced data and restore the timestamp if it was overwritten by older data from mapclick
|
||||
const { timestamp } = candidateObservation.features[0].properties;
|
||||
|
||||
candidateObservation.features[0].properties = enhancedResult.data;
|
||||
candidateObservation.features[0].properties.timestamp = timestamp;
|
||||
|
||||
const { missingFields } = enhancedResult;
|
||||
const missingRequired = missingFields.filter((fieldName) => {
|
||||
|
||||
@@ -17,7 +17,7 @@ const changeEnable = (newValue) => {
|
||||
// hide the string entry
|
||||
newDisplay = 'none';
|
||||
}
|
||||
const stringEntry = document.getElementById('settings-customText-label');
|
||||
const stringEntry = document.getElementById('settings-customText-string');
|
||||
if (stringEntry) {
|
||||
stringEntry.style.display = newDisplay;
|
||||
}
|
||||
|
||||
@@ -112,9 +112,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'));
|
||||
}
|
||||
|
||||
|
||||
@@ -650,7 +650,7 @@ export const enhanceObservationWithMapClick = async (observationData, options =
|
||||
}
|
||||
|
||||
return {
|
||||
data: mapClickProps,
|
||||
data: { ...mapClickProps, timestamp: observationData.timestamp },
|
||||
wasImproved: true,
|
||||
improvements,
|
||||
missingFields: [...mapClickMissingRequired, ...mapClickMissingOptional],
|
||||
|
||||
Reference in New Issue
Block a user