-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
58 lines (52 loc) · 1.73 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/warp-logo-small.svg" />
<link
rel="stylesheet"
href="https://assets.finn.no/pkg/@warp-ds/fonts/v1/finn-no.css"
/>
<link
rel="stylesheet"
href="https://assets.finn.no/pkg/@warp-ds/css/v1/tokens/finn-no.css"
/>
<link rel=“stylesheet”
href=“https://assets.finn.no/pkg/@warp-ds/css/v1/resets.css” />
<title>Colour Tokens in WARP</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
<div id="app"></div>
<script>
window.addEventListener("load", () => {
const updateGoatCounterSettings = () => {
const path = location.hash ? location.hash.slice(1) : "/"; // Remove the '#' and use as path
const settings = {
path: path,
// Optionally, add other properties like title or referrer if needed
title: document.title,
referrer: document.referrer,
};
const goatCounterScript = document.querySelector(
"script[data-goatcounter]"
);
goatCounterScript.setAttribute(
"data-goatcounter-settings",
JSON.stringify(settings)
);
};
// Update settings on initial load
updateGoatCounterSettings();
// Update settings whenever the hash changes
window.addEventListener("hashchange", updateGoatCounterSettings, false);
});
</script>
<script
data-goatcounter="https://warp.goatcounter.com/count"
async
src="//gc.zgo.at/count.js"
></script>
<script type="module" src="/src/main.js"></script>
</body>
</html>