forked from dannvix/COSCUP_Agenda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
69 lines (61 loc) · 2.35 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
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>COSCUP %COSCUP_AGENDA_YEAR%</title>
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
<meta name="color-scheme" content="dark light">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<meta name="apple-mobile-web-app-title" content="COSCUP %COSCUP_AGENDA_YEAR%">
<link rel="shortcut icon" href="/coscup.jpg">
<link rel="apple-touch-icon" href="/coscup.jpg">
<link rel="apple-touch-icon" sizes="152x152" href="/coscup.jpg">
<link rel="apple-touch-icon" sizes="180x180" href="/coscup.jpg">
<link rel="apple-touch-icon" sizes="167x167" href="/coscup.jpg">
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.4/moment-with-locales.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.css">
<link rel="manifest" type="application/manifest+json" href="/manifest.webmanifest">
<link rel="stylesheet" href="/src/style.css">
</head>
<body>
<header>
<h1>COSCUP %COSCUP_AGENDA_YEAR% ▸ 下一場聽什麼?</h1>
</header>
<div id="app"></div>
<footer>
<div>
<a href="https://github.com/dannvix/COSCUP_Agenda" target="_blank">按這裡到 GitHub 幫我們按個星 ⭐️</a>
|
<a onclick="purgeOfflineData()">清理離線資料 🗑</a>
<div style="margin-top:4pt;color:hsl(0, 0%, 80%);font-family:monospace;">
<a style="color: hsl(240, 90%, 64%);" href="https://github.com/qbane/COSCUP_Agenda" target="_blank">v20240729r1</a> fork of @qbane
</div>
</div>
</footer>
<script>
try {
function __set_theme__(theme) {
const hcl = document.querySelector('html').classList
hcl.remove('light', 'dark')
hcl.add(theme);
}
let theme;
if ('theme' in localStorage) {
theme = localStorage.theme;
} else {
theme = window.matchMedia('(prefers-color-scheme: dark)').matches
? 'dark'
: 'light';
}
__set_theme__(theme);
} catch (e) {
console.error(e);
}
</script>
<script type="module" src="/src/script.js"></script>
</body>
</html>