Spaces:
Running
Running
| function orderNow() { | |
| alert("Ваш заказ принят! Добро пожаловать в будущее чистой кожи с Revolut!"); | |
| } | |
| function hoverEffect(element) { | |
| element.style.transform = "scale(1.05)"; | |
| element.style.transition = "transform 0.3s ease"; | |
| element.addEventListener('mouseout', () => { | |
| element.style.transform = "scale(1)"; | |
| }); | |
| } | |
| // Имитация голосового управления (тренд 2070) | |
| window.addEventListener('load', () => { | |
| if ('speechSynthesis' in window) { | |
| const msg = new SpeechSynthesisUtterance("Добро пожаловать в Revolut. Скажите 'Заказать', чтобы купить крем."); | |
| window.speechSynthesis.speak(msg); | |
| } | |
| }); | |
| if ('SpeechRecognition' in window || 'webkitSpeechRecognition' in window) { | |
| const recognition = new (window.SpeechRecognition || window.webkitSpeechRecognition)(); | |
| recognition.lang = 'ru-RU'; | |
| recognition.onresult = (event) => { | |
| const command = event.results[0][0].transcript.toLowerCase(); | |
| if (command.includes('заказать')) { | |
| orderNow(); | |
| } | |
| }; | |
| recognition.start(); | |
| } |