polished template
This commit is contained in:
24
js/app.js
24
js/app.js
@@ -33,14 +33,22 @@ __webpack_require__.r(__webpack_exports__);
|
||||
\*****************************/
|
||||
/***/ (() => {
|
||||
|
||||
// Navigation toggle
|
||||
window.addEventListener('load', function () {
|
||||
var main_navigation = document.querySelector('#primary-menu');
|
||||
document.querySelector('#primary-menu-toggle').addEventListener('click', function (e) {
|
||||
e.preventDefault();
|
||||
main_navigation.classList.toggle('hidden');
|
||||
});
|
||||
});
|
||||
/*
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
const header = document.getElementById('site-header');
|
||||
const main = document.getElementById('main-content');
|
||||
|
||||
function updateMainPadding() {
|
||||
const headerHeight = header.offsetHeight;
|
||||
main.style.paddingTop = headerHeight + 'px';
|
||||
|
||||
// Показываем контент с плавной анимацией
|
||||
main.classList.remove('opacity-0');
|
||||
}
|
||||
|
||||
updateMainPadding();
|
||||
window.addEventListener('resize', updateMainPadding);
|
||||
});*/
|
||||
|
||||
/***/ })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user