-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
38 lines (38 loc) · 928 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<script>
function spicyFunction() {
let spicyItems = document.getElementsByClassName("spicy");
for (let item of spicyItems) {
let checkBox = document.getElementById("spicyCheckBox");
if (checkBox.checked === true) {
item.style.display = "block";
} else {
item.style.display = "none";
}
}
}
</script>
<title>2020 Internship1 Exercise - Menu</title>
<meta charset="UTF-8" />
</head>
<body>
<header>
<h1 style="text-align: center;">
Fancy Italian Restaurant
<img
id="spicyImg"
src="../assets/StampItalyFlag.svg"
width="50px"
alt="Pepper Image"
/>
</h1>
</header>
<main>
<div id="menu"></div>
</main>
<footer></footer>
<script src="src/index.js"></script>
</body>
</html>