wp-rdnyc/assets/js/main.js

26 lines
864 B
JavaScript
Raw Normal View History

// Import SCSS
import '../css/app.scss'
2021-07-26 13:07:57 -04:00
// Import svg files for webpack handling
import '../raw/rdnyc-logo.svg'; // rdnyc logo
// other:
import '../../node_modules/bootstrap-icons/icons/chevron-down.svg';
2021-07-28 22:51:24 -04:00
import '../../node_modules/bootstrap-icons/icons/chevron-left.svg';
import '../../node_modules/bootstrap-icons/icons/chevron-right.svg';
import '../../node_modules/bootstrap-icons/icons/search.svg';
// Import Bootstrap JS
import 'bootstrap/js/dist/collapse';
2021-07-26 13:07:57 -04:00
// import 'bootstrap/js/dist/alert';
import 'bootstrap/js/dist/button';
import 'bootstrap/js/dist/dropdown';
// import navbar burger code
import "./_hamburger-helper";
// highlight any code blocks tagged with class 'to-highlight'
document.addEventListener('DOMContentLoaded', (event) => {
document.querySelectorAll('code.to-highlight').forEach((el) => {
hljs.highlightElement(el);
});
});