index.html 1.75 KB
Newer Older
1
2
<html>
    <head>
Michał Woźniak's avatar
fix    
Michał Woźniak committed
3
4
        <script src="./wtf_wikipedia-client.min.js"></script>
        <script src="./covid.js"></script>
5
6
    </head>
    <body>
7
        <h1>Scary COVID-19 data</h1>
Michał Woźniak's avatar
Michał Woźniak committed
8
        <p><strong>Disclaimer:</strong> this is all back-of-the-napkin math using data from Wikipedia. Take with a grain (or preferably, a spoonfull) of salt. Check your own sources; some great resources: <a href="http://covid.hi.is/">University of Iceland's COVID data model</a> (and its <a href="https://github.com/bgautijonsson/covid19/">sources</a>).</p>
9
10
11
12
13
14
15
16
17
18
        <div id="covid-stats">
            <h2>Global stats</h2>
            <div id="confirmed"><span class="label">Confirmed cases:</span> <span class="value"></span></div>
            <div id="deaths"><span class="label">Deaths:</span> <span class="value"></span></div>
            <div id="recovered"><span class="label">Recovered:</span> <span class="value"></span></div>
            <div id="mortality"><span class="label">Mortality rate:</span> <span class="value"></span></div>
            <p id="sources">Data sourced directly <a href="https://en.wikipedia.org/wiki/2019%E2%80%9320_coronavirus_pandemic">from Wikipedia</a>.</p>
        </div>
        <hr/>
        <div>
19
20
            <label for="sites">Choose a site:</label>
            <select id="sites" tabindex="1">
21
22
23
                <option value="select one">(select one)</option>
            </select>
        </div>
24
        <div id="site-data"></div>
25
26
        <hr/>
        <footer>
27
            <p><a href="https://git.rys.io/rysiek/covid/">Code</a>. License: <a href="./LICENSE">Affero GPL</a>; uses <a href="https://github.com/spencermountain/wtf_wikipedia"><code>wtf_wikipedia</code></a>, licensed under the MIT license. Data from Wikipedia.</p>
28
        </footer>
29
30
    </body>
</html>