File size: 7,486 Bytes
b045a5f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 |
<!DOCTYPE html>
<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> |