34 lines
770 B
JavaScript
34 lines
770 B
JavaScript
// Styles
|
|
import './styles/site.scss'
|
|
|
|
import ChatApp from './ChatApp.svelte'
|
|
|
|
// import * as bootstrap from 'bootstrap/dist/js/bootstrap';
|
|
// window.bootstrap = bootstrap;
|
|
|
|
import {Modal, Alert} from 'bootstrap';
|
|
|
|
window.ChatApp = ChatApp;
|
|
|
|
window.bootstrap = {
|
|
Modal: Modal,
|
|
Alert: Alert,
|
|
};
|
|
|
|
window.addEventListener('DOMContentLoaded', function() {
|
|
|
|
/*
|
|
const hamburgerBtn = document.querySelector('.hamburger')
|
|
hamburgerBtn.addEventListener('click', function () {
|
|
this.classList.toggle('is-open')
|
|
this.classList.toggle('is-closed')
|
|
})
|
|
*/
|
|
|
|
const activeLink = document.querySelector('#mainmenu a[href="' + location.pathname + '"]');
|
|
|
|
if (activeLink) {
|
|
activeLink.parentNode.classList.add('active');
|
|
}
|
|
});
|