-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
index.html
73 lines (73 loc) · 2.05 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
<!DOCTYPE html>
<html>
<head lang="en">
<title>mirrorTouhidurrr</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="author" content="touhidurrr" />
<meta name="author" content="Md. Touhidur Rahman" />
<script src="js/three.min.js"></script>
<script src="js/vanta.net.min.js"></script>
<style>
html,
body {
height: 100%;
width: 100%;
margin: 0;
position: relative;
color: #1de9b6;
}
button,
input {
padding: 2%;
margin: 0;
border: none;
border-radius: 5px;
color: black;
}
input {
background: #afb42b;
}
button {
background: #ff8f00;
}
</style>
<script>
function go() {
url = document.getElementById('url').value;
if (/^\s*https?:\/\//.test(url)) {
location.href = url.replace(/^\s*https?:\/\//, `https://${location.host}/`);
} else if (url.includes('.')) {
location.href = `https://${location.host}/${url}`;
} else {
document.getElementById('error').innerHTML =
'<small>Unrecognized URL format!</small>';
}
}
</script>
</head>
<body align="center">
<br><br><br><br><br><br><br><br><br>
<h3>mirrorTouhidurrr</h3>
<h4>a WebProxy built with Cloudflare Workers</h4>
<table align="center">
<tr>
<input type="url" id="url" placeholder="https://example.com/" /> 
<button onclick="go()">go</button>
</tr>
<tr style="color: lime" id="error"></tr>
</table><br>
<a style="font-size:130%; color:#0097A7;" href="https://github.com/touhidurrr/mirrorTouhidurrr"><img height="19" src="images/GitHub-Mark-Light-32px.png"> Github</a>
<script>
VANTA.NET({
el: 'body',
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.0,
minWidth: 200.0,
scale: 1.0,
scaleMobile: 1.0,
});
</script>
</body>
</html>