picocss/docs/js/commons.js

22 lines
433 B
JavaScript
Raw Normal View History

/*
* Add some magic to Pico docs
*
* Pico.css - https://picocss.com
2023-01-28 13:14:38 +07:00
* Copyright 2019-2023 - Licensed under MIT
*/
// Imports
2024-01-27 13:53:19 +07:00
import themeSwitcher from "./src/theme-switcher.js"
import toggleNavigation from "./src/toggle-navigation"
// Theme switcher
themeSwitcher.addButton({
2024-01-27 13:53:19 +07:00
tag: "BUTTON",
class: "contrast switcher theme-switcher",
target: "body",
})
themeSwitcher.init()
// Toggle navigation
2024-01-27 13:53:19 +07:00
toggleNavigation.init()