-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreport.html
88 lines (78 loc) · 1.85 KB
/
report.html
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
<form id="form">
<div class="field">
<label for="username">username</label>
<input type="text" name="username" id="username">
</div>
<div class="field">
<label for="reported">reported</label>
<input type="text" name="reported" id="reported">
</div>
<div class="field">
<label for="reason">reason</label>
<input type="text" name="reason" id="reason">
</div>
<div class="field">
<label for="your proof">your proof</label>
<input type="text" name="your proof" id="your proof">
</div>
<input type="submit" id="button" value="Report" >
</form>
<script type="text/javascript"
src="https://cdn.jsdelivr.net/npm/@emailjs/browser@3/dist/email.min.js"></script>
<script type="text/javascript">
emailjs.init('c4ibbAoX6wTt3Dj68')
</script>
<script>
const btn = document.getElementById('button');
document.getElementById('form')
.addEventListener('submit', function(event) {
event.preventDefault();
btn.value = 'Sending...';
const serviceID = 'default_service';
const templateID = 'template_s4e1ndr';
emailjs.sendForm(serviceID, templateID, this)
.then(() => {
btn.value = 'Report';
alert('Sent!');
}, (err) => {
btn.value = 'Report';
alert(JSON.stringify(err));
});
});
</script>
<style>
.field {
margin: 0 auto;
align:center;
text-align: center;
margin-bottom: 10px;
}
.field label {
align:center;
margin: 0 auto;
text-align: center;
display: block;
font-size: 12px;
color: #777;
}
.field input {
align: center;
margin: 0 auto;
text-align: center;
display: block;
min-width: 250px;
line-height: 1.5;
font-size: 14px;
}
input[type="submit"] {
align: center;
margin: 0 auto;
text-align: center;
display: block;
padding: 6px 30px;
font-size: 14px;
background-color: #0000FF;
color: #fff;
border: none;
}
</style>