-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
54 lines (46 loc) · 1.69 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
<!doctype html>
<meta charset=utf8>
<title>TCI — Take your personality test</title>
<script>
var _paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//stats.anonym.dev/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
var currentUrl = location.href;
window.addEventListener('hashchange', function() {
_paq.push(['setReferrerUrl', currentUrl]);
_paq.push(['setCustomUrl', '/' + window.location.hash.substr(2)])
_paq.push(['deleteCustomVariables', 'page']);
_paq.push(['setGenerationTimeMs', 0]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
});
</script>
<script src=https://cdn.jsdelivr.net/gh/polight/browser-compatibility@master/check.js> </script>
<link rel=stylesheet href=/assets/css/main.css>
<body>
<x-app></x-app>
</body>
<script src=/assets/vendors/page.min.js></script>
<script src="/assets/js/utils.js"></script>
<script src="/config.js"></script>
<script>
function api (uri, options = {}) {
return request(`${config.apiUrl}${uri}`, options)
}
function _ (text) {
if (window.trans && window.trans[text]) return window.trans[text]
return text
}
const script = document.createElement('script')
script.src = `dist/index.js?${Math.random()}`
script.type = 'module'
document.head.append(script)
</script>