-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
103 lines (83 loc) · 2.69 KB
/
script.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
var e = document.getElementById("co1");
e.onmouseover = function() {
document.getElementById('tex1').style.display = 'block';
}
e.onmouseout = function() {
document.getElementById('tex1').style.display = 'none';
}
var e = document.getElementById("co2");
e.onmouseover = function() {
document.getElementById('tex2').style.display = 'block';
}
e.onmouseout = function() {
document.getElementById('tex2').style.display = 'none';
}
var e = document.getElementById("co3");
e.onmouseover = function() {
document.getElementById('tex3').style.display = 'block';
}
e.onmouseout = function() {
document.getElementById('tex3').style.display = 'none';
}
var e = document.getElementById("co4");
e.onmouseover = function() {
document.getElementById('tex4').style.display = 'block';
}
e.onmouseout = function() {
document.getElementById('tex4').style.display = 'none';
}
var e = document.getElementById("co5");
e.onmouseover = function() {
document.getElementById('tex5').style.display = 'block';
}
e.onmouseout = function() {
document.getElementById('tex5').style.display = 'none';
}
var e = document.getElementById("co6");
e.onmouseover = function() {
document.getElementById('tex6').style.display = 'block';
}
e.onmouseout = function() {
document.getElementById('tex6').style.display = 'none';
}
var e = document.getElementById("co7");
e.onmouseover = function() {
document.getElementById('tex7').style.display = 'block';
}
e.onmouseout = function() {
document.getElementById('tex7').style.display = 'none';
}
var e = document.getElementById("co8");
e.onmouseover = function() {
document.getElementById('tex8').style.display = 'block';
}
e.onmouseout = function() {
document.getElementById('tex8').style.display = 'none';
}
// login and sending email
const btn = document.getElementById('button');
document.getElementById('form')
.addEventListener('submit', function(event) {
event.preventDefault();
btn.value = 'Wait...';
const serviceID = 'service_vie98na';
const templateID = 'template_mf0ibzo';
emailjs.sendForm(serviceID, templateID, this)
.then(() => {
btn.value = 'Register';
alert('Your succesfully registered!');
}, (err) => {
btn.value = 'Register';
alert(JSON.stringify(err));
});
});
function show(para){
document.getElementById('form').style.display=para
document.getElementsByTagName('header').style.position='absolute'
document.getElementsByTagName('header').style.zIndex='-1'
document.getElementById('form').style.transform='transition: 3s'
document.getElementById('header').style.background="linear-gradient(rgba(0,0,0,0.55),rgba(0,0,0,0.55))"
}
function hide(para){
document.getElementById('form').style.display=para
}