-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
59 lines (48 loc) · 1.51 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
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="main.css">
<title>SH</title>
</head>
<body>
<nav id="overlay">
<img src="Close.svg" class="close-btn" id="close-menu">
<ul>
<li>
<a href="#">Home</a>
<span>
Come on home already.
</span>
</li>
<li>
<a href="#">Contact</a>
<span>+91 90359 31131</span>
</li>
<li>
<a href=#>Email</a>
<span>suhas.hareesh@gmail.com</span>
</li>
</ul>
</nav>
<header>
<a href="#" class="logo">My site</a>
<img src="Menu.svg" class="menu-btn" id="open-menu">
</header>
<section>
<h1>I am Suhas and I'm learning XD.</h1>
</section>
<script>
var overlay = document.getElementById('overlay');
var closeMenu = document.getElementById('close-menu');
document.getElementById('open-menu').addEventListener('click', function() {
overlay.classList.add('show-menu');
});
document.getElementById('close-menu').addEventListener('click', function() {
overlay.classList.remove('show-menu');
});
</script>
</body>
</html>