forked from Old-Respect-9735/CleanCurrent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
23 lines (22 loc) · 860 Bytes
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
var problemBtns = document.querySelectorAll(".btn.btn-outline-dark.btn-rounded");
problemBtns = document.getElementsByClassName("btn btn-outline-dark btn-rounded");
for (let i = 0; i < problemBtns.length; i++) {
problemBtns[i].onclick = () => {
location.href = "problem.html";
};
}
document.getElementById("productBtn").addEventListener("click", function() {
location.href = "product.html";
});
document.getElementById("home").addEventListener("click", function() {
location.href = "index.html";
});
document.getElementById("problem").addEventListener("click", function() {
location.href = "problem.html";
})
document.getElementById("product").addEventListener("click", function() {
location.href = "product.html";
})
document.getElementById("other").addEventListener("click", function() {
location.href = "other.html";
});