-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmodel.js
66 lines (54 loc) · 2.07 KB
/
model.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
const open1 = document.getElementById('open1');
const open2 = document.getElementById('open2');
const open3 = document.getElementById('open3');
const open4 = document.getElementById('open4');
const open5 = document.getElementById('open5');
const open6 = document.getElementById('open6');
const modal_container1 = document.getElementById('modal_container1');
const modal_container2 = document.getElementById('modal_container2');
const modal_container3 = document.getElementById('modal_container3');
const modal_container4 = document.getElementById('modal_container4');
const modal_container5 = document.getElementById('modal_container5');
const modal_container6 = document.getElementById('modal_container6');
const close1 = document.getElementById('close1');
const close2 = document.getElementById('close2');
const close3 = document.getElementById('close3');
const close4 = document.getElementById('close4');
const close5 = document.getElementById('close5');
const close6 = document.getElementById('close6');
open1.addEventListener('click', () => {
modal_container1.classList.add('show-m');
});
open2.addEventListener('click', () => {
modal_container2.classList.add('show-m');
});
open3.addEventListener('click', () => {
modal_container3.classList.add('show-m');
});
open4.addEventListener('click', () => {
modal_container4.classList.add('show-m');
});
open5.addEventListener('click', () => {
modal_container5.classList.add('show-m');
});
open6.addEventListener('click', () => {
modal_container6.classList.add('show-m');
});
close1.addEventListener('click', () => {
modal_container1.classList.remove('show-m');
});
close2.addEventListener('click', () => {
modal_container2.classList.remove('show-m');
});
close3.addEventListener('click', () => {
modal_container3.classList.remove('show-m');
});
close4.addEventListener('click', () => {
modal_container4.classList.remove('show-m');
});
close5.addEventListener('click', () => {
modal_container5.classList.remove('show-m');
});
close6.addEventListener('click', () => {
modal_container6.classList.remove('show-m');
});