-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
48 lines (40 loc) · 1.43 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Name Quiz</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
</head>
<body>
<div class="quiz-container">
<h2>Your name around the world!</h2>
<form class="name-form" id="myForm">
<label for="nameInput">Enter only letters for Name:</label>
<input type="text" id="nameInput" name="nameInput" pattern="[A-Za-z]+" title="Please enter only letters" required
class="name-input" />
<button type="submit" class="submit-button">Submit</button>
</form>
<div class="number-of-people-box hidden">
<h3>Average Number of People</h3>
<p id="numberOfPeople">0</p>
</div>
<div class="showing-area hidden">
<div class="region-chart hidden" id="regionChart">
<h3>Select the country</h3>
<canvas id="pieChart2" width="300" height="150"></canvas>
</div>
<div class="gender-chart hidden">
<h3>Gender Graph</h3>
<canvas id="pieChart1" width="300" height="150"></canvas>
</div>
<div class="age hidden">
<h3>Average Age</h3>
<p id="ageData">This is where age data will be displayed.</p>
</div>
</div>
</div>
<script src="FinishedScript.js"></script>
</body>
</html>