2021-04-10 14:02:36 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8"/>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2021-05-04 20:00:56 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="styles.css" />
|
|
|
|
<link rel="stylesheet" type="text/css" href="game_styles.css" />
|
2021-04-10 14:02:36 +00:00
|
|
|
<title>capitals_quiz</title>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div id=game>
|
|
|
|
<div id="toprow">
|
2022-01-13 23:27:52 +00:00
|
|
|
<p id="question">you need javascript enabled to play this</p>
|
2021-12-01 15:10:50 +00:00
|
|
|
<div id="gameinfo">
|
2022-01-13 23:27:52 +00:00
|
|
|
<p id="time">time</p>
|
2021-04-10 14:02:36 +00:00
|
|
|
<p id="score">score</p>
|
2021-12-01 15:10:50 +00:00
|
|
|
</div>
|
2021-04-10 14:02:36 +00:00
|
|
|
</div>
|
2021-04-11 14:04:52 +00:00
|
|
|
<div style="display: none" id="settings">
|
2022-01-13 23:27:52 +00:00
|
|
|
<div id="regionList"></div>
|
2022-01-13 20:10:47 +00:00
|
|
|
<div id="questionTypeSelector" >
|
|
|
|
<p>guess capital</p>
|
|
|
|
<label class="switch">
|
|
|
|
<input id="guessCheckbox" type="checkbox">
|
|
|
|
<span class="slider round"></span>
|
|
|
|
</label>
|
|
|
|
<p>guess country</p>
|
|
|
|
</div>
|
2021-04-11 14:04:52 +00:00
|
|
|
</div>
|
2021-04-10 14:02:36 +00:00
|
|
|
<div style="display: none" id="answers">
|
|
|
|
<div class="answer" id="answer_a">
|
2022-01-13 19:19:40 +00:00
|
|
|
<p class="letter" id="a">1</p>
|
|
|
|
<p class="text">answer 1 text</p>
|
2021-04-10 14:02:36 +00:00
|
|
|
</div>
|
|
|
|
<div class="answer" id="answer_b">
|
2022-01-13 19:19:40 +00:00
|
|
|
<p class="letter" id="b">2</p>
|
|
|
|
<p class="text">answer 2 text</p>
|
2021-04-10 14:02:36 +00:00
|
|
|
</div>
|
|
|
|
<div class="answer" id="answer_c">
|
2022-01-13 19:19:40 +00:00
|
|
|
<p class="letter" id="c">3</p>
|
2021-04-10 14:02:36 +00:00
|
|
|
<p class="text">this sample text is longer than the rest</p>
|
|
|
|
</div>
|
|
|
|
<div class="answer" id="answer_d">
|
2022-01-13 19:19:40 +00:00
|
|
|
<p class="letter" id="d">4</p>
|
|
|
|
<p class="text">answer 4 text</p>
|
2021-04-10 14:02:36 +00:00
|
|
|
</div>
|
2021-06-05 11:11:00 +00:00
|
|
|
<p id="previousQuestionText" style="display: none"> answer to previous question: <span id="previousQuestionAnswer"> </span></p>
|
2021-04-10 14:02:36 +00:00
|
|
|
</div>
|
2021-06-05 10:52:08 +00:00
|
|
|
<div style="display: none" id="results">
|
|
|
|
<h1 id="resultsBreakdownHeader"> results breakdown </h1>
|
|
|
|
<div>
|
|
|
|
<canvas id="resultsChart"></canvas>
|
|
|
|
</div>
|
|
|
|
<h2 id="incorrectAnswersHeader"> incorrect answers </h2>
|
|
|
|
<table id="incorrectAnswersTable"> </table>
|
|
|
|
|
|
|
|
<h2 id="correctAnswersHeader"> correct answers </h2>
|
|
|
|
<table id="correctAnswersTable"> </table>
|
|
|
|
</div>
|
2021-04-10 14:02:36 +00:00
|
|
|
</div>
|
2021-05-06 18:45:42 +00:00
|
|
|
<p> built with ❤ and adequate amounts of care by <a href="https://alra.uk">alv</a></p>
|
2021-06-05 10:52:08 +00:00
|
|
|
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
2022-01-13 23:27:52 +00:00
|
|
|
<script type="text/javascript" src="countries.js"></script>
|
2021-04-10 14:21:38 +00:00
|
|
|
<script type="text/javascript" src="game.js"></script>
|
2021-04-10 14:02:36 +00:00
|
|
|
</body>
|