Collect Static

This commit is contained in:
itqop 2024-03-18 00:09:41 +03:00
parent bfda267d45
commit 5e0289db91
6 changed files with 57 additions and 4 deletions

4
.gitignore vendored
View File

@ -135,4 +135,6 @@ GitHub.sublime-settings
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history
.history
collect.sh

View File

@ -18,6 +18,6 @@ html, body {
transition: max-height 0.3s ease;
}
#target-main.show {
#target-main.shows {
max-height: 500px; /* Установите желаемую максимальную высоту */
}

View File

@ -0,0 +1,23 @@
html, body {
height: 100%;
margin: 0;
padding: 0;
}
.wrapper {
min-height: 100%;
display: flex;
flex-direction: column;
}
.content {
flex: 1;
}
#target-main {
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease;
}
#target-main.shows {
max-height: 500px; /* Установите желаемую максимальную высоту */
}

View File

@ -0,0 +1,28 @@
document.addEventListener("DOMContentLoaded", function() {
// Проверяем, приняли ли пользователи куки
var cookiesAccepted = getCookie("cookies_accepted");
// Если куки не приняты, показываем div с сообщением о куки
if (!cookiesAccepted) {
var cookieAlert = document.getElementById("icms-cookiealert");
if (cookieAlert) {
cookieAlert.style.display = "block";
}
}
});
// Функция для получения значения куки по имени
function getCookie(name) {
var cookieValue = document.cookie.match('(^|;)\\s*' + name + '\\s*=\\s*([^;]+)');
return cookieValue ? cookieValue.pop() : '';
}
document.addEventListener("DOMContentLoaded", function() {
var navbarToggler = document.querySelector('.navbar-toggler');
var targetMain = document.querySelector('#target-main');
navbarToggler.addEventListener('click', function() {
targetMain.classList.toggle('shows');
});
});

View File

@ -23,6 +23,6 @@ document.addEventListener("DOMContentLoaded", function() {
var targetMain = document.querySelector('#target-main');
navbarToggler.addEventListener('click', function() {
targetMain.classList.toggle('show');
targetMain.classList.toggle('shows');
});
});

File diff suppressed because one or more lines are too long