master
Max Lehmann 5 years ago
parent 1263bb5e1e
commit 49ee4cad1e

@ -21,7 +21,7 @@
</head> </head>
<body> <body>
<div id="popup" class="nav"> <div id="popup" class="nav show">
<p>This is a popup!</p> <p>This is a popup!</p>
<p> <p>
<button id="popupclose">close</button> <button id="popupclose">close</button>
@ -3189,22 +3189,19 @@
var selectall = document.querySelector("input.selectall"), var selectall = document.querySelector("input.selectall"),
popup_button = document.querySelector("input.popup"), popup_button = document.querySelector("input.popup"),
popup = document.querySelector("#popup"), popup = document.querySelector("#popup"),
popup_close_button = document.querySelector("#popupclose"); popupclose = document.querySelector("#popupclose");
selectall.addEventListener("click", function (e) { selectall.addEventListener("click", function (e) {
var checkboxes = document.querySelectorAll("input[type=checkbox][name=print]"); var checkboxes = document.querySelectorAll("input[type=checkbox][name=print]");
for (var i=0; i<checkboxes.length; i++) { for (var i=0; i<checkboxes.length; i++) {
checkboxes[i].checked = true; checkboxes[i].checked = true;
} }
}); });
popup_close_button.addEventListener("click", function (e) { popupclose.addEventListener("click", function (e) {
popup.classList.remove("show"); popup.classList.remove("show");
}); });
function showpopup() { popup_button.addEventListener("click", function (e) {
// alert("I AM YOUR POPUP!");
popup.classList.add("show"); popup.classList.add("show");
}; );
popup.addEventListener("click", showpopup);
showpopup();
filterSelection("all") filterSelection("all")

Loading…
Cancel
Save