-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
31 lines (28 loc) · 1.12 KB
/
script.js
File metadata and controls
31 lines (28 loc) · 1.12 KB
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
var alphiButton = document.getElementById('alphiButton');
var marckButton = document.getElementById('marckButton');
var marcButton = document.getElementById('marcButton');
var alphiModal = document.getElementById('alphiModal');
var marckModal = document.getElementById('marckModal');
var marcModal = document.getElementById('marcModal');
var closeButton = document.getElementById('closeButton');
document.addEventListener('DOMContentLoaded', function() {
alphiButton.addEventListener('click', function() {
alphiModal.classList.add('active');
})
marckButton.addEventListener('click', function() {
marckModal.classList.add('active');
})
marcButton.addEventListener('click', function() {
marcModal.classList.add('active');
})
closeButtonA.addEventListener('click', function() {
alphiModal.classList.remove('active');
})
closeButtonB.addEventListener('click', function() {
marckModal.classList.remove('active');
})
closeButtonC.addEventListener('click', function() {
marcModal.classList.remove('active');
})
});
console.log("Don't judge my code please :>")