pico/docs/js/pico.docs.js

37 lines
843 B
JavaScript
Raw Normal View History

2021-07-09 17:42:10 +07:00
/*
2019-12-11 08:46:32 +07:00
* Add some magic to Pico docs
*
* Pico.css - https://picocss.com
2021-07-02 16:54:41 +07:00
* Copyright 2019-2021 - Licensed under MIT
2019-12-11 08:46:32 +07:00
*/
2021-07-09 17:42:10 +07:00
// Imports
2021-07-24 12:08:45 +07:00
import * as mostVisible from './src/most-visible.min.js';
2021-07-09 17:46:10 +07:00
import { aside } from './src/aside.js';
import { themeSwitcher } from './src/theme-switcher.js';
import { materialDesignColors } from './src/material-design-colors.js';
import { colorPicker } from './src/color-picker.js';
import { grid } from './src/grid.js';
import { scrollspy } from './src/scrollspy.js';
2021-07-09 17:42:10 +07:00
// Aside initial state
aside.init();
// Theme switcher
themeSwitcher.addButton({
tag: 'BUTTON',
class: 'contrast switcher theme-switcher',
target: 'body',
});
themeSwitcher.init();
// Color Picker
colorPicker.colors = materialDesignColors;
colorPicker.init();
// Grid Interaction
grid.init();
// Scrollspy
2021-07-24 12:08:45 +07:00
scrollspy.init(mostVisible);