-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
99 lines (81 loc) · 2.77 KB
/
index.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
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE html>
<html>
<head>
<title>QRodEX IHPS Verification System</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/futura-font@1.0.0/styles.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/Faker/3.1.0/faker.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/rollups/aes.js"
integrity="sha256-/H4YS+7aYb9kJ5OKhFYPUjSJdrtV6AeyJOtTkw6X72o=" crossorigin="anonymous"></script>
<style>
html {
text-align: center;
display: flex;
justify-content: center;
place-items: center;
height: 100vh;
box-sizing: border-box;
background-image: url('https://source.unsplash.com/1600x900/?landscape');
background-repeat: no-repeat;
background-size: cover;
background-color: gray;
}
input {
padding: 10px;
width: 40vw;
text-align: center;
}
* {
font-family: FuturaBT-Medium;
outline: none;
}
img {
max-width: 15vw;
}
div {
background: #fdfdfdab;
padding: 25px;
border-radius: 5px;
backdrop-filter: blur(20px);
border: lightgray solid 1px;
}
h1 {
margin-top: 0;
}
</style>
</head>
<body>
<div>
<a id="url-a">
<h1 id="url">
Keep Silaters Off Your Website!<br>
<h4 id="h4">Use Our Verification Tool</h4>
</h1>
</a>
<input onchange="generateShortURL(this.value)" placeholder="URL To Protect">
</div>
<br>
<div>
Funded by multiple organisations:<br><br>
<span id="orgs">
</span>
</div>
<script defer>
async function generateShortURL(tobeencryptedURL) {
// let data = await fetch("https://api.shrtco.de/v2/shorten?url=https://qrodex.github.io/IHPS/verify?to=" + URL);
// let json = await data.json();
var encryptedURL = CryptoJS.AES.encrypt(tobeencryptedURL, "IHPS")
var IHPSURL = new URL('https://qrodex.github.io/IHPS/verify')
IHPSURL.searchParams.append('to', encryptedURL);
document.getElementById("h4").style.display = "none"
document.getElementById("url").innerText = IHPSURL;
document.getElementById("url-a").href = document.getElementById("url").innerText;
}
let totalOrg = ``
for (let i = 0; i < 5; i++) {
let companyname = faker.company.companyName();
totalOrg = totalOrg + companyname + "<br>"
document.getElementById('orgs').innerHTML = totalOrg;
}
</script>
</body>
</html>