Skip to content

Commit

Permalink
till version 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
roshangrewal committed Jul 26, 2020
1 parent 70f5450 commit 2f9df06
Show file tree
Hide file tree
Showing 10 changed files with 117 additions and 1 deletion.
20 changes: 20 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
MIT License

Copyright (c) 2020 Roshan Grewal

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
# covid-19-india-tracker-chrome-extension
# [covid-19-india-tracker-chrome-extension](https://chrome.google.com/webstore/detail/covid-19-india-tracker/dgodpadpkgoobidmbpcfblafohcnkdhj)

Chrome extension link: https://chrome.google.com/webstore/detail/covid-19-india-tracker/dgodpadpkgoobidmbpcfblafohcnkdhj

![Old commits](https://github.com/roshangrewal/browser-extension/commits/master/covid-tracker)

## OPEN for PULL requests
Binary file added corona-128px.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added corona-19px.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extension-view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/in.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "Covid-19 India Tracker",
"description" : "To GEt Novel Coronavirus-19 (nCovid-19) Updates",
"version": "1.0.4",
"manifest_version": 2,
"icons": {"128": "corona-128px.jpg"},
"browser_action" : {
"default_icon": "corona-19px.jpg",
"default_title": "Covid-19",
"default_popup": "popup.html"
},
"permissions": ["activeTab"]
}
64 changes: 64 additions & 0 deletions popup.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Covid-19 Title</title>

<style>
html, body {
font-family: 'Open Sans', sans-serif;
font-size: 14px;
margin: 0;
min-height: 180px;
padding: 0;
width: 290px;
}
body {
position: relative;
/* background: url(img/bg.jpg) no-repeat center; */
background-size: cover;
/* color: #ffffff; */
background-color: #f0f0f0;

}
/* img {
width: 50px;
height: 50px;
border-radius: 50px;
} */
p {
border-top: 1px solid;
margin: 0;
padding: 10px;
font-size: 20px;
font-weight: 500;
}
.top-header {
padding: 0 20px 20px;
}
p#totalDeaths {
background-color: #e58a8a;
color: #ffffff;
}
</style>

</head>
<body>
<div class="top-header">
<h2>Covid-19-Tracker | Live</h2>
<img src='img/in.png' alt="National Flag">
</div>
<p id="totalCases">Total Cases: </p>

<p id="activeCases">Active Cases: </p>

<p id="todayCases">Today's Cases: </p>

<p id="tests">Total Tests: </p>

<p id="totalDeaths">ToTal Deaths: </p>

<script defer src="popup.js"></script>
</body>
</html>
13 changes: 13 additions & 0 deletions popup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
fetch('https://corona.lmao.ninja/v2/countries/India')
.then(response=>{
return response.json()
})
.then(data =>{
console.log(data);

document.getElementById('totalCases').textContent += data.cases;
document.getElementById('activeCases').textContent += data.active;
document.getElementById('todayCases').textContent += data.todayCases;
document.getElementById('tests').textContent += data.tests;
document.getElementById('totalDeaths').textContent += data.deaths;
})
Binary file added screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2f9df06

Please sign in to comment.