-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathredirect.html
59 lines (51 loc) · 2.02 KB
/
redirect.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Enfusion Redirect</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://rsms.me/inter/inter.css" />
<script>
tailwind.config = {
theme: {
extend: {
fontFamily: {
sans: ['Inter var'],
}
}
}
}
</script>
</head>
<body class="bg-gray-900 text-center mt-24 text-gray-300 p-5">
<p class="text-xl">Opening <span class="text-sky-600 font-bold">Enfusion Workbench</span> now..</p>
<p class="text-sm text-gray-400">Or click below. You may close this window after Workbench has opened.</p>
<a class="mt-5 inline-block font-mono font-bold text-xl text-sky-500 p-3 px-6 bg-sky-600/10 rounded shadow shadow-lg break-all transition hover:bg-sky-600/20 focus:ring-2 outline-0 focus:ring-sky-600/40" id="wb-uri" target="_self" href="#">
URI
</a>
<script>
window.onload = function () {
const params = new Proxy(new URLSearchParams(window.location.search), {
get: (searchParams, prop) => searchParams.get(prop),
});
let to = params.to;
if (!to) return;
if (!to.startsWith("enfusion://"))
{
to = "enfusion://" + to;
}
const linkElement = document.getElementById("wb-uri");
linkElement.href = to;
linkElement.innerText = to;
setTimeout(function() {
linkElement.click();
//window.location.href = to;
//window.open(to, '_blank', 'location=yes,height=570,width=520,scrollbars=yes,status=yes');
//window.location.replace(to);
}, 500);
}
</script>
</body>
</html>