This commit is contained in:
relaxed 2024-08-18 03:34:33 +05:00
commit 8851786e67
353 changed files with 36724 additions and 0 deletions

BIN
mainapp/static/first/img/p1.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

BIN
mainapp/static/first/img/p2.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 KiB

BIN
mainapp/static/first/img/p3.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 KiB

BIN
mainapp/static/first/img/p4.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 259 KiB

48
mainapp/static/first/script.js Executable file
View file

@ -0,0 +1,48 @@
const hamb = document.querySelector("#hamb");
const popup = document.querySelector("#popup");
const menu = document.querySelector("#menu").cloneNode(1);
const body = document.body;
hamb.addEventListener("click", hambHandler);
function hambHandler(e) {
e.preventDefault();
popup.classList.toggle("open");
hamb.classList.toggle("active");
body.classList.toggle("noscroll");
// renderPopup();
}
function renderPopup() {
popup.appendChild(menu);
}
// Код для закрытия меню при нажатии на ссылку
const links = Array.from(menu.children);
links.forEach((link) => {
link.addEventListener("click", closeOnClick);
});
function closeOnClick() {
popup.classList.remove("open");
hamb.classList.remove("active");
body.classList.remove("noscroll");
}
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
document.getElementById("myBtn").style.display = "block";
} else {
document.getElementById("myBtn").style.display = "none";
}
}
// When the user clicks on the button, scroll to the top of the document
function topFunction() {
document.body.scrollTop = 0; // For Safari
document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
}

1052
mainapp/static/first/style.css Executable file

File diff suppressed because it is too large Load diff