Fix show/hide record sheet toggle
This commit is contained in:
parent
787711eaa2
commit
6b4312aa1f
16
src/index.js
16
src/index.js
@ -15,15 +15,15 @@ const mapPlaceholder = document.querySelector('.map-placeholder'),
|
|||||||
fileInputEl = document.querySelector('input[type="file"]'),
|
fileInputEl = document.querySelector('input[type="file"]'),
|
||||||
|
|
||||||
toggleContentVis = (function () {
|
toggleContentVis = (function () {
|
||||||
// document.querySelectorAll('#content div').forEach(div => {
|
document.querySelectorAll('#content > div').forEach(div => {
|
||||||
// if (this.checked) {
|
if (this.checked) {
|
||||||
// div.style.display = div.id == 'record-sheet' ? 'flex' : 'block';
|
div.style.display = div.id == 'record-sheet' ? 'flex' : 'block';
|
||||||
// } else {
|
} else {
|
||||||
// div.style.display = 'none';
|
div.style.display = 'none';
|
||||||
// }
|
}
|
||||||
// });
|
});
|
||||||
|
|
||||||
// localStorage.setItem('content-visibility', this.checked);
|
localStorage.setItem('content-visibility', this.checked);
|
||||||
}).bind(contentVisToggleEl);
|
}).bind(contentVisToggleEl);
|
||||||
|
|
||||||
let mapResourceEl = document.querySelector('object');
|
let mapResourceEl = document.querySelector('object');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user