Spaces:
Running
Running
Silent Control commited on
undefined - Initial Deployment
Browse files- README.md +7 -5
- index.html +167 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: test
|
| 3 |
+
emoji: π³
|
| 4 |
+
colorFrom: purple
|
| 5 |
+
colorTo: green
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,167 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Lucky Discount Generator</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>
|
| 9 |
+
<style>
|
| 10 |
+
.confetti {
|
| 11 |
+
position: absolute;
|
| 12 |
+
width: 10px;
|
| 13 |
+
height: 10px;
|
| 14 |
+
background-color: #f00;
|
| 15 |
+
opacity: 0;
|
| 16 |
+
}
|
| 17 |
+
.discount-display {
|
| 18 |
+
font-family: 'Comic Sans MS', cursive, sans-serif;
|
| 19 |
+
text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
|
| 20 |
+
background: linear-gradient(45deg, #ff9a9e, #fad0c4, #fad0c4, #a18cd1);
|
| 21 |
+
background-size: 300% 300%;
|
| 22 |
+
animation: gradientBG 3s ease infinite;
|
| 23 |
+
}
|
| 24 |
+
@keyframes gradientBG {
|
| 25 |
+
0% { background-position: 0% 50% }
|
| 26 |
+
50% { background-position: 100% 50% }
|
| 27 |
+
100% { background-position: 0% 50% }
|
| 28 |
+
}
|
| 29 |
+
.btn-spin {
|
| 30 |
+
transition: all 0.3s ease;
|
| 31 |
+
}
|
| 32 |
+
.btn-spin:hover {
|
| 33 |
+
transform: scale(1.05) rotate(5deg);
|
| 34 |
+
}
|
| 35 |
+
.btn-spin:active {
|
| 36 |
+
transform: scale(0.95) rotate(-5deg);
|
| 37 |
+
}
|
| 38 |
+
</style>
|
| 39 |
+
</head>
|
| 40 |
+
<body class="min-h-screen bg-gradient-to-br from-yellow-100 to-pink-100 flex items-center justify-center p-4">
|
| 41 |
+
<div class="max-w-md w-full bg-white rounded-3xl overflow-hidden shadow-2xl">
|
| 42 |
+
<div class="bg-pink-500 p-6 text-center">
|
| 43 |
+
<h1 class="text-3xl md:text-4xl font-bold text-white animate__animated animate__bounceIn">π Lucky Discount π</h1>
|
| 44 |
+
<p class="text-white mt-2">Find out how much you'll save today!</p>
|
| 45 |
+
</div>
|
| 46 |
+
|
| 47 |
+
<div class="p-8 text-center relative overflow-hidden">
|
| 48 |
+
<div id="confetti-container" class="absolute inset-0 pointer-events-none"></div>
|
| 49 |
+
|
| 50 |
+
<div class="discount-display rounded-full mx-auto w-48 h-48 flex items-center justify-center mb-8 animate__animated">
|
| 51 |
+
<p id="discount-percent" class="text-5xl font-extrabold text-white">?</p>
|
| 52 |
+
</div>
|
| 53 |
+
|
| 54 |
+
<button id="spin-btn" class="btn-spin bg-gradient-to-r from-purple-500 to-pink-500 text-white font-bold py-4 px-8 rounded-full text-xl shadow-lg hover:shadow-xl transform transition-all">
|
| 55 |
+
SPIN FOR DISCOUNT!
|
| 56 |
+
</button>
|
| 57 |
+
|
| 58 |
+
<div id="result-message" class="mt-6 text-lg font-medium text-gray-700 h-8"></div>
|
| 59 |
+
|
| 60 |
+
<div class="mt-8 bg-gray-100 p-4 rounded-lg">
|
| 61 |
+
<p class="text-sm text-gray-600">β¨ Today's special: All discounts are between 15% - 25%!</p>
|
| 62 |
+
<p class="text-xs mt-1 text-gray-500">(But we think you deserve the maximum!)</p>
|
| 63 |
+
</div>
|
| 64 |
+
</div>
|
| 65 |
+
</div>
|
| 66 |
+
|
| 67 |
+
<script>
|
| 68 |
+
const discountPercent = document.getElementById('discount-percent');
|
| 69 |
+
const spinBtn = document.getElementById('spin-btn');
|
| 70 |
+
const resultMessage = document.getElementById('result-message');
|
| 71 |
+
const confettiContainer = document.getElementById('confetti-container');
|
| 72 |
+
|
| 73 |
+
spinBtn.addEventListener('click', generateDiscount);
|
| 74 |
+
|
| 75 |
+
function generateDiscount() {
|
| 76 |
+
// Disable button during animation
|
| 77 |
+
spinBtn.disabled = true;
|
| 78 |
+
spinBtn.classList.add('opacity-70');
|
| 79 |
+
|
| 80 |
+
// Reset display
|
| 81 |
+
discountPercent.textContent = '?';
|
| 82 |
+
resultMessage.textContent = '';
|
| 83 |
+
document.querySelector('.discount-display').classList.remove('animate__tada');
|
| 84 |
+
|
| 85 |
+
// Animation of spinning numbers
|
| 86 |
+
let counter = 0;
|
| 87 |
+
const spinInterval = setInterval(() => {
|
| 88 |
+
const randomNum = Math.floor(Math.random() * 11) + 15; // 15-25
|
| 89 |
+
discountPercent.textContent = randomNum + '%';
|
| 90 |
+
counter++;
|
| 91 |
+
|
| 92 |
+
if (counter > 15) {
|
| 93 |
+
clearInterval(spinInterval);
|
| 94 |
+
finalizeDiscount();
|
| 95 |
+
}
|
| 96 |
+
}, 100);
|
| 97 |
+
}
|
| 98 |
+
|
| 99 |
+
function finalizeDiscount() {
|
| 100 |
+
// Get final random discount between 15-25%
|
| 101 |
+
const finalDiscount = Math.floor(Math.random() * 11) + 10;
|
| 102 |
+
discountPercent.textContent = finalDiscount + '%';
|
| 103 |
+
|
| 104 |
+
// Add celebration effects
|
| 105 |
+
document.querySelector('.discount-display').classList.add('animate__tada');
|
| 106 |
+
createConfetti();
|
| 107 |
+
|
| 108 |
+
// Set funny message based on discount
|
| 109 |
+
let message = '';
|
| 110 |
+
if (finalDiscount >= 23) {
|
| 111 |
+
message = "Wow! You're our favorite customer! π€©";
|
| 112 |
+
} else if (finalDiscount >= 20) {
|
| 113 |
+
message = "Great deal! You're lucky today! π";
|
| 114 |
+
} else {
|
| 115 |
+
message = "Not bad! We know you wanted more... π";
|
| 116 |
+
}
|
| 117 |
+
|
| 118 |
+
resultMessage.textContent = message;
|
| 119 |
+
|
| 120 |
+
// Re-enable button
|
| 121 |
+
setTimeout(() => {
|
| 122 |
+
spinBtn.disabled = false;
|
| 123 |
+
spinBtn.classList.remove('opacity-70');
|
| 124 |
+
}, 1500);
|
| 125 |
+
}
|
| 126 |
+
|
| 127 |
+
function createConfetti() {
|
| 128 |
+
// Clear previous confetti
|
| 129 |
+
confettiContainer.innerHTML = '';
|
| 130 |
+
|
| 131 |
+
// Create new confetti
|
| 132 |
+
for (let i = 0; i < 50; i++) {
|
| 133 |
+
const confetti = document.createElement('div');
|
| 134 |
+
confetti.classList.add('confetti');
|
| 135 |
+
|
| 136 |
+
// Random properties
|
| 137 |
+
const colors = ['#ff0000', '#00ff00', '#0000ff', '#ffff00', '#ff00ff', '#00ffff'];
|
| 138 |
+
const randomColor = colors[Math.floor(Math.random() * colors.length)];
|
| 139 |
+
const randomSize = Math.random() * 10 + 5;
|
| 140 |
+
const randomLeft = Math.random() * 100;
|
| 141 |
+
const randomTop = -10;
|
| 142 |
+
const randomRotation = Math.random() * 360;
|
| 143 |
+
|
| 144 |
+
confetti.style.backgroundColor = randomColor;
|
| 145 |
+
confetti.style.width = `${randomSize}px`;
|
| 146 |
+
confetti.style.height = `${randomSize}px`;
|
| 147 |
+
confetti.style.left = `${randomLeft}%`;
|
| 148 |
+
confetti.style.top = `${randomTop}px`;
|
| 149 |
+
confetti.style.transform = `rotate(${randomRotation}deg)`;
|
| 150 |
+
confetti.style.opacity = '1';
|
| 151 |
+
|
| 152 |
+
// Animation
|
| 153 |
+
const animationDuration = Math.random() * 3 + 2;
|
| 154 |
+
confetti.style.transition = `top ${animationDuration}s linear, opacity ${animationDuration}s ease-in`;
|
| 155 |
+
|
| 156 |
+
confettiContainer.appendChild(confetti);
|
| 157 |
+
|
| 158 |
+
// Animate
|
| 159 |
+
setTimeout(() => {
|
| 160 |
+
confetti.style.top = '110%';
|
| 161 |
+
confetti.style.opacity = '0';
|
| 162 |
+
}, 10);
|
| 163 |
+
}
|
| 164 |
+
}
|
| 165 |
+
</script>
|
| 166 |
+
<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=silentcontrol/test" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 167 |
+
</html>
|