-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
32 lines (29 loc) · 1.14 KB
/
app.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
const navHomeBtn = document.querySelector("#nav-home");
const navTranslteBtn = document.querySelector("#nav-translate");
const navSettingsBtn = document.querySelector("#nav-settings");
const translateCard = document.querySelector("#translate-card");
const learnCard = document.querySelector("#learn-card");
const contributeCard = document.querySelector("#contribute-card");
const contactUsCard = document.querySelector("#contact-us-card");
//card nav
translateCard.addEventListener("click", function () {
window.location = "./translate";
});
learnCard.addEventListener("click", function () {
window.location = "./learn";
});
contributeCard.addEventListener("click", function () {
window.location = "https://github.com/ArpanenduKhag";
});
contactUsCard.addEventListener("click", function () {
window.location = "./contact-us";
});
//bottom nav
navTranslteBtn.addEventListener("click", function () {
window.location = "./translate";
});
navSettingsBtn.addEventListener("click", function () {
navHomeBtn.classList.remove("active-nav-btn");
navSettingsBtn.classList.add("active-nav-btn");
window.location = "./settings";
});