mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2026-09-15 09:57:04 +00:00
* Customisable notifications (#121) * Test improvements * Setup BASE_URL environment in test Co-authored-by: dtomlinson91 <53234158+dtomlinson91@users.noreply.github.com>
17 lines
456 B
JavaScript
17 lines
456 B
JavaScript
window.addEventListener("load", (event) => {
|
|
// just an example for now
|
|
function toggleVisible(elem) {
|
|
// theres better ways todo this
|
|
var x = document.getElementById(elem);
|
|
if (x.style.display === "block") {
|
|
x.style.display = "none";
|
|
} else {
|
|
x.style.display = "block";
|
|
}
|
|
}
|
|
|
|
document.getElementById("toggle-customise-notifications").onclick = function () {
|
|
toggleVisible("notification-customisation");
|
|
};
|
|
});
|