-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathnavbar.js
48 lines (32 loc) · 1.17 KB
/
navbar.js
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
document.querySelector("#logo img").addEventListener("click", logofunc)
function logofunc() {
window.location.href = "index.html"
}
document.querySelector("#create").addEventListener("click", createfunction);
function createfunction() {
window.location.href = "instavideo.html"
}
document.querySelector("#learn").addEventListener("click", learnfunction);
function learnfunction() {
window.location.href = "blog.html"
}
document.querySelector("#pricing").addEventListener("click", pricingfunction);
function pricingfunction() {
window.location.href = "pricing.html"
}
document.querySelector("#enterprise").addEventListener("click", enterprisefunction);
function enterprisefunction() {
window.location.href = "enterprise.html"
}
document.querySelector("#casestudy").addEventListener("click", casefunction);
function casefunction() {
window.location.href = "casestudy.html"
}
document.querySelector("#btn1").addEventListener("click", loginfunction);
function loginfunction() {
window.location.href = "login.html"
}
document.querySelector("#btn2").addEventListener("click", signupfunction);
function signupfunction() {
window.location.href = "signup.html"
}