-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.html
160 lines (141 loc) · 12.9 KB
/
template.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<!-- Primary Meta Tags -->
<title>Corona Count</title>
<meta http-equiv="refresh" content="300">
<meta name="title" content="Corona Count">
<meta name="description" content="Let's panic! Counting the number of times the word Corona is mentioned on major news sites.">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://cc.tsak.net/">
<meta property="og:title" content="Corona Count">
<meta property="og:description" content="Let's panic! Counting the number of times the word Corona is mentioned on major news sites.">
<meta property="og:image" content="https://cc.tsak.net/corona.jpg">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://cc.tsak.net/">
<meta property="twitter:title" content="Corona Count">
<meta property="twitter:description" content="Let's panic! Counting the number of times the word Corona is mentioned on major news sites.">
<meta property="twitter:image" content="https://cc.tsak.net/corona.jpg">
<!-- Favicon -->
<link rel="apple-touch-icon" sizes="57x57" href="/favicon/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/favicon/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/favicon/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/favicon/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/favicon/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/favicon/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/favicon/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/favicon/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/favicon/apple-icon-180x180.png">
<link rel="icon" type="image/favicon/png" sizes="192x192" href="/favicon/android-icon-192x192.png">
<link rel="icon" type="image/favicon/png" sizes="32x32" href="/favicon/favicon-32x32.png">
<link rel="icon" type="image/favicon/png" sizes="96x96" href="/favicon/favicon-96x96.png">
<link rel="icon" type="image/favicon/png" sizes="16x16" href="/favicon/favicon-16x16.png">
<link rel="manifest" href="/favicon/manifest.json">
<meta name="msapplication-TileColor" content="#000000">
<meta name="msapplication-TileImage" content="/favicon/ms-icon-144x144.png">
<meta name="theme-color" content="#000000">
<style>
body {
font-family: sans-serif;
font-size: 2em;
}
ul {
list-style: none;
margin: 0;
padding: 0;
}
li {
border: 1px solid red;
margin-bottom: 1em;
}
li:hover {
background: #eeeeee;
}
li a {
text-decoration: none;
color: red;
display: block;
padding: 1em;
}
small {
color: #cccccc;
}
svg {
width: 1em;
height: 1em;
display: inline-block;
filter: invert(80%);
vertical-align: sub;
}
footer {
font-size: small;
border-top: 1px solid black;
margin-top: 1em;
}
a {
color: red;
}
.threat-level {
display: inline-block;
width: 1em;
height: 1em;
vertical-align: top;
}
.down {
color: green;
}
.unchanged {
color: orange;
}
.title {
display: inline-block;
width: 70%;
white-space: nowrap;
overflow: hidden;
vertical-align: sub;
text-overflow: ellipsis;
}
.virus {
width: 1em;
height: 1em;
display: inline-block;
filter: invert(80%);
vertical-align: sub;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' enable-background='new 0 0 26 26'%3E%3Cpath d='M 12.1875 0 C 11.5875 0 11.1875 0.4 11.1875 1 C 11.1875 1.4 11.3875 1.70625 11.6875 1.90625 C 11.8875 2.00625 12.0875 2.2 12.1875 2.5 L 12.1875 3.0625 C 11.416703 3.124444 10.680897 3.241037 9.96875 3.46875 C 9.9501484 3.2834126 10.027885 3.0658654 10.1875 2.90625 C 10.3875 2.70625 10.5125 2.3 10.3125 2 C 10.1125 1.5 9.59375 1.3 9.09375 1.5 L 7.59375 2.09375 C 7.09375 2.29375 6.89375 2.8125 7.09375 3.3125 C 7.19375 3.6125 7.50625 3.80625 7.90625 3.90625 C 8.13125 3.90625 8.29375 3.9703125 8.40625 4.125 C 7.7153522 4.4849968 7.0851067 4.9327054 6.5 5.4375 L 6.09375 5 C 5.99375 4.7 5.99375 4.3875 6.09375 4.1875 C 6.19375 3.7875 6.1125 3.4875 5.8125 3.1875 C 5.4125 2.7875 4.80625 2.7875 4.40625 3.1875 L 3.1875 4.40625 C 2.7875 4.80625 2.7875 5.4125 3.1875 5.8125 C 3.4875 6.1125 3.7875 6.1 4.1875 6 C 4.3875 6 4.70625 5.9875 4.90625 6.1875 L 5.34375 6.59375 C 4.8745392 7.1520803 4.4646905 7.7543236 4.125 8.40625 C 3.9703125 8.2703125 3.90625 8.05625 3.90625 7.90625 C 3.80625 7.50625 3.6125 7.19375 3.3125 7.09375 C 2.8125 6.89375 2.29375 7.09375 2.09375 7.59375 L 1.5 9.09375 C 1.3 9.59375 1.5 10.1125 2 10.3125 C 2.3 10.4125 2.70625 10.3875 2.90625 10.1875 C 3.0658654 10.027885 3.2834126 9.9501484 3.46875 9.96875 C 3.2378432 10.690886 3.0915599 11.436453 3.03125 12.21875 L 2.5 12.1875 C 2.2 12.1875 2.00625 11.9875 1.90625 11.6875 C 1.70625 11.3875 1.4 11.09375 1 11.09375 C 0.4 11.09375 0 11.49375 0 12.09375 L 0 13.8125 C 0 14.4125 0.4 14.8125 1 14.8125 C 1.4 14.8125 1.70625 14.6125 1.90625 14.3125 C 2.00625 14.1125 2.2 13.9125 2.5 13.8125 L 3.0625 13.8125 C 3.124444 14.583297 3.241037 15.319103 3.46875 16.03125 C 3.2834126 16.049852 3.0658654 15.972115 2.90625 15.8125 C 2.70625 15.6125 2.3 15.4875 2 15.6875 C 1.5 15.8875 1.3 16.40625 1.5 16.90625 L 2.09375 18.40625 C 2.29375 18.90625 2.8125 19.10625 3.3125 18.90625 C 3.6125 18.80625 3.80625 18.49375 3.90625 18.09375 C 3.90625 17.86875 3.9703125 17.70625 4.125 17.59375 C 4.4849968 18.284648 4.9327054 18.914893 5.4375 19.5 L 5 19.90625 C 4.7 20.00625 4.3875 20.00625 4.1875 19.90625 C 3.7875 19.80625 3.4875 19.8875 3.1875 20.1875 C 2.7875 20.5875 2.7875 21.19375 3.1875 21.59375 L 4.40625 22.8125 C 4.80625 23.2125 5.4125 23.2125 5.8125 22.8125 C 6.1125 22.5125 6.1 22.2125 6 21.8125 C 6 21.6125 5.9875 21.29375 6.1875 21.09375 L 6.59375 20.65625 C 7.1590879 21.13135 7.7763303 21.532821 8.4375 21.875 C 8.3083968 22.024606 8.07825 22.1015 7.90625 22.1875 C 7.50625 22.1875 7.19375 22.3875 7.09375 22.6875 C 6.89375 23.1875 7.09375 23.70625 7.59375 23.90625 L 9.09375 24.5 C 9.59375 24.7 10.1125 24.5 10.3125 24 C 10.4125 23.7 10.3875 23.29375 10.1875 23.09375 C 10.033402 22.939652 10.039367 22.743848 10.03125 22.5625 C 10.733124 22.781437 11.46069 22.910309 12.21875 22.96875 L 12.1875 23.5 C 12.1875 23.8 11.9875 23.99375 11.6875 24.09375 C 11.3875 24.29375 11.09375 24.6 11.09375 25 C 11.09375 25.6 11.49375 26 12.09375 26 L 13.8125 26 C 14.4125 26 14.8125 25.6 14.8125 25 C 14.8125 24.6 14.6125 24.29375 14.3125 24.09375 C 14.1125 23.99375 13.9125 23.8 13.8125 23.5 L 13.8125 22.9375 C 14.538357 22.879168 15.231883 22.768356 15.90625 22.5625 C 15.883229 22.716066 15.811824 22.875676 15.6875 23 C 15.5875 23.3 15.4875 23.7 15.6875 24 C 15.8875 24.5 16.40625 24.7 16.90625 24.5 L 18.40625 23.90625 C 18.90625 23.70625 19.10625 23.1875 18.90625 22.6875 C 18.80625 22.3875 18.49375 22.19375 18.09375 22.09375 C 17.86875 22.09375 17.70625 22.029688 17.59375 21.875 C 18.245676 21.53531 18.84792 21.125461 19.40625 20.65625 L 19.8125 21.09375 C 20.0125 21.29375 20.00625 21.60625 19.90625 21.90625 C 19.80625 22.20625 19.8875 22.5125 20.1875 22.8125 C 20.5875 23.2125 21.19375 23.2125 21.59375 22.8125 L 22.8125 21.59375 C 23.2125 21.19375 23.2125 20.5875 22.8125 20.1875 C 22.5125 19.8875 22.2125 19.9 21.8125 20 C 21.5125 20.1 21.3 20.10625 21 19.90625 L 20.5625 19.5 C 21.073273 18.907964 21.512619 18.262704 21.875 17.5625 C 21.968467 17.694957 22.028309 17.869118 22.09375 18 C 22.19375 18.5 22.3875 18.80625 22.6875 18.90625 C 23.1875 19.10625 23.70625 18.90625 23.90625 18.40625 L 24.5 16.90625 C 24.7 16.40625 24.5 15.8875 24 15.6875 C 23.7 15.5875 23.29375 15.6125 23.09375 15.8125 C 22.939652 15.966598 22.743848 15.960633 22.5625 15.96875 C 22.781437 15.266876 22.910309 14.53931 22.96875 13.78125 L 23.5 13.8125 C 23.8 13.8125 23.99375 14.0125 24.09375 14.3125 C 24.29375 14.6125 24.6 14.90625 25 14.90625 C 25.6 14.90625 26 14.50625 26 13.90625 L 26 12.1875 C 26 11.5875 25.6 11.1875 25 11.1875 C 24.6 11.1875 24.29375 11.3875 24.09375 11.6875 C 23.99375 11.8875 23.8 12.0875 23.5 12.1875 L 22.9375 12.1875 C 22.875556 11.416703 22.758963 10.680897 22.53125 9.96875 C 22.694662 9.9831123 22.866216 10.053716 23 10.1875 C 23.3 10.3875 23.7 10.5125 24 10.3125 C 24.5 10.1125 24.7 9.59375 24.5 9.09375 L 23.90625 7.59375 C 23.70625 7.09375 23.1875 6.89375 22.6875 7.09375 C 22.3875 7.19375 22.19375 7.50625 22.09375 7.90625 C 22.09375 8.13125 22.029688 8.29375 21.875 8.40625 C 21.515003 7.7153522 21.067295 7.0851067 20.5625 6.5 L 21 6.09375 C 21.3 5.99375 21.6125 5.99375 21.8125 6.09375 C 22.2125 6.19375 22.5125 6.1125 22.8125 5.8125 C 23.2125 5.4125 23.2125 4.80625 22.8125 4.40625 L 21.59375 3.1875 C 21.19375 2.7875 20.5875 2.7875 20.1875 3.1875 C 19.8875 3.4875 19.9 3.7875 20 4.1875 C 20 4.3875 20.0125 4.70625 19.8125 4.90625 L 19.40625 5.34375 C 18.840912 4.8686502 18.22367 4.4671794 17.5625 4.125 C 17.694957 4.0315333 17.869118 3.9716912 18 3.90625 C 18.5 3.80625 18.80625 3.6125 18.90625 3.3125 C 19.10625 2.8125 18.90625 2.29375 18.40625 2.09375 L 16.90625 1.5 C 16.40625 1.3 15.8875 1.5 15.6875 2 C 15.5875 2.3 15.6125 2.70625 15.8125 2.90625 C 15.972115 3.0658654 16.049852 3.2834126 16.03125 3.46875 C 15.309114 3.2378432 14.563547 3.0915599 13.78125 3.03125 L 13.8125 2.5 C 13.8125 2.2 14.0125 2.00625 14.3125 1.90625 C 14.6125 1.70625 14.90625 1.4 14.90625 1 C 14.90625 0.4 14.50625 0 13.90625 0 L 12.1875 0 z M 13 5 C 17.430123 5 21 8.5698774 21 13 C 21 17.430123 17.430123 21 13 21 C 8.5698774 21 5 17.430123 5 13 C 5 8.5698774 8.5698774 5 13 5 z M 13 7 C 12.447715 7 12 7.4477153 12 8 C 12 8.5522847 12.447715 9 13 9 C 13.552285 9 14 8.5522847 14 8 C 14 7.4477153 13.552285 7 13 7 z M 9.5 8.5 C 8.9477153 8.5 8.5 8.9477153 8.5 9.5 C 8.5 10.052285 8.9477153 10.5 9.5 10.5 C 10.052285 10.5 10.5 10.052285 10.5 9.5 C 10.5 8.9477153 10.052285 8.5 9.5 8.5 z M 16.5 8.5 C 15.947715 8.5 15.5 8.9477153 15.5 9.5 C 15.5 10.052285 15.947715 10.5 16.5 10.5 C 17.052285 10.5 17.5 10.052285 17.5 9.5 C 17.5 8.9477153 17.052285 8.5 16.5 8.5 z M 8 12 C 7.4477153 12 7 12.447715 7 13 C 7 13.552285 7.4477153 14 8 14 C 8.5522847 14 9 13.552285 9 13 C 9 12.447715 8.5522847 12 8 12 z M 13 12 C 12.447715 12 12 12.447715 12 13 C 12 13.552285 12.447715 14 13 14 C 13.552285 14 14 13.552285 14 13 C 14 12.447715 13.552285 12 13 12 z M 18 12 C 17.447715 12 17 12.447715 17 13 C 17 13.552285 17.447715 14 18 14 C 18.552285 14 19 13.552285 19 13 C 19 12.447715 18.552285 12 18 12 z M 9.5 15.5 C 8.9477153 15.5 8.5 15.947715 8.5 16.5 C 8.5 17.052285 8.9477153 17.5 9.5 17.5 C 10.052285 17.5 10.5 17.052285 10.5 16.5 C 10.5 15.947715 10.052285 15.5 9.5 15.5 z M 16.5 15.5 C 15.947715 15.5 15.5 15.947715 15.5 16.5 C 15.5 17.052285 15.947715 17.5 16.5 17.5 C 17.052285 17.5 17.5 17.052285 17.5 16.5 C 17.5 15.947715 17.052285 15.5 16.5 15.5 z M 13 17 C 12.447715 17 12 17.447715 12 18 C 12 18.552285 12.447715 19 13 19 C 13.552285 19 14 18.552285 14 18 C 14 17.447715 13.552285 17 13 17 z'/%3E%3C/svg%3E");
}
.novirus {
opacity: .3;
}
</style>
</head>
<body>
<h1>Corona Count</h1>
<p>Let's panic! Counting the number of times <em title="Also Covid-19, SARS-CoV-2">Corona</em> is being mentioned on major news sites.</p>
<ul>
{{range .Sites}}
{{ if gt .Count 0 }}
<li>
<a href="{{ .URL }}" target="_blank" rel="noopener">
{{ if gt .Count .Previous }}<span class="threat-level up" title="Threat level going up">▲</span>{{ end }}
{{ if eq .Count .Previous }}<span class="threat-level unchanged" title="Threat level unchanged">●</span>{{ end }}
{{ if lt .Count .Previous }}<span class="threat-level down" title="Threat level going down">▼</span>{{ end }}
<span class="title">{{ .Name }}</span> <small>{{ .Count }}</small> <span class="virus"></span>
</a>
</li>
{{ end }}
{{else}}
<li><a>Counting... <span class="virus"></span></a>
</li>
{{end}}
</ul>
<footer>
<p>Source code at <a href="https://github.com/tsak/coronacount" target="_blank" rel="noopener">github.com/tsak/coronacount</a></p>
</footer>
</body>
</html>