index.html 1.5 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
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
        <h1>Scary COVID-19 data</h1>
        <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.</p>
        <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>
            <label for="countries">Choose a country:</label>
            <select id="countries">
                <option value="select one">(select one)</option>
            </select>
        </div>
        <hr/>
        <footer>
            <p>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>
        </footer>
28
29
    </body>
</html>