-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnavbar.html
64 lines (58 loc) · 1.96 KB
/
navbar.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="navbar.css">
</head>
<body>
<div id="nav">
<div id="nab">
<div id="logo">
<img src="https://www.linkpicture.com/q/TIME-ROCKET-removebg-preview.png" alt="">
</div>
<div id="menu">
<a class="active" href="">Demo</a>
<a class="active1" href="features.html">Feature</a>
<a class="active2" href="pricing.html">Pricing</a>
<a href="">About us</a>
<a href="">FAQ</a>
<a href="">Blog</a>
<button id="btn">LOGIN</button>
<button id="sign">SIGN UP</button>
<select name="" id="select">
<option value="">English</option>
<option value="">Espanol</option>
</select>
</div>
</div>
</div>
</body>
</html>
<script>
// let btn=document.querySelector(".active");
// btn.addEventListener("click",(event)=>{
// event.preventDefault()
// btn.style.color="green"
// })
// let btn1=document.querySelector(".active1");
// btn1.addEventListener("click",(event)=>{
// event.preventDefault()
// btn1.style.color="green"
// })
// let btn2=document.querySelector(".active2");
// btn2.addEventListener("click",(event)=>{
// event.preventDefault()
// btn2.style.color="green"
// })
// let navbar=document.querySelecetor(".active").querySelectorAll("a");
// // /
// navbar.forEach((ele)=>{
// ele.addEventListener("click",function(){
// navbar.forEach(nav=>nav.classList.remove("active"))
// this.classList.add("active")
// })
// })
</script>