-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathscript.js
37 lines (29 loc) · 1.1 KB
/
script.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
const runningBtn = document.getElementById("runningBtn");
const sportBtn = document.getElementById("sportBtn");
const apparelBtn = document.getElementById("apparelBtn");
const performanceBtn = document.getElementById("performanceBtn");
const cartBtn = document.getElementById("cartBtn");
cartBtn.addEventListener("click", function () {
window.location.href = "cart.html";
});
sportBtn.addEventListener("click", function () {
window.location.href = "sports.html";
});
apparelBtn.addEventListener("click", function () {
window.location.href = "apparel.html";
});
performanceBtn.addEventListener("click", function () {
window.location.href = "performance.html";
});
document.getElementById("mensBtn").addEventListener("click", function () {
window.location.href = "mens.html";
});
runningBtn.addEventListener("click", function () {
window.location.href = "running.html";
});
document.getElementById("womensBtn").addEventListener("click", function () {
window.location.href = "womens.html";
});
document.getElementById("kidsBtn").addEventListener("click", function () {
window.location.href = "kids.html";
});