mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-14 15:49:31 -07:00
add strings to permalink structure close #129
This commit is contained in:
@@ -34,10 +34,17 @@ const createLink = async (e) => {
|
||||
// get all select boxes
|
||||
elemForEach('select', (elem) => {
|
||||
if (elem?.id) {
|
||||
queryStringElements[elem.id] = elem?.value ?? 0;
|
||||
queryStringElements[elem.id] = encodeURIComponent(elem?.value ?? '');
|
||||
}
|
||||
});
|
||||
|
||||
// get all text boxes
|
||||
elemForEach('input[type=text]', ((elem) => {
|
||||
if (elem?.id) {
|
||||
queryStringElements[elem.id] = elem?.value ?? 0;
|
||||
}
|
||||
}));
|
||||
|
||||
// add the location string
|
||||
queryStringElements.latLonQuery = localStorage.getItem('latLonQuery');
|
||||
queryStringElements.latLon = localStorage.getItem('latLon');
|
||||
|
||||
Reference in New Issue
Block a user