-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
91 lines (89 loc) · 4.03 KB
/
Copy pathindex.html
File metadata and controls
91 lines (89 loc) · 4.03 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
85
86
87
88
89
90
91
<!--
TermFlip - A memory match game for learning
© 2024 Tarushv Kosgi. All rights reserved.
-->
<!DOCTYPE html>
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TermFlip - Flip the terms, master the definitions</title>
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<button class="theme-toggle" id="theme-toggle">
<span class="icon">🌞</span>
<span>Theme</span>
</button>
<main>
<section id="input-screen" class="screen active">
<div class="instruction-panel">
<h1 id="title">TermFlip</h1>
<p class="tagline">Flip the terms, master the definitions</p>
<div class="instructions">
<h2>Enter your study material as term-definition pairs below</h2>
<div class="format-examples">
<div class="json-example">
<h3>JSON Format Example:</h3>
<div class="example-content">
<div class="code-block">
<table>
<tr><td>[</td></tr>
<tr><td>{</td></tr>
<tr><td>"term": "photosynthesis",</td></tr>
<tr><td>"definition": "Process by which plants convert light energy"</td></tr>
<tr><td>}</td></tr>
<tr><td>]</td></tr>
</table>
</div>
</div>
</div>
<div class="text-example">
<h3>Plain Text Format:</h3>
<div class="example-content">
<div class="code-block">
<table>
<tr><td>photosynthesis</td></tr>
<tr><td>Process by which plants convert light energy</td></tr>
</table>
</div>
</div>
<p class="note">Plain text format requires terms and definitions on alternating lines.</p>
</div>
</div>
</div>
</div>
<div class="input-area">
<textarea id="term-input" placeholder="Paste your terms and definitions here..."></textarea>
<div class="input-feedback"></div>
<button id="start-game" class="primary-button">START</button>
<button id="try-example" class="secondary-button">Try Example</button>
</div>
</section>
<section id="game-screen" class="screen">
<header class="game-header">
<div class="game-stats">
<span class="moves">Moves: <span id="move-count">0</span></span>
<span class="timer">Time: <span id="time-elapsed">00:00</span></span>
</div>
<button id="restart-game" class="secondary-button">Restart Game</button>
</header>
<div id="game-board" class="card-grid"></div>
</section>
<div id="completion-modal" class="modal hidden">
<div class="modal-content">
<h2>Congratulations!</h2>
<div class="stats"></div>
<div class="actions">
<button id="play-again" class="primary-button">Play Again</button>
<button id="new-terms" class="secondary-button">New Terms</button>
</div>
</div>
</div>
</main>
<footer class="copyright">
<p>© 2024 Tarushv Kosgi. All rights reserved.</p>
</footer>
<script src="js/app.js"></script>
</body>
</html>