-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathredirect.html
More file actions
41 lines (38 loc) · 2.09 KB
/
redirect.html
File metadata and controls
41 lines (38 loc) · 2.09 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
<!DOCTYPE HTML>
<html>
<head>
<title>
Système explorer
</title>
</head>
<body style="background: rgb(7,2,94);background: radial-gradient(circle, rgba(7,2,94,1) 0%, rgba(97,121,9,1) 39%, rgba(255,90,0,1) 100%);">
<center>
<h1>Système explorer</h1>
<input type="text" placeholder="Entrez le chemin/URL" id="in">
<button type="button" onclick="redirect();">Go</button></center>
<script src="https://code.jquery.com/jquery-3.6.0.min.js" type="text/javascript"></script>
<script type="text/javascript">
function redirect(){
var input = document.getElementById("in").value;
var redir = input;
if(input[1]=="t"){
redir = input;
}else {
var rep = false;
$.get("https://superatraction.github.io/"+input,headers: { 'Access-Control-Allow-Origin': 'https://superatraction.github.io/' }, function(response){
rep=true;
document.write(response);
document.write("<div style=\"color:rgb(255,255,255);background: rgb(7,2,94);background: radial-gradient(circle, rgba(7,2,94,1) 0%, rgba(97,121,9,1) 39%, rgba(255,90,0,1) 100%);\">Pour une utilisation optimale, cliquez <a href=\"https://superatraction.github.io/"+input+"\">ici</a></div>");
});
if(rep==false){
redir = "https://"+input;
}}
$.get(redir, headers: { 'Access-Control-Allow-Origin': 'https://superatraction.github.io/' }, function(response){
document.write("<div style=\"color:rgb(255,255,255);background: rgb(7,2,94);background: radial-gradient(circle, rgba(7,2,94,1) 0%, rgba(97,121,9,1) 39%, rgba(255,90,0,1) 100%);\">Pour une utilisation optimale, cliquez <a href=\""+redir+"\">ici</a></div>");
document.write(response);
document.write("<div style=\"color:rgb(255,255,255);background: rgb(7,2,94);background: radial-gradient(circle, rgba(7,2,94,1) 0%, rgba(97,121,9,1) 39%, rgba(255,90,0,1) 100%);\">Pour une utilisation optimale, cliquez <a href=\""+redir+"\">ici</a></div>");
})
}
</script>
</body>
</html>