hugo-bearblog/assets/js/darkmode_click.js

2 lines
176 B
JavaScript
Raw Normal View History

/* initialize onclick here because the main point is to avoid inline scripts and stylesheets */
document.getElementById("dark-mode-button").addEventListener("click", darkmode);