-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
59 lines (52 loc) · 2.29 KB
/
index.html
File metadata and controls
59 lines (52 loc) · 2.29 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Keyforge Coin Flip</title>
<link rel="stylesheet" href="styles.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Bungee&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Roboto&display=swap" rel="stylesheet">
</head>
<body>
<header>
<div class="header-content">
<div class="icon">
<img src="front-key.png" alt="Keyforge Icon" class="header-icon">
</div>
<h1>Keyforge Coin Flip</h1>
</div>
</header>
<main>
<div class="coin-container">
<div class="coin" id="coin" onclick="flipCoin()">
<img src="front-key.png" alt="Keyforge Coin" class="coin-image" id="coinImage">
</div>
<button class="flip-button" onclick="flipCoin()">Flip Coin</button>
</div>
<div class="custom-images-section">
<h2>Custom Coin Images</h2>
<div class="upload-controls">
<div class="upload-group">
<label for="frontImageInput">Front Image:</label>
<input type="file" id="frontImageInput" accept="image/*" onchange="handleFrontImageUpload(event)">
<div class="preview-container">
<img id="frontPreview" class="preview-image" alt="Front preview">
</div>
</div>
<div class="upload-group">
<label for="backImageInput">Back Image:</label>
<input type="file" id="backImageInput" accept="image/*" onchange="handleBackImageUpload(event)">
<div class="preview-container">
<img id="backPreview" class="preview-image" alt="Back preview">
</div>
</div>
</div>
<button class="reset-button" onclick="resetToDefault()">Reset to Default</button>
</div>
</main>
<script src="script.js"></script>
</body>
</html>