-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
50 lines (50 loc) · 1.8 KB
/
Copy pathindex.html
File metadata and controls
50 lines (50 loc) · 1.8 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Carleton CS Course Graph</title>
<meta
name="description"
content="Explore Carleton CS course prerequisites and plan your degree term by term."
/>
<meta name="theme-color" content="#ef1a1a" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Carleton CS Course Graph" />
<meta
property="og:description"
content="Explore Carleton CS course prerequisites and plan your degree term by term."
/>
<!-- TODO: replace with the real deployed URL — must be absolute (incl. https://) -->
<meta property="og:url" content="https://TODO.example.com/" />
<!-- TODO: create a preview image (e.g. public/preview.png) and use its absolute deployed URL -->
<meta property="og:image" content="https://TODO.example.com/preview.png" />
<script>
// Decode the ?/ redirect injected by 404.html (GitHub Pages SPA trick).
// Runs before React boots so BrowserRouter sees the correct pathname.
(function (l) {
if (l.search[1] === '/') {
var decoded = l.search
.slice(1)
.split('&')
.map(function (s) {
return s.replace(/~and~/g, '&');
});
window.history.replaceState(
null,
null,
l.pathname.slice(0, -1) +
decoded[0] +
(decoded[1] ? '?' + decoded[1] : '') +
l.hash,
);
}
})(window.location);
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>