Spaces:
Running
Running
Update index.html
Browse files- index.html +36 -19
index.html
CHANGED
|
@@ -1,19 +1,36 @@
|
|
| 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 |
+
<title>How WouldYouRather.cc Works</title>
|
| 6 |
+
<style>
|
| 7 |
+
body { font-family: Arial, sans-serif; padding: 2rem; background: #f9f9f9; color: #333; }
|
| 8 |
+
pre { background: #eee; padding: 1rem; overflow-x: auto; border-radius: 5px; }
|
| 9 |
+
a { color: #0077cc; text-decoration: none; }
|
| 10 |
+
a:hover { text-decoration: underline; }
|
| 11 |
+
</style>
|
| 12 |
+
</head>
|
| 13 |
+
<body>
|
| 14 |
+
<h1>How WouldYouRather.cc Works</h1>
|
| 15 |
+
<p>This is a fun site that provides random "Would You Rather" questions for games or icebreakers.</p>
|
| 16 |
+
<h2>Simple Random Question Demo</h2>
|
| 17 |
+
<pre>
|
| 18 |
+
<button onclick="showQuestion()">Show Question</button>
|
| 19 |
+
<div id="question"></div>
|
| 20 |
+
|
| 21 |
+
<script>
|
| 22 |
+
const questions = [
|
| 23 |
+
"Would you rather fly or be invisible?",
|
| 24 |
+
"Would you rather have a pet dragon or a pet unicorn?",
|
| 25 |
+
"Would you rather live in the city or the countryside?"
|
| 26 |
+
];
|
| 27 |
+
|
| 28 |
+
function showQuestion() {
|
| 29 |
+
const index = Math.floor(Math.random() * questions.length);
|
| 30 |
+
document.getElementById('question').textContent = questions[index];
|
| 31 |
+
}
|
| 32 |
+
</script>
|
| 33 |
+
</pre>
|
| 34 |
+
<p>Try it live at <a href="https://wouldyourather.cc" target="_blank" rel="noopener noreferrer">wouldyourather.cc</a></p>
|
| 35 |
+
</body>
|
| 36 |
+
</html>
|