Display Live COVID-19 Data By Country - covid-tracker.js
File Size: | 6.45 KB |
---|---|
Views Total: | 492 |
Last Update: | |
Publish Date: | |
Official Website: | Go to website |
License: | MIT |
Just another jQuery based Coronavirus Disease 2019 tracker (~1.5kb) that fetches live COVID-19 data from coronavirus-tracker-api and shows confirmed cases & deaths by country on the webpage.
How to use it:
1. Download & unzip the plugin and then load the minified version of the jQuery covid-tracker.js plugin after loading the latest jQuery JavaScript library.
<script src="/path/to/cdn/jquery.min.js"></script> <script src="/path/to/dist/covid-tracker.min.js"></script>
2. Show latest cases and deadths by country using the data-covid-tracker-country
attributes:
<h4>Cases in the U.S. </h4> <span class="covid-tracker-country covid-tracker-cases" data-covid-tracker-country="US"> </span> <h4>Victims in the U.S.</h4> <span class="covid-tracker-country covid-tracker-deaths" data-covid-tracker-country="US"> </span>
3. Or show global cases as follows.
<h4>Coronavirus Cases</h4> <span class="covid-tracker-global covid-tracker-cases"></span> <h4>Coronavirus Deaths:</h4> <span class="covid-tracker-global covid-tracker-deaths"></span>
More COVID-19 Resources:
- Best Coronavirus Disease (COVID-19) Plugins For WordPress
- Best Free Coronavirus Disease (COVID-19) Design Resources
- Open Source COVID-19 (Coronavirus) Resources For Web
- COVID-19 Map Of Cases And Deaths Around The World - COVID-19 Dashboard
- Display Covid-19 Data From Around The World By Country
- Show The Latest COVID-19 Stats Using JavaScript
- COVID-19 (Coronavirus Disease) Spreading Simulation Tool In JavaScript
- Coronavirus Spreading Simulator In JavaScript
- SVG Based COVID-19 Data Badges
This awesome jQuery plugin is developed by Wtower. For more Advanced Usages, please check the demo page or visit the official website.