-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
140 lines (127 loc) Β· 5.26 KB
/
index.html
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="https://cdn.discordapp.com/attachments/915989411475365898/1089962030913556570/timeline.png">
<title>TimeTango</title>
<meta property="og:type" content="website">
<meta property="og:title" content="TimeTango" />
<meta property="og:description" content="Study for history courses through this interactive timeline game!" />
<meta property="og:url" content="https://generousjj.github.io/timeline-game/" />
<meta property="og:image" content="https://cdn.discordapp.com/attachments/915989411475365898/1089962030913556570/timeline.png" />
<link rel="stylesheet" href="styles.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/Sortable.min.js"></script>
<script defer src="scripts.js"></script>
<script async src="https://arc.io/widget.min.js#Ah7eFjLZ"></script>
</head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-TY31QGE2JT"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-TY31QGE2JT');
</script>
<body>
<div id="instructions-popup" class="popup hidden">
<div class="popup-box">
<div class="popup-header">
<h2 class="popup-title">π€ How to Play</h2>
<span class="popup-close" onclick="closeInstructionsPopup()">×</span>
</div>
<div class="popup-content">
<p>1. Choose a subject from the dropdown menu and click "Load Game".</p>
<p>2. Cards with events will appear on the left side of the screen.</p>
<p>3. Drag and drop the cards in the correct chronological order on the right side of the screen.</p>
<p>4. If you're unsure of an event's date, you can click "Skip" to move to the next card.</p>
<p>5. When you're done, click "Check Results" to see your accuracy and get detailed results.</p>
<center>
<p>π₯: Credits</p>
<p>π: Toggle dark mode</p>
<p>π: Select new subject</p>
</center>
</div>
</div>
</div>
<div id="credits-popup" class="popup hidden">
<div class="popup-box">
<div class="popup-header">
<h2 class="popup-title">Credits</h2>
<span class="popup-close" onclick="closeCreditsPopup()">×</span>
</div>
<div class="popup-content">
<p><strong>Deck Creators:</strong></p>
<ul>
<li>Brittany Berriz - AP Euro</li>
<li>Sierra Hall - APUSH (key dates)</li>
<li>Austin Kim - APUSH (extended)</li>
<li>Fiveable - AP World</li>
</ul>
<p><strong>Site Developers:</strong></p>
<ul>
<li>GPT-4 - frontend, backend</li>
<li>Jude St John - ideation, debugging</li>
</ul>
</div>
</div>
</div>
<div class="container">
<div class="subject-selector" id="subject-selector">
<label for="subject">Choose a subject:</label>
<select name="subject" id="subject" class="custom-select">
<option value="">--Select--</option>
<option value="test">Test Deck</option>
<option value="apeuro">AP Euro (key dates)</option>
<option value="apeuro-extended">AP Euro (extended)</option>
<option value="apush">APUSH (key dates)</option>
<option value="apush-extended">APUSH (extended)</option>
<option value="apwh">AP World</option>
</select>
<button id="load-game-button" disabled>Load Game</button>
</div>
<div class="deck">
<button class="next-button" onclick="drawCard()">Skip</button>
</div>
<div class="card-area">
<div class="card-container">
</div>
<div class="placeholder">Drag cards from the left to play!</div>
</div>
</div>
<button id="check-results-button" class="check-results-button" onclick=checkResults() disabled>Check Results</button>
<span class="how-to" onclick=howTo()>π€</span>
<span class="credits" onclick=credits()>π₯</span>
<span class="theme-toggle">π</span>
<span class="subject-toggle" onclick=newSubject()>π</span>
<div id="message-box" class="message-box hidden">
<span id="message-text"></span>
<button id="message-close" class="message-close">×</button>
</div>
<div id="popup" class="popup hidden">
<div class="popup-box">
<div class="popup-header">
<h2 class="popup-title">Results</h2>
<span class="popup-close" onclick="closePopup()">×</span>
</div>
<div class="popup-content">
<div class="popup-results">
<!-- Your results will be displayed here -->
</div>
<input type="checkbox" id="title1" name="contentbox" />
<div class="copyContent">
<div class="tooltip">
<div class="whitepaper" id="whitepaper" onclick="myCopy(event)">
<span class="tooltiptext">Copy link 1 to clipboard</span>Copy</div>
</div>
<input type="text" value="VALUE HERE" id="myInput">
</div>
</div>
<div class="button-holder">
<button id="restart-button" class="restart-button">Restart</button>
</div>
</div>
</div>
</div>
</body>
</html>