mirror of
https://github.com/InsanusMokrassar/docs.git
synced 2025-10-25 01:00:22 +00:00
deploy: 11a83139db
This commit is contained in:
10
resources/js/mermaid_dark_light_switcher.js
Normal file
10
resources/js/mermaid_dark_light_switcher.js
Normal file
@@ -0,0 +1,10 @@
|
||||
var paletteSwitcher1 = document.getElementById("__palette_1");
|
||||
var paletteSwitcher2 = document.getElementById("__palette_2");
|
||||
|
||||
paletteSwitcher1.addEventListener("change", function () {
|
||||
location.reload();
|
||||
});
|
||||
|
||||
paletteSwitcher2.addEventListener("change", function () {
|
||||
location.reload();
|
||||
});
|
||||
Reference in New Issue
Block a user