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

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

Loading…
Cancel
Save