awacke1 commited on
Commit
2f9699b
Β·
1 Parent(s): 75ed8b4

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +58 -17
index.html CHANGED
@@ -1,19 +1,60 @@
1
  <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  </html>
 
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>Emoji Slot Machine</title>
7
+ <style>
8
+ body {
9
+ font-family: Arial, sans-serif;
10
+ text-align: center;
11
+ }
12
+
13
+ #slot-machine {
14
+ display: inline-flex;
15
+ justify-content: center;
16
+ align-items: center;
17
+ border: 3px solid #ccc;
18
+ padding: 20px;
19
+ border-radius: 10px;
20
+ font-size: 2rem;
21
+ }
22
+
23
+ .slot {
24
+ padding: 0 10px;
25
+ }
26
+
27
+ button {
28
+ font-size: 1rem;
29
+ padding: 10px 20px;
30
+ margin-top: 20px;
31
+ }
32
+ </style>
33
+ </head>
34
+ <body>
35
+ <h1>Emoji Slot Machine</h1>
36
+ <div id="slot-machine">
37
+ <div class="slot" id="slot1">🍌</div>
38
+ <div class="slot" id="slot2">🍌</div>
39
+ <div class="slot" id="slot3">🍌</div>
40
+ </div>
41
+ <button id="spin-btn">Spin</button>
42
+
43
+ <script>
44
+ document.getElementById('spin-btn').addEventListener('click', function () {
45
+ var emojis = ['🍎', '🍌', 'πŸ’', 'πŸ‡', 'πŸ‰'];
46
+ var slot1 = document.getElementById('slot1');
47
+ var slot2 = document.getElementById('slot2');
48
+ var slot3 = document.getElementById('slot3');
49
+
50
+ slot1.textContent = emojis[Math.floor(Math.random() * emojis.length)];
51
+ slot2.textContent = emojis[Math.floor(Math.random() * emojis.length)];
52
+ slot3.textContent = emojis[Math.floor(Math.random() * emojis.length)];
53
+
54
+ if (slot1.textContent === slot2.textContent && slot2.textContent === slot3.textContent) {
55
+ alert('You won! πŸŽ‰');
56
+ }
57
+ });
58
+ </script>
59
+ </body>
60
  </html>