-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
39 lines (25 loc) · 739 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// slide-track section
var text = document.querySelector('#text-wrap');
var word = text.getElementsByTagName('span');
var i = 0;
function rotate() {
word[i].style.display = 'none';
i = (i + 1) % word.length
word[i].style.display = 'initial';
}
setInterval(rotate, 800)
//contact us Modal
let button = document.getElementById('contact-us-button')
var dialogContactUs = document.querySelector('#contact-us-dialog')
button.addEventListener('click', function () {
dialogContactUs.showModal()
})
// POP up
let popup = document.getElementById("popup");
function openPopup() {
popup.classList.add("open-popup");
}
function closePopup() {
popup.classList.remove("open-popup");
console.log("close-popup")
}