Skip to content

Commit 0b7452d

Browse files
committed
Wrap javascript code in anonymous function to workaround minify-html-onepass bugs
1 parent c50af81 commit 0b7452d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

index_bottom.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
</form>
2323
</dialog>
2424
<script>
25+
function(){
2526
const diaDialog = document.getElementById("diaDialog");
2627
const diaMapname = document.getElementById("diaMapname");
2728
const diaDownloadBz2 = document.getElementById("diaDownloadBz2");
@@ -92,8 +93,10 @@
9293
rows[i].children[0].children[0].addEventListener("click", download_mapname);
9394
}
9495
*/
96+
}();
9597
</script>
9698
<script>
99+
function(){
97100
// https://github.com/tofsjonas/sortable/blob/main/sortable.js
98101
// https://github.com/tofsjonas/sortable/blob/main/LICENSE
99102
document.addEventListener('click', function (e) {
@@ -183,6 +186,7 @@
183186
//console.log(error)
184187
}
185188
})
189+
}();
186190
</script>
187191

188192
<br>this website's privacy/cookie policies can be viewed at the bottom of the <a href="https://fastdl.me/">homepage</a>

0 commit comments

Comments
 (0)