-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjs-thaydoisach.js
21 lines (21 loc) · 1.02 KB
/
js-thaydoisach.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
document.querySelector(".btnsuatheloai").addEventListener("click", function(){
document.querySelector(".divsuatheloai").classList.remove("action");
});
document.querySelector(".btnxoatheloai").addEventListener("click", function(){
document.querySelector(".divxoatheloai").classList.remove("action");
});
document.querySelector(".btnsuatacgia").addEventListener("click", function(){
document.querySelector(".divsuatacgia").classList.remove("action");
});
document.querySelector(".btnxoatacgia").addEventListener("click", function(){
document.querySelector(".divxoatacgia").classList.remove("action");
});
const dong = document.querySelectorAll(".close");
for(let i = 0; i < dong.length; i++){
dong[i].addEventListener("click", function(){
document.querySelector(".divsuatheloai").classList.add("action");
document.querySelector(".divxoatheloai").classList.add("action");
document.querySelector(".divsuatacgia").classList.add("action");
document.querySelector(".divxoatacgia").classList.add("action");
})
}