-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (48 loc) · 1.79 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
<!doctype html>
<meta charset=utf8>
<!-- Matomo -->
<script type="text/javascript">
var _paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//matomo.collectivite.org/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '3']);
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>
<!-- End Matomo Code -->
<!-- Log script -->
<script src=https://cdn.jsdelivr.net/gh/polight/browser-compatibility@master/check.js> </script>
<link rel=stylesheet href=/assets/css/main.css>
<script src=/assets/vendors/page.min.js></script>
<script src="https://checkout.stripe.com/v2/checkout.js"></script>
<script src="/assets/js/utils.js?20190820"></script>
<script src="/config.js"></script>
<body>
<x-app></x-app>
<x-toast message=""></x-toast>
</body>
<script>
function api (uri, options = {}) {
const token = localStorage.getItem('token')
if (token) options.auth = token
return request(`${config.api_url}${uri}`, options)
}
const bricks = document.createElement('script')
bricks.src = `dist/index.js?${Math.random()}`
bricks.type = 'module'
document.head.append(bricks)
</script>