File size: 5,873 Bytes
986dcf3 e9b3add 986dcf3 0a507cd fd7ca25 0a507cd 986dcf3 e9b3add fd7ca25 0a507cd e9b3add eff0a93 986dcf3 eff0a93 0a507cd eff0a93 0a507cd 986dcf3 0a507cd e9b3add fd7ca25 e9b3add fd7ca25 e9b3add 0a507cd 986dcf3 e9b3add fd7ca25 e9b3add 0a507cd fd7ca25 0a507cd e9b3add 0a507cd fd7ca25 e9b3add fd7ca25 0a507cd 986dcf3 e9b3add 0a507cd 986dcf3 0a507cd 986dcf3 e9b3add 986dcf3 eff0a93 2a9f456 eff0a93 e9b3add 0a507cd e9b3add 0a507cd 2a9f456 0a507cd eff0a93 fd7ca25 eff0a93 986dcf3 fd7ca25 986dcf3 e9b3add 0a507cd 986dcf3 0a507cd 986dcf3 e9b3add fd7ca25 986dcf3 fd7ca25 e9b3add 986dcf3 e9b3add eff0a93 986dcf3 fd7ca25 e9b3add fd7ca25 0a507cd fd7ca25 0a507cd fd7ca25 986dcf3 0a507cd | 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 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Spin & Load Wheel</title>
<style>
:root {
--dark-blue: #002D62;
--light-blue: #B0E0E6;
--red-pointer: #DC143C;
--border-color: #A9A9A9;
}
body {
margin: 0;
font-family: Arial, sans-serif;
background: #E0FFFF;
color: var(--dark-blue);
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
.container {
width: 90%;
max-width: 400px;
padding: 20px;
}
.info {
margin-bottom: 20px;
font-size: 16px;
line-height: 22px;
opacity: 0.9;
color: var(--dark-blue);
}
/* --- Wheel Styling to Match Image --- */
.wheel {
width: 300px;
height: 300px;
border-radius: 50%;
border: 5px solid var(--border-color);
position: relative;
overflow: hidden;
/* Fast spin transition: 1.5 seconds */
transition: transform 1.5s cubic-bezier(.12,.66,.11,1.23);
margin: auto;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.slice {
position: absolute;
width: 50%;
height: 50%;
top: 50%;
left: 50%;
transform-origin: 0% 0%;
color: white;
display: flex;
justify-content: center;
align-items: center;
font-size: 20px;
font-weight: bold;
}
.slice:nth-child(odd) {
background: var(--dark-blue);
color: white;
}
.slice:nth-child(even) {
background: var(--light-blue);
color: var(--dark-blue);
}
/* Rotate slices for 10 segments (360/10 = 36 degrees per slice) */
.slice:nth-child(1) { transform: rotate(0deg) skewY(-54deg) rotate(18deg); }
.slice:nth-child(2) { transform: rotate(36deg) skewY(-54deg) rotate(18deg); }
.slice:nth-child(3) { transform: rotate(72deg) skewY(-54deg) rotate(18deg); }
.slice:nth-child(4) { transform: rotate(108deg) skewY(-54deg) rotate(18deg); }
.slice:nth-child(5) { transform: rotate(144deg) skewY(-54deg) rotate(18deg); }
.slice:nth-child(6) { transform: rotate(180deg) skewY(-54deg) rotate(18deg); }
.slice:nth-child(7) { transform: rotate(216deg) skewY(-54deg) rotate(18deg); }
.slice:nth-child(8) { transform: rotate(252deg) skewY(-54deg) rotate(18deg); }
.slice:nth-child(9) { transform: rotate(288deg) skewY(-54deg) rotate(18deg); }
.slice:nth-child(10) { transform: rotate(324deg) skewY(-54deg) rotate(18deg); }
/* Centered "PLAY" button */
.center-circle {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 80px;
height: 80px;
background-color: white;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
z-index: 10;
border: 5px solid var(--dark-blue);
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
cursor: pointer;
font-size: 18px;
font-weight: bold;
color: var(--dark-blue);
}
.pointer {
width: 0; height: 0;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
border-bottom: 20px solid var(--red-pointer);
margin: auto;
margin-bottom: 5px;
z-index: 20;
}
#message {
margin-top: 20px;
font-size: 18px;
display: none;
color: var(--dark-blue);
}
.try-your-luck {
margin-top: 20px;
font-size: 14px;
opacity: 0.7;
position: relative;
padding-top: 10px;
}
.try-your-luck:before {
content: '';
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
width: 60px;
height: 1px;
background: var(--dark-blue);
}
</style>
</head>
<body>
<div class="container">
<p class="info">
⚡ For load balancing we add this to handle high traffic.<br>
Click **PLAY** to unlock the main site!
</p>
<div class="pointer"></div>
<div class="wheel" id="wheel">
<div class="slice">$$</div>
<div class="slice">%</div>
<div class="slice">$$</div>
<div class="slice">%</div>
<div class="slice">$$</div>
<div class="slice">%</div>
<div class="slice">$$</div>
<div class="slice">%</div>
<div class="slice">$$</div>
<div class="slice">%</div>
<div class="center-circle" onclick="spinWheel()" id="centerBtn">PLAY</div>
</div>
<p class="try-your-luck">
Thanks for Waiting
</p>
<p id="message"></p>
</div>
<script>
const sites = [
"https://www.love.com",
"https://www.love1.com",
"https://www.love2.com",
"https://www.love3.com",
"https://www.love4.com",
"https://www.love.com",
"https://www.love1.com",
"https://www.love2.com",
"https://www.love3.com",
"https://www.love4.com"
];
let spinning = false;
function spinWheel() {
if (spinning) return;
spinning = true;
const wheel = document.getElementById("wheel");
const message = document.getElementById("message");
const centerBtn = document.getElementById("centerBtn");
// Disable the center button
centerBtn.style.pointerEvents = 'none';
centerBtn.textContent = '...';
const index = Math.floor(Math.random() * sites.length);
const totalSlices = sites.length;
const degreePerSlice = 360 / totalSlices;
/* Fast spin: 5 full rotations + landing angle */
const degrees = 360 * 5 + (360 - index * degreePerSlice) - (degreePerSlice / 2);
wheel.style.transform = `rotate(${degrees}deg)`;
message.style.display = "block";
message.textContent = "🎡 Fast spinning…";
/* Redirect logic after the animation finishes */
setTimeout(() => {
const selected = sites[index];
message.textContent = `Redirecting to ${selected}...`;
// ✅ REDIRECT ENABLED
window.location.href = selected;
// Note: The reset logic is removed as the page will navigate away.
}, 1600); // Timeout matches the 1.5s CSS transition plus a small buffer
}
</script>
</body>
</html>
|