2021-12-19 09:50:55 +07:00
|
|
|
/*
|
|
|
|
* 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
|
2021-12-19 09:50:55 +07:00
|
|
|
*/
|
|
|
|
|
|
|
|
// Imports
|
2024-01-27 13:53:19 +07:00
|
|
|
import themeSwitcher from "./src/theme-switcher.js"
|
|
|
|
import toggleNavigation from "./src/toggle-navigation"
|
2021-12-19 09:50:55 +07:00
|
|
|
|
|
|
|
// Theme switcher
|
|
|
|
themeSwitcher.addButton({
|
2024-01-27 13:53:19 +07:00
|
|
|
tag: "BUTTON",
|
|
|
|
class: "contrast switcher theme-switcher",
|
|
|
|
target: "body",
|
|
|
|
})
|
|
|
|
themeSwitcher.init()
|
2021-12-19 09:50:55 +07:00
|
|
|
|
|
|
|
// Toggle navigation
|
2024-01-27 13:53:19 +07:00
|
|
|
toggleNavigation.init()
|