mirror of
https://github.com/alvierahman90/capitals_quiz.git
synced 2024-11-23 17:59:55 +00:00
100 lines
3.1 KiB
HTML
100 lines
3.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<link rel="stylesheet" type="text/css" href="styles.css" />
|
|
<link rel="stylesheet" type="text/css" href="game_styles.css" />
|
|
<title>capitals_quiz</title>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="game">
|
|
<div id="toprow">
|
|
<p id="question">you need javascript enabled to play this</p>
|
|
<div id="gameinfo">
|
|
<p id="time">time</p>
|
|
<p id="score">score</p>
|
|
</div>
|
|
</div>
|
|
<div style="display: none" id="settings">
|
|
<div id="regionList"></div>
|
|
<div id="questionTypeSelector">
|
|
<input
|
|
type="radio"
|
|
name="questionMode"
|
|
value="capital"
|
|
id="questionTypeCapital"
|
|
checked
|
|
/>
|
|
<label for="questionTypeCapital">capital</label>
|
|
|
|
<input
|
|
type="radio"
|
|
name="questionMode"
|
|
value="country"
|
|
id="questionTypeCountry"
|
|
/>
|
|
<label for="questionTypeCountry">country</label>
|
|
|
|
<input
|
|
type="radio"
|
|
name="questionMode"
|
|
value="flag"
|
|
id="questionTypeFlag"
|
|
/>
|
|
<label for="questionTypeFlag">flag</label>
|
|
|
|
<input
|
|
type="radio"
|
|
name="questionMode"
|
|
value="reverseflag"
|
|
id="questionTypeReverseFlag"
|
|
/>
|
|
<label for="questionTypeReverseFlag">reverseflag</label>
|
|
</div>
|
|
</div>
|
|
<div style="display: none" id="answers">
|
|
<div class="answer" id="answer_a">
|
|
<p class="letter" id="a">1</p>
|
|
<p class="text">answer 1 text</p>
|
|
</div>
|
|
<div class="answer" id="answer_b">
|
|
<p class="letter" id="b">2</p>
|
|
<p class="text">answer 2 text</p>
|
|
</div>
|
|
<div class="answer" id="answer_c">
|
|
<p class="letter" id="c">3</p>
|
|
<p class="text">this sample text is longer than the rest</p>
|
|
</div>
|
|
<div class="answer" id="answer_d">
|
|
<p class="letter" id="d">4</p>
|
|
<p class="text">answer 4 text</p>
|
|
</div>
|
|
<p id="previousQuestionText" style="display: none">
|
|
answer to previous question:
|
|
<span id="previousQuestionAnswer"> </span>
|
|
</p>
|
|
</div>
|
|
<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>
|
|
</div>
|
|
<p>
|
|
built with ❤ and adequate amounts of care by
|
|
<a href="https://alra.uk">alv</a>
|
|
</p>
|
|
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
|
<script type="text/javascript" src="countries.js"></script>
|
|
<script type="text/javascript" src="game.js"></script>
|
|
</body>
|
|
</html>
|