/
Fancy
/
Project_WareHouse
Обзор
Документация
Войти
/
Fancy
/
Project_WareHouse
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
index.js
35 строк
1 KB
Oleg
Add code 5
17 окт 2025, 14:32
17 окт 2025, 14:32
7be0ae4
Код
Авторство
О чём код?
//Действие 1 чб const menu = document.querySelector('.menu'); const boxmenu = document.querySelector('.boxmenu'); const imgcrest = document.getElementById('img-crest'); const closeboxmenu = document.querySelector('.closeboxmenu'); document.getElementById('menu').addEventListener('change', function() { console.log('Чекбокс изменен:', this.checked); if (this.checked) { menu.style.transform = "translate(200px, 0)"; boxmenu.style.transform = "translate(0,0)"; closeboxmenu.style.rotate = '0deg' } else { menu.style.transform = "translate(0, 0)"; boxmenu.style.transform = "translate(500px,0)"; closeboxmenu.style.transition = "rotate 1s ease"; closeboxmenu.style.rotate = '180deg' }; }); const logboxpass = document.getElementById('logboxpass'); const logbox2 = document.getElementById('logbox2') const logboxlogin = document.getElementById('logboxlogin'); const logbox1 = document.getElementById('logbox1'); const btnlogin = document.getElementById('btnlogin'); // Делаем функцию доступной глобально window.showCustomAlert = function(message, type = 'success') { // Ваш кастомный alert console.log('Кастомный alert:', message); alert(`✅ ${message}`); // Или ваша кастомная модалка // showModal(message, type); };