mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-23 14:32:25 +01:00
11 lines
380 B
JavaScript
11 lines
380 B
JavaScript
// @author rubenwardy
|
|
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
|
|
|
|
"use strict";
|
|
|
|
const disableAll = document.getElementById("disable-all");
|
|
disableAll.classList.remove("d-none");
|
|
disableAll.addEventListener("click", () => {
|
|
document.querySelectorAll("input[type='checkbox']").forEach(x => { x.checked = false; });
|
|
});
|