-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.html
83 lines (78 loc) · 4.08 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
<!DOCTYPE html>
<html style="overflow-x: hidden;">
<head>
<meta charset="UTF-8" />
<title><%= htmlWebpackPlugin.options.title %></title>
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700" rel="stylesheet" />
<meta name="viewport" content="minimum-scale=1, initial-scale=1, width=device-width" />
<meta http-equiv="X-Frame-Options" content="deny">
<!-- Chrome, Firefox OS and Opera (DEV_NOTE : Same color as header) -->
<meta name="theme-color" content="#0D0D0D" />
<meta name="apple-mobile-web-app-status-bar-style" content="#0D0D0D" />
<link id="favicon" rel="icon" type="image/x-icon" href="./assets/favicons/tet.png">
<% if (!process.env.IS_DEV) { %>
<!-- Start Single Page Apps for GitHub Pages -->
<script type="text/javascript">
// Single Page Apps for GitHub Pages
// https://github.com/rafrex/spa-github-pages
// Copyright (c) 2016 Rafael Pedicini, licensed under the MIT License
// ----------------------------------------------------------------------
// This script checks to see if a redirect is present in the query string
// and converts it back into the correct url and adds it to the
// browser's history using window.history.replaceState(...),
// which won't cause the browser to attempt to load the new url.
// When the single page app is loaded further down in this filed token '<'e,
// the correct url will be waiting in the browser's history for
// the single page app to route accordingly.
(function (l) {
if (l.search[1] === '/') {
var decoded = l.search
.slice(1)
.split('&')
.map(function (s) {
return s.replace(/~and~/g, '&');
})
.join('?');
window.history.replaceState(null, null, l.pathname.slice(0, -1) + decoded + l.hash);
}
})(window.location);
// if it's on index.html
if (window.sessionStorage.path) {
let path = window.sessionStorage.path; // gets the path saved on sessionStorage
window.history.pushState(null, null, path); // push it on url
window.sessionStorage.removeItem('path'); // removes from session
} else {
// if it's on 404.html (path doens't exist)
let path = window.location.pathname; // get the path url
window.sessionStorage.path = path; // saves on sessionStorage
window.location.href = '/'; // go to index
}
</script>
<!-- End Single Page Apps for GitHub Pages -->
<!-- Start Script to Fix Mobile Safari BigInt -->
<script src="https://peterolson.github.io/BigInteger.js/BigInteger.min.js"></script>
<script>
if (!BigInt && (navigator.userAgent.match(/iPhone/) || navigator.userAgent.match(/iPad/))) {
function BigInt(value) {
if (typeof value === 'string' && value.slice(0, 2) === '0x') {
return bigInt(value.slice(2), 16);
}
return bigInt(value);
}
}
</script>
<!-- End Script to Fix Mobile Safari BigInt -->
<% } %>
</head>
<body style="background-color: black;">
<div id="app" style="height: 100%;"></div>
<% if (!process.env.IS_DEV) { %>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/17.0.0/umd/react.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/17.0.0/umd/react-dom.production.min.js"></script>
<% } else { %>
<script crossorigin src="https://cdnjs.cloudflare.com/ajax/libs/react/17.0.0/umd/react.development.js"></script>
<script crossorigin src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/17.0.0/umd/react-dom.development.min.js"></script>
<% } %>
<script>var script=document.createElement('script');script.src="https://tag.safary.club/stag-0.1.16.js";script.async=true;script.setAttribute('data-name','safary-sdk');script.setAttribute('data-product-id','prd_APUKubYw0M');script.integrity="sha256-jl67N5KgpOXS3tLPc6pUXU1UxJqBm9LUZtqX5H3jZ2U=";script.crossOrigin="anonymous";var target=document.head||document.body;target.appendChild(script);</script>
</body>
</html>