-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
59 lines (52 loc) · 1.45 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ALTCHA Analytics Script</title>
</head>
<body>
<div id="app">
<div>
Links:
<ul>
<li><a href="/">/</a></li>
<li><a href="/page1">/page1</a></li>
<li><a href="/page2">/page2</a></li>
</ul>
</div>
<div>
PushState:
<ul>
<li><a href="" onclick="history.pushState({}, '', '/page1');return false">/page1</a></li>
<li><a href="" onclick="history.pushState({}, '', '/page2');return false">/page2</a></li>
</ul>
</div>
<div>
Hash:
<ul>
<li><a href="#page1">#page1</a></li>
<li><a href="#page2">#page2</a></li>
</ul>
</div>
<div>
Outbound:
<ul>
<li><a href="https://news.ycombinator.com">news.ycombinator.com</a></li>
<li><a href="" data-link="https://news.ycombinator.com" onclick="location.href = 'https://news.ycombinator.com';return false">news.ycombinator.com (JS)</a></li>
</ul>
</div>
</div>
<style>
body {
font-family: sans-serif;
}
#app {
display: flex;
flex-direction: column;
gap: 1rem;
}
</style>
<script type="module" src="/src/main.ts" data-project="xx" data-debug="true"></script>
</body>
</html>