diff --git a/home/static/js/scripts.js b/home/static/js/scripts.js index 2cfe139..aabbbda 100644 --- a/home/static/js/scripts.js +++ b/home/static/js/scripts.js @@ -32,4 +32,13 @@ window.onload = function () { document.getElementById("accept-cookies-btn").addEventListener("click", function () { setCookie("cookies_accepted", true, 365); // Устанавливаем куки на год document.getElementById("icms-cookiealert").style.display = "none"; // Скрываем cookie alert +}); + +document.addEventListener("DOMContentLoaded", function() { + var navbarToggler = document.querySelector('.navbar-toggler'); + var targetMain = document.querySelector('#target-main'); + + navbarToggler.addEventListener('click', function() { + targetMain.classList.toggle('show'); + }); }); \ No newline at end of file