-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (45 loc) · 1.28 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><html lang="ja"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width"><link rel="icon" href="data:">
<title>高専カンファレンスオープンデータ</title>
</head><body>
<h1>高専カンファレンスオープンデータ</h1>
<div class=times>開催回数<span id=spantimes>-</span>回</div>
<script type="module" src="https://code4sabae.github.io/js/csv-viewer.js"></script>
<csv-viewer src="./kosenconf.csv"></csv-viewer>
<hr>
DATA: <a href=https://kosenconf.jp/>高専カンファレンス Wiki</a> → <a href=kosenconf.csv>kosenconf.csv</a><br>
<a href=https://github.com/codeforkosen/kosenconf-opendata/>src on GitHub</a><br>
<style>
body {
font-family: sans-serif;
}
h1 {
text-align: center;
}
.times {
text-align: center;
font-size: 300%;
margin: 1em 1em;
}
csv-viewer > div {
overflow: scroll;
}
csv-viewer th, csv-viewer td {
font-size: 90%;
white-space: nowrap;
border: 1px solid black;
padding: .1em .2em;
}
table {
border-collapse: collapse;
}
a {
color: gray !important;
}
</style>
<script type="module">
import { CSV } from "https://js.sabae.cc/CSV.js";
const list = await CSV.fetchJSON("./kosenconf.csv");
spantimes.textContent = list.filter(i => i.中止フラグ == "0").length;
</script>
</body>
</html>