-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathverify.html
More file actions
86 lines (72 loc) · 2.08 KB
/
verify.html
File metadata and controls
86 lines (72 loc) · 2.08 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
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
<html>
<head>
<style>
.button {
background-color: #6e6b67;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
width: 17%;
display: inline-block;
font-size: 16px;
transition: all 0.2s ease-in-out;
box-shadow: 0 5px 15px rgba(145, 92, 182, .4);
border-color: white;
border-width: 1px;
border-style: dotted;
}
body {
background-color: rgb(0, 0, 0);
}
h1 {
color: white;
}
button:hover {
cursor: pointer;
background:#bbb;
color: black;
border-color: black;
border-width: 1px;
border-style: dotted;
}
</style>
<script>
loc = window.location.href;
loc = loc.replace('https://skparab1.github.io/server/verify.html?rname=','')
num = localStorage.getItem('postnumber');
//console.log('loc',loc);
(async () => {
const data1 = await fetch('./data.json').then(r => r.json());
oldusernames = data1.data[0];
oldusernames = JSON.stringify(oldusernames);
oldusernames = oldusernames.replace('{"name":"','');
oldusernames = oldusernames.replace('"}','');
var usernames = oldusernames.split('&=');
num = parseInt(num) - 1;
var entry = usernames[num];
//console.log(usernames);
//console.log(num);
//console.log(usernames[num]);
entry = entry.split('&n');
rname = entry[1];
rname = rname.replaceAll(' ','');
loc = loc.replaceAll('+',' ');
//console.log('loc',loc);
//console.log('Looking for',rname);
//console.log(rname,loc);
if (rname.toUpperCase() == loc.toUpperCase()){
window.open('https://skparab1.github.io/server/edit.html','_self')
} else {
num = num + 1;
window.open('https://skparab1.github.io/server/verifyedit.html?messageid='+num+'&incorrect','_self')
}
})();
</script>
</head>
<body>
<h1>Verifying</h1>
<img src="loading.gif" alt="loading" style="width: 20%; text-align: center;">
</body>
</html>