Rework website with bulma instead of bootstrap #6

Manually merged
tlater merged 43 commits from tlater/bulma2 into master 2022-08-14 00:26:49 +01:00
Showing only changes of commit 63f24aaedd - Show all commits

View file

@ -1,22 +1,16 @@
function registerFlashCloseButtons() {
const flashButtons = document.querySelectorAll(".notification .delete");
flashButtons.forEach((button) => {
const flash = button.parentNode;
if (flash === null) {
console.error(
"Unreachable because our `querySelector` includes a parent; something went very wrong"
);
return;
for (const flashButton of flashButtons) {
if (flashButton.parentNode === null) {
throw new Error("invalid flash button");
}
const flash = flashButton.parentNode;
flash.addEventListener("click", () => {
if (flash.parentNode === null) {
console.error(
"Notification not placed in DOM; something went very wrong"
);
return;
throw new Error("invalid flash message");
}
flash.parentNode.removeChild(flash);
@ -38,7 +32,7 @@ function registerFlashCloseButtons() {
const block = flash.parentNode;
flash.parentNode.parentNode.removeChild(block);
}
});
}
}
function registerNavCollapseButtons() {