-
Notifications
You must be signed in to change notification settings - Fork 0
/
java.js
30 lines (24 loc) · 953 Bytes
/
java.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
const erbil =document.getElementById("erbil");
const erbil_detail =document.getElementById("erbil_detail");
const suli_detail =document.getElementById("suli_detail");
const duhok_detail =document.getElementById("duhok_detail");
const suli =document.getElementById("suli");
const duhok =document.getElementById("duhok");
erbil.addEventListener('click', () => {
erbil_detail.style.transition="all 1s";
erbil_detail.style.display="flex";
suli_detail.style.display="none";
duhok_detail.style.display="none";
})
suli.addEventListener('click', () => {
erbil_detail.style.transition="all 1s";
erbil_detail.style.display="none";
suli_detail.style.display="flex";
duhok_detail.style.display="none";
})
duhok.addEventListener('click', () => {
erbil_detail.style.transition="all 1s";
suli_detail.style.display="none";
erbil_detail.style.display="none";
duhok_detail.style.display="flex";
})