summaryrefslogtreecommitdiff
path: root/assets/js/dark_mode.js
blob: c3abe36f83a0e022efb39117d73714f4fd8dc7ae (plain)
1
2
3
4
5
6
7
$(document).ready(function() {
    const mode_toggle = document.getElementById("light-toggle");

    mode_toggle.addEventListener("click", function() {
        toggleTheme(localStorage.getItem("theme"));
    });
});