Added week to settings

This commit is contained in:
rxf
2023-04-21 17:31:39 +02:00
parent 7763c1e43d
commit 58e25bf468
8 changed files with 41 additions and 19 deletions
+6
View File
@@ -21,6 +21,7 @@ import { DateTime } from './luxon.min.js'
zoom: 10,
span: 1,
peak: 70,
weeks: 4,
datetime: '',
seldate: 'today',
refresh: 0,
@@ -46,6 +47,7 @@ import { DateTime } from './luxon.min.js'
params.seldate = selDate
const span = document.getElementById('nbrofdays').value
const peak = document.getElementById('peaklim').value
const weeks = document.getElementById('olderthan').value
console.log(starttime, span, peak)
if(span < 10) {
params.span = span
@@ -53,6 +55,9 @@ import { DateTime } from './luxon.min.js'
if(peak < 130 ) {
params.peak = peak
}
if (weeks < 52) {
params.weeks = weeks
}
let newlng = document.querySelector('#sellan input:checked').id
let oldlng = localStorage.getItem('curlang')
localStorage.setItem('curlang', newlng)
@@ -75,6 +80,7 @@ import { DateTime } from './luxon.min.js'
document.getElementById('startday').value = params.seldate
document.getElementById('nbrofdays').value = params.span
document.getElementById('peaklim').value = params.peak
document.getElementById('olderthan').value = params.weeks
myModal.show()
})
+1
View File
@@ -64,6 +64,7 @@ export async function showMap(params, sysparams) {
await loadAll(params)
}
params.center = [clickedcoords.lat, clickedcoords.lng]
map.setView([clickedcoords.lat, clickedcoords.lng]);
})
})
}
+5 -5
View File
@@ -177,7 +177,7 @@ footer #author #versn {
}
.thelabels {
width: 40%;
width: 50%;
float: left;
}
@@ -197,11 +197,11 @@ footer #author #versn {
}
#startday {
width: 60%;
width: 40%;
}
#nbrofdays, #peaklim {
width: 20%;
#nbrofdays, #peaklim, #olderthan {
width: 10%;
}
.addit {
@@ -209,7 +209,7 @@ footer #author #versn {
border: 1px solid blue;
}
#klein {
.klein {
font-size: 80%;
}
+5 -5
View File
@@ -170,7 +170,7 @@ footer
text-align: left
.thelabels
width: 40%
width: 50%
float: left
// border: 1px solid green
@@ -189,16 +189,16 @@ footer
margin-bottom: 15px
#startday
width: 60%
width: 40%
#nbrofdays, #peaklim
width: 20%
#nbrofdays, #peaklim, #olderthan
width: 10%
.addit
width: 20%
border: 1px solid blue
#klein
.klein
font-size: 80%
.infoTafel th,td