-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
107 lines (102 loc) · 4.96 KB
/
index.html
File metadata and controls
107 lines (102 loc) · 4.96 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!--The emojis are just for aesthetic. I wrote all of the code myself in this file-->
<!--Made as a project for 4o middle school of Heraklion, Crete-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>English Project</title>
<link rel="stylesheet" href="style.css">
<script src="script.js" defer></script>
</head>
<body>
<!--This is to add the Github icon for the source code-->
<a href="https://github.com/Whoami-Parrot/School-English-Project" class="github-link" target="_blank"
aria-label="GitHub Profile">
<svg viewBox="0 0 16 16" width="32" height="32" fill="currentColor">
<path
d="M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z">
</path>
</svg>
</a>
<h1>Facts about different countries</h1>
<p>Instructions: Use true or false to answer the questions. After you finish, scroll down to see your results.</p>
<div class="container">
<div class="fact">
<h2>1. 🇫🇷 French people sometimes eat frog legs as a delicacy</h2>
<div>
<button onclick="checkAnswer(0, true, this)">True</button>
<button onclick="checkAnswer(0, false, this)">False</button>
</div>
</div>
<div class="fact">
<h2>2. 🇨🇳 Tipping is not customary in China, it can even be considered rude</h2>
<div>
<button onclick="checkAnswer(1, true, this)">True</button>
<button onclick="checkAnswer(1, false, this)">False</button>
</div>
</div>
<div class="fact">
<h2>3. 🇬🇧 In England, it is illegal to own a pigeon unless you own a license</h2>
<div>
<button onclick="checkAnswer(2, true, this)">True</button>
<button onclick="checkAnswer(2, false, this)">False</button>
</div>
</div>
<div class="fact">
<h2>4. 🇨🇭 In Switzerland, it is legal to own just one guinea pig</h2>
<div>
<button onclick="checkAnswer(3, true, this)">True</button>
<button onclick="checkAnswer(3, false, this)">False</button>
</div>
</div>
<div class="fact">
<h2>5. 🇳🇱 In Holland, Dutch people great each other with a firm handshake only</h2>
<div>
<button onclick="checkAnswer(4, true, this)">True</button>
<button onclick="checkAnswer(4, false, this)">False</button>
</div>
</div>
<div class="fact">
<h2>6. 🏴 In Scotland, the national animal is the unicorn</h2>
<div>
<button onclick="checkAnswer(5, true, this)">True</button>
<button onclick="checkAnswer(5, false, this)">False</button>
</div>
</div>
<div class="fact">
<h2>7. 🇸🇪 In Sweden, it is polite to enter someone's home while wearing shoes</h2>
<div>
<button onclick="checkAnswer(6, true, this)">True</button>
<button onclick="checkAnswer(6, false, this)">False</button>
</div>
</div>
<div class="fact">
<h2>8.🇩🇰 In Denmark, Danes frequently eat ice cream for breakfast</h2>
<div>
<button onclick="checkAnswer(7, true, this)">True</button>
<button onclick="checkAnswer(7, false, this)">False</button>
</div>
</div>
<div class="fact">
<h2>9. 🇵🇹 In Portugal, it is illegal to name your child "Lucifer"</h2>
<div>
<button onclick="checkAnswer(8, true, this)">True</button>
<button onclick="checkAnswer(8, false, this)">False</button>
</div>
</div>
<div class="fact">
<h2>10. 🇦🇹 In Austria, you dont cross the street until the light turns green</h2>
<div>
<button onclick="checkAnswer(9, true, this)">True</button>
<button onclick="checkAnswer(9, false, this)">False</button>
</div>
</div>
</div>
<div class="results">
<h2>Results</h2>
<div id="score-display">Select all answers to see your score</div>
<button class="show-results-btn" onclick="showResults()">Finish</button>
</div>
</body>
</html>