-
Notifications
You must be signed in to change notification settings - Fork 0
/
javascript.html
74 lines (58 loc) · 1.62 KB
/
javascript.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
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
<head>
<link rel="stylesheet" type="text/css" href="style.css"/>
</head>
<div class="ribbon">
<a href="#" class="right-link">Link</a>
</div>
<!--
following is the beginning of the burger menu
-->
<nav role="navigation">
<div id="menuToggle">
<!--
Start with the burger menu as a hidden tick box
-->
<input type="checkbox" />
<!--
spans to act as a hamburger.
-->
<span></span>
<span></span>
<span></span>
<!--
hidden by the checkbox selected.
-->
<ul id="menu">
<a href="index.html"><li>Home</li></a>
<a href="#"><li>About Me</li></a>
<a href="seo.html"><li>SEO</li></a>
<a href="#"><li>Contact</li></a>
<a href="javascript.html"><li>JavaScript</li></a>
<a href="https://google.com" target="_blank"><li>Show me more</li></a>
</ul>
</div>
</nav>
<!--
Next section is the hero image.
-->
<body>
<div class="hero-image">
<div class="hero-text">
<h1>JavaScript</h1>
<p> Some random JavaScript I've learned</p>
<br>
<button>First thing you need to do is click here</button>
</div>
</div>
<br>
<br>
<script>
// Prompt the user to enter their height in centimeters
const heightInCM = prompt("Please enter your height in centimeters:");
// Display the height using a pop-up
if (heightInCM) {
alert("Your height is " + heightInCM + " cm");
} else {
alert("Invalid input. Please enter a valid height.");
}
</script>