Files
Figma_itproger/main.js
2026-03-10 23:18:05 +03:00

16 lines
454 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
function checkEmail() {
let email = document.querySelector('#emailField').value;
if (!email.includes('@')) alert('Нет символа @');
else if(!email.includes('.')) alert('Нет символа .');
else alert('Все отлично!')
};
function toggleMenu() {
let menu = document.getElementById("menu");
if (menu.style.display === "flex") {
menu.style.display = "none";
} else {
menu.style.display = "flex";
}
}