-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
84 lines (76 loc) · 2.99 KB
/
Copy pathindex.html
File metadata and controls
84 lines (76 loc) · 2.99 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-212YLBQCQF"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-212YLBQCQF');
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Leardle - Educational Word Guessing Game</title>
<script>
// Get the base URL for GitHub Pages compatibility
const baseUrl = window.location.pathname.replace(/\/[^/]*$/, '/');
</script>
<link rel="stylesheet" href="styles/main.css">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet">
</head>
<body>
<div class="app-container">
<header>
<h1><a href="." id="refreshPage">Leardle</a></h1>
<button id="themeToggle" aria-label="Toggle dark mode">🌓</button>
</header>
<main>
<div id="inputSection" class="section">
<h2>Input Your Terms</h2>
<div class="format-instructions">
<p>Enter your terms in either JSON or Plain Text format:</p>
<div class="format-example">
<h3>JSON Format:</h3>
<pre>[
{
"term": "photosynthesis",
"definition": "Process by which plants convert light energy"
}
]</pre>
</div>
<div class="format-example">
<h3>Plain Text Format:</h3>
<pre>photosynthesis
Process by which plants convert light energy</pre>
<p>Note: Plain text format requires terms and definitions on alternating lines</p>
</div>
</div>
<textarea id="termsInput" placeholder="Paste your terms and definitions here (JSON or plaintext format)..."></textarea>
<div class="button-group">
<button id="startGame">Start Game</button>
</div>
</div>
<div id="gameSection" class="section hidden">
<div class="game-info">
<p id="progress"></p>
<p id="currentDefinition"></p>
<p id="attemptsLeft">Attempts left: 5</p>
</div>
<div class="guess-input">
<input type="text" id="guessInput" placeholder="Enter your guess">
<button id="submitGuess">Submit</button>
</div>
<div id="guessHistory"></div>
<div class="feedback-area">
<p id="feedbackMessage"></p>
</div>
</div>
</main>
<footer>
<p>© 2025 Tarushv Kosgi</p>
</footer>
</div>
<script src="scripts/game.js"></script>
</body>
</html>