Создай интерактивный "Магический шар предсказаний" для прогнозов исхода киберспортивных матчей команды AVULUS Основные элементы: Визуально привлекательный шар с градиентной заливкой и декоративными элементами Анимация тряски при взаимодействии Система случайных предсказаний из списка "Пососут", "GGWP", "Иди депай", "Звони маме проси денег на деп", "Smiling Knight сольёт катку", "Ни чего нового на керри умрёт без бай бэка", "Worick с 3к нетворса на 10 минуте думай сам", "Дааааа с*ка даааа б*я", "error 404 епт", "Победа через анал" Динамическое изменение цвета шара в зависимости от тона предсказания После того как выпал ответ он остается отображаемым пока шар не потрясут снова При открытии приложения, видно только название "prediction of the AVULUS game" под названием шар с надписью на нем "потряси меня" больше ни чего визуально быть не должно до момента взаимодействия с шаром - Initial Deployment
b045a5f
verified
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>AVULUS Prediction Ball</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <style> | |
| @keyframes shake { | |
| 0%, 100% { transform: translateX(0); } | |
| 10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); } | |
| 20%, 40%, 60%, 80% { transform: translateX(10px); } | |
| } | |
| .shake { | |
| animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both; | |
| } | |
| .magic-ball { | |
| background: radial-gradient(circle at 30% 30%, #4a00e0, #8e2de2); | |
| box-shadow: inset -25px -25px 40px rgba(0,0,0,.5), | |
| 0 0 20px rgba(111, 0, 255, 0.8), | |
| 0 0 40px rgba(111, 0, 255, 0.6); | |
| transition: all 0.3s ease; | |
| } | |
| .magic-ball::before { | |
| content: ''; | |
| position: absolute; | |
| top: 15%; | |
| left: 15%; | |
| width: 30%; | |
| height: 30%; | |
| border-radius: 50%; | |
| background: radial-gradient(circle at 40% 40%, rgba(255,255,255,0.8), rgba(255,255,255,0.1)); | |
| filter: blur(2px); | |
| } | |
| .prediction-text { | |
| text-shadow: 0 0 5px rgba(255,255,255,0.5); | |
| transition: all 0.3s ease; | |
| } | |
| .good { | |
| background: radial-gradient(circle at 30% 30%, #00b09b, #96c93d); | |
| box-shadow: inset -25px -25px 40px rgba(0,0,0,.3), | |
| 0 0 20px rgba(0, 255, 111, 0.5), | |
| 0 0 40px rgba(0, 255, 111, 0.3); | |
| } | |
| .bad { | |
| background: radial-gradient(circle at 30% 30%, #e52d27, #b31217); | |
| box-shadow: inset -25px -25px 40px rgba(0,0,0,.5), | |
| 0 0 20px rgba(255, 0, 0, 0.5), | |
| 0 0 40px rgba(255, 0, 0, 0.3); | |
| } | |
| .neutral { | |
| background: radial-gradient(circle at 30% 30%, #4a00e0, #8e2de2); | |
| box-shadow: inset -25px -25px 40px rgba(0,0,0,.5), | |
| 0 0 20px rgba(111, 0, 255, 0.8), | |
| 0 0 40px rgba(111, 0, 255, 0.6); | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-900 min-h-screen flex flex-col items-center justify-center p-4"> | |
| <h1 class="text-3xl md:text-4xl font-bold text-purple-400 mb-8 text-center">prediction of the AVULUS game</h1> | |
| <div class="relative w-64 h-64 md:w-80 md:h-80 flex items-center justify-center cursor-pointer" id="ball-container"> | |
| <div class="magic-ball w-full h-full rounded-full flex items-center justify-center text-center p-6 relative overflow-hidden neutral" id="magic-ball"> | |
| <p class="prediction-text text-white font-bold text-lg md:text-xl" id="prediction-text">потряси меня</p> | |
| </div> | |
| </div> | |
| <script> | |
| const predictions = [ | |
| { text: "Пососут", mood: "bad" }, | |
| { text: "GGWP", mood: "good" }, | |
| { text: "Иди депай", mood: "bad" }, | |
| { text: "Звони маме проси денег на деп", mood: "bad" }, | |
| { text: "Smiling Knight сольёт катку", mood: "bad" }, | |
| { text: "Ни чего нового на керри умрёт без бай бэка", mood: "bad" }, | |
| { text: "Worick с 3к нетворса на 10 минуте думай сам", mood: "bad" }, | |
| { text: "Дааааа с*ка даааа б*я", mood: "neutral" }, | |
| { text: "error 404 епт", mood: "neutral" }, | |
| { text: "Победа через анал", mood: "good" } | |
| ]; | |
| const ballContainer = document.getElementById('ball-container'); | |
| const magicBall = document.getElementById('magic-ball'); | |
| const predictionText = document.getElementById('prediction-text'); | |
| let isShaking = false; | |
| let hasPrediction = false; | |
| function getRandomPrediction() { | |
| const randomIndex = Math.floor(Math.random() * predictions.length); | |
| return predictions[randomIndex]; | |
| } | |
| function shakeBall() { | |
| if (isShaking) return; | |
| isShaking = true; | |
| magicBall.classList.add('shake'); | |
| setTimeout(() => { | |
| magicBall.classList.remove('shake'); | |
| isShaking = false; | |
| if (!hasPrediction) { | |
| const prediction = getRandomPrediction(); | |
| predictionText.textContent = prediction.text; | |
| magicBall.classList.remove('neutral', 'good', 'bad'); | |
| magicBall.classList.add(prediction.mood); | |
| hasPrediction = true; | |
| } else { | |
| predictionText.textContent = "потряси меня"; | |
| magicBall.classList.remove('neutral', 'good', 'bad'); | |
| magicBall.classList.add('neutral'); | |
| hasPrediction = false; | |
| } | |
| }, 500); | |
| } | |
| ballContainer.addEventListener('click', shakeBall); | |
| // Mobile shake detection | |
| let lastShakeTime = 0; | |
| const shakeThreshold = 15; | |
| let lastX = null, lastY = null, lastZ = null; | |
| if (window.DeviceMotionEvent) { | |
| window.addEventListener('devicemotion', (e) => { | |
| const acceleration = e.accelerationIncludingGravity; | |
| const currentTime = new Date().getTime(); | |
| if ((currentTime - lastShakeTime) > 1000) { | |
| const x = acceleration.x; | |
| const y = acceleration.y; | |
| const z = acceleration.z; | |
| if (lastX !== null && lastY !== null && lastZ !== null) { | |
| const deltaX = Math.abs(x - lastX); | |
| const deltaY = Math.abs(y - lastY); | |
| const deltaZ = Math.abs(z - lastZ); | |
| if ((deltaX > shakeThreshold && deltaY > shakeThreshold) || | |
| (deltaX > shakeThreshold && deltaZ > shakeThreshold) || | |
| (deltaY > shakeThreshold && deltaZ > shakeThreshold)) { | |
| lastShakeTime = currentTime; | |
| shakeBall(); | |
| } | |
| } | |
| lastX = x; | |
| lastY = y; | |
| lastZ = z; | |
| } | |
| }); | |
| } | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Doosah/game" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |