Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the country location pin and some country-name fixed #116

Open
wants to merge 63 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
385df4c
Update requirements.txt
Noboomta Nov 23, 2020
2d4938b
add local host
Noboomta Nov 23, 2020
b7b21bf
add heroku app to local host
Noboomta Nov 23, 2020
cda4c5d
change path of picture
Noboomta Nov 23, 2020
d2b1044
import django heroku
Noboomta Nov 23, 2020
5af0280
Merge branch 'master' into master
Noboomta Nov 23, 2020
62b4cbc
initial commit
Noboomta Nov 24, 2020
8c6f7b2
Merge pull request #1 from lisbono2001/master
Noboomta Nov 29, 2020
1f4bc87
add req
Noboomta Nov 29, 2020
90feed5
add req
Noboomta Nov 29, 2020
b29d2b6
remove decouple version
Noboomta Nov 29, 2020
45308c4
del decouple
Noboomta Nov 29, 2020
4da5675
Merge branch 'master' into master
Noboomta Nov 29, 2020
3fe524f
Merge pull request #3 from lisbono2001/master
Noboomta Nov 29, 2020
5b3cdc4
Merge branch 'master' into map
Noboomta Dec 1, 2020
b0b2531
Merge pull request #2 from Noboomta/map
Noboomta Dec 1, 2020
9dffcd8
fix ip method
bhatara007 Dec 2, 2020
fd40498
fix CI
bhatara007 Dec 2, 2020
5609cba
Merge pull request #4 from lisbono2001/user-data
Noboomta Dec 3, 2020
dfb1569
bug fixed
bhatara007 Dec 3, 2020
3997850
bug fixed
bhatara007 Dec 3, 2020
977555b
Merge branch 'master' into user-data
Noboomta Dec 3, 2020
b5e07ba
Merge pull request #5 from lisbono2001/user-data
Noboomta Dec 3, 2020
9be8acf
Merge pull request #6 from lisbono2001/master
Noboomta Dec 4, 2020
23349e0
Update settings.py
Noboomta Dec 4, 2020
22b89c7
Revert "merge"
Noboomta Dec 4, 2020
3df02ad
Merge pull request #7 from Noboomta/revert-6-master
Noboomta Dec 4, 2020
6502f3e
red catches
Noboomta Dec 4, 2020
fd94f5f
Merge pull request #8 from lisbono2001/test-remove-object
Noboomta Dec 16, 2020
360f499
Merge pull request #9 from lisbono2001/master
Noboomta Dec 16, 2020
6cb524a
Update settings.py
Noboomta Dec 16, 2020
015d405
Merge branch 'master' into master
Noboomta Dec 16, 2020
9e4e4c0
Merge pull request #10 from lisbono2001/master
Noboomta Dec 16, 2020
ef7b35b
Update settings.py
Noboomta Dec 16, 2020
73d0fff
Update views.py
Noboomta Dec 16, 2020
fcc78f6
Update views.py
Noboomta Dec 16, 2020
b34ee18
Update views.py
Noboomta Dec 16, 2020
97d238e
Update views.py
Noboomta Dec 16, 2020
2aa1989
Update views.py
Noboomta Dec 16, 2020
4807418
Update sheets.py
Noboomta Dec 16, 2020
415d312
Update sheets.py
Noboomta Dec 16, 2020
7f02799
Update sheets.py
Noboomta Dec 16, 2020
3b96d75
Update views.py
Noboomta Dec 16, 2020
a3ba094
Update sheets.py
Noboomta Dec 16, 2020
afa3511
Update views.py
Noboomta Dec 16, 2020
ad4192b
Create traffic.html
Noboomta Dec 16, 2020
6a1d1e1
Update settings.py
Noboomta Dec 17, 2020
a9742de
Update th_map.html
Noboomta Dec 17, 2020
2d024d5
japna
Noboomta Dec 17, 2020
dab70ca
japna
Noboomta Dec 17, 2020
52a7144
add id
Noboomta Dec 17, 2020
5816613
add longtitude&latitude
Noboomta Dec 17, 2020
36af23e
fix the short name of country
Noboomta Dec 17, 2020
d745e3d
add pin
Noboomta Dec 17, 2020
d57bc23
fixed the Venezuala
Noboomta Dec 17, 2020
4b4bbd8
fixed the Bolivia Congo
Noboomta Dec 17, 2020
6bb8fb7
fixed the Czech and some country
Noboomta Dec 17, 2020
64bcd1b
fixed the Iran
Noboomta Dec 17, 2020
54b321c
Merge branch 'master' into master
Noboomta Dec 24, 2020
c8b9189
Update README.md
Noboomta Jan 29, 2021
c438e4b
Remove shits
lisbono2001 Nov 21, 2021
93e2d38
Merge branch 'master' into covidTrackerReborn
Noboomta Nov 22, 2021
3d99c4c
Merge pull request #12 from ThomasInKU/covidTrackerReborn
Noboomta Nov 22, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"workbench.colorCustomizations": {
"activityBar.background": "#253118",
"titleBar.activeBackground": "#344521",
"titleBar.activeForeground": "#F9FBF7"
}
}
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Covid19-Tracker
[![Build Status](https://travis-ci.com/lisbono2001/Covid19-Tracker.svg?branch=master)](https://travis-ci.com/lisbono2001/Covid19-Tracker)
[![codecov](https://codecov.io/gh/lisbono2001/Covid19-Tracker/branch/master/graph/badge.svg)](https://codecov.io/gh/lisbono2001/Covid19-Tracker)
<a href="https://github.com/lisbono2001/Covid19-Tracker/issues">
<img alt="Issues" src="https://img.shields.io/github/issues/lisbono2001/Covid19-Tracker?color=0088ff" />
</a>
<a href="https://github.com/lisbono2001/github-readme-stats/pulls">
<img alt="GitHub pull requests" src="https://img.shields.io/github/issues-pr/lisbono2001/Covid19-Tracker?color=0088ff" />
</a>
## URL of the web application
[See our URL of the web application](https://covidtracker-isp.herokuapp.com/)

Expand Down Expand Up @@ -93,7 +99,6 @@ Every pull requests are welcome. Please open an issue first to discuss what you
* [Google Doc of CovidTracker Bot](https://docs.google.com/document/d/1yZ44ohLjBxY3xdxLnVfxUchmPmGIvRqF8OUgX0xgOpg/edit?usp=sharing)
* [Code Review Checklist](https://github.com/lisbono2001/Covid19-Tracker/wiki/Code-Review-Checklist)
* [Code Review Procedure](https://github.com/lisbono2001/Covid19-Tracker/wiki/Code-Review-Procedure)
* [Web link](https://covidtracker-isp.herokuapp.com/)
For deeper detail, be sure to check out [the wiki documentation](https://github.com/lisbono2001/Covid19-Tracker/wiki).

### License
Expand Down
2 changes: 1 addition & 1 deletion covid_web/sheets.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def add_country(self, country):
status = False
row = self.find_username()
col = self.next_available_col(row)
if self.sheet.row_values(row).__contains__(country):
if self.sheet.row_values(row).__contains__(country): # already pinned
return status
if col < 8:
self.sheet.update_cell(row, col, country)
Expand Down
1 change: 1 addition & 0 deletions covid_web/templates/country_location.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"Albania": [41, 20], "Algeria": [28, 3], "American Samoa": [-14.3333, -170], "Andorra": [42.5, 1.6], "Angola": [-12.5, 18.5], "Anguilla": [18.25, -63.1667], "Antarctica": [-90, 0], "Antigua and Barbuda": [17.05, -61.8], "Argentina": [-34, -64], "Armenia": [40, 45], "Aruba": [12.5, -69.9667], "Australia": [-27, 133], "Austria": [47.3333, 13.3333], "Azerbaijan": [40.5, 47.5], "Bahamas": [24.25, -76], "Bahrain": [26, 50.55], "Bangladesh": [24, 90], "Barbados": [13.1667, -59.5333], "Belarus": [53, 28], "Belgium": [50.8333, 4], "Belize": [17.25, -88.75], "Benin": [9.5, 2.25], "Bermuda": [32.3333, -64.75], "Bhutan": [27.5, 90.5], "Bolivia, Plurinational State of": [-17, -65], "Bosnia and Herzegovina": [44, 18], "Botswana": [-22, 24], "Bouvet Island": [-54.4333, 3.4], "Brazil": [-10, -55], "British Indian Ocean Territory": [-6, 71.5], "Brunei Darussalam": [4.5, 114.6667], "Bulgaria": [43, 25], "Burkina Faso": [13, -2], "Burundi": [-3.5, 30], "Cambodia": [13, 105], "Cameroon": [6, 12], "Canada": [60, -95], "Cape Verde": [16, -24], "Cayman Islands": [19.5, -80.5], "Central African Republic": [7, 21], "Chad": [15, 19], "Chile": [-30, -71], "China": [35, 105], "Christmas Island": [-10.5, 105.6667], "Cocos (Keeling) Islands": [-12.5, 96.8333], "Colombia": [4, -72], "Comoros": [-12.1667, 44.25], "Congo": [-1, 15], "Congo, the Democratic Republic of the": [0, 25], "Cook Islands": [-21.2333, -159.7667], "Costa Rica": [10, -84], "C\u00c3\u00b4te d'Ivoire": [8, -5], "Croatia": [45.1667, 15.5], "Cuba": [21.5, -80], "Cyprus": [35, 33], "Czech Republic": [49.75, 15.5], "Denmark": [56, 10], "Djibouti": [11.5, 43], "Dominica": [15.4167, -61.3333], "Dominican Republic": [19, -70.6667], "Ecuador": [-2, -77.5], "Egypt": [27, 30], "El Salvador": [13.8333, -88.9167], "Equatorial Guinea": [2, 10], "Eritrea": [15, 39], "Estonia": [59, 26], "Ethiopia": [8, 38], "Falkland Islands (Malvinas)": [-51.75, -59], "Faroe Islands": [62, -7], "Fiji": [-18, 175], "Finland": [64, 26], "France": [46, 2], "French Guiana": [4, -53], "French Polynesia": [-15, -140], "French Southern Territories": [-43, 67], "Gabon": [-1, 11.75], "Gambia": [13.4667, -16.5667], "Georgia": [42, 43.5], "Germany": [51, 9], "Ghana": [8, -2], "Gibraltar": [36.1833, -5.3667], "Greece": [39, 22], "Greenland": [72, -40], "Grenada": [12.1167, -61.6667], "Guadeloupe": [16.25, -61.5833], "Guam": [13.4667, 144.7833], "Guatemala": [15.5, -90.25], "Guernsey": [49.5, -2.56], "Guinea": [11, -10], "Guinea-Bissau": [12, -15], "Guyana": [5, -59], "Haiti": [19, -72.4167], "Heard Island and McDonald Islands": [-53.1, 72.5167], "Holy See (Vatican City State)": [41.9, 12.45], "Honduras": [15, -86.5], "Hong Kong": [22.25, 114.1667], "Hungary": [47, 20], "Iceland": [65, -18], "India": [20, 77], "Indonesia": [-5, 120], "Iran, Islamic Republic of": [32, 53], "Iraq": [33, 44], "Ireland": [53, -8], "Isle of Man": [54.23, -4.55], "Israel": [31.5, 34.75], "Italy": [42.8333, 12.8333], "Jamaica": [18.25, -77.5], "Japan": [36, 138], "Jersey": [49.21, -2.13], "Jordan": [31, 36], "Kazakhstan": [48, 68], "Kenya": [1, 38], "Kiribati": [1.4167, 173], "Korea, Democratic People's Republic of": [40, 127], "Korea, Republic of": [37, 127.5], "Kuwait": [29.3375, 47.6581], "Kyrgyzstan": [41, 75], "Lao People's Democratic Republic": [18, 105], "Latvia": [57, 25], "Lebanon": [33.8333, 35.8333], "Lesotho": [-29.5, 28.5], "Liberia": [6.5, -9.5], "Libyan Arab Jamahiriya": [25, 17], "Liechtenstein": [47.1667, 9.5333], "Lithuania": [56, 24], "Luxembourg": [49.75, 6.1667], "Macao": [22.1667, 113.55], "Macedonia, the former Yugoslav Republic of": [41.8333, 22], "Madagascar": [-20, 47], "Malawi": [-13.5, 34], "Malaysia": [2.5, 112.5], "Maldives": [3.25, 73], "Mali": [17, -4], "Malta": [35.8333, 14.5833], "Marshall Islands": [9, 168], "Martinique": [14.6667, -61], "Mauritania": [20, -12], "Mauritius": [-20.2833, 57.55], "Mayotte": [-12.8333, 45.1667], "Mexico": [23, -102], "Micronesia, Federated States of": [6.9167, 158.25], "Moldova, Republic of": [47, 29], "Monaco": [43.7333, 7.4], "Mongolia": [46, 105], "Montenegro": [42, 19], "Montserrat": [16.75, -62.2], "Morocco": [32, -5], "Mozambique": [-18.25, 35], "Myanmar": [22, 98], "Namibia": [-22, 17], "Nauru": [-0.5333, 166.9167], "Nepal": [28, 84], "Netherlands": [52.5, 5.75], "Netherlands Antilles": [12.25, -68.75], "New Caledonia": [-21.5, 165.5], "New Zealand": [-41, 174], "Nicaragua": [13, -85], "Niger": [16, 8], "Nigeria": [10, 8], "Niue": [-19.0333, -169.8667], "Norfolk Island": [-29.0333, 167.95], "Northern Mariana Islands": [15.2, 145.75], "Norway": [62, 10], "Oman": [21, 57], "Pakistan": [30, 70], "Palau": [7.5, 134.5], "Palestinian Territory, Occupied": [32, 35.25], "Panama": [9, -80], "Papua New Guinea": [-6, 147], "Paraguay": [-23, -58], "Peru": [-10, -76], "Philippines": [13, 122], "Pitcairn": [-24.7, -127.4], "Poland": [52, 20], "Portugal": [39.5, -8], "Puerto Rico": [18.25, -66.5], "Qatar": [25.5, 51.25], "R\u00c3\u00a9union": [-21.1, 55.6], "Romania": [46, 25], "Russian Federation": [60, 100], "Rwanda": [-2, 30], "Saint Helena, Ascension and Tristan da Cunha": [-15.9333, -5.7], "Saint Kitts and Nevis": [17.3333, -62.75], "Saint Lucia": [13.8833, -61.1333], "Saint Pierre and Miquelon": [46.8333, -56.3333], "Saint Vincent and the Grenadines": [13.25, -61.2], "Samoa": [-13.5833, -172.3333], "San Marino": [43.7667, 12.4167], "Sao Tome and Principe": [1, 7], "Saudi Arabia": [25, 45], "Senegal": [14, -14], "Serbia": [44, 21], "Seychelles": [-4.5833, 55.6667], "Sierra Leone": [8.5, -11.5], "Singapore": [1.3667, 103.8], "Slovakia": [48.6667, 19.5], "Slovenia": [46, 15], "Solomon Islands": [-8, 159], "Somalia": [10, 49], "South Africa": [-29, 24], "South Georgia and the South Sandwich Islands": [-54.5, -37], "Spain": [40, -4], "Sri Lanka": [7, 81], "Sudan": [15, 30], "Suriname": [4, -56], "Svalbard and Jan Mayen": [78, 20], "Swaziland": [-26.5, 31.5], "Sweden": [62, 15], "Switzerland": [47, 8], "Syrian Arab Republic": [35, 38], "Taiwan, Province of China": [23.5, 121], "Tajikistan": [39, 71], "Tanzania, United Republic of": [-6, 35], "Thailand": [15, 100], "Timor-Leste": [-8.55, 125.5167], "Togo": [8, 1.1667], "Tokelau": [-9, -172], "Tonga": [-20, -175], "Trinidad and Tobago": [11, -61], "Tunisia": [34, 9], "Turkey": [39, 35], "Turkmenistan": [40, 60], "Turks and Caicos Islands": [21.75, -71.5833], "Tuvalu": [-8, 178], "Uganda": [1, 32], "Ukraine": [49, 32], "United Arab Emirates": [24, 54], "United Kingdom": [54, -2], "United States": [38, -97], "United States Minor Outlying Islands": [19.2833, 166.6], "Uruguay": [-33, -56], "Uzbekistan": [41, 64], "Vanuatu": [-16, 167], "Venezuela, Bolivarian Republic of": [8, -66], "Viet Nam": [16, 106], "Virgin Islands, British": [18.5, -64.5], "Virgin Islands, U.S.": [18.3333, -64.8333], "Wallis and Futuna": [-13.3, -176.2], "Western Sahara": [24.5, -13], "Yemen": [15, 48], "Zambia": [-15, 30], "Zimbabwe": [-20, 30], "Afghanistan": [33, 65]}
19 changes: 15 additions & 4 deletions covid_web/templates/details.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
Welcome <b>{{ user.get_username }}</b> Location: <b>{{user_country}}</b> IP: <b>{{ip}}</b><br>
Welcome <b>{{ user.get_username }}</b> Location: <b>{{user_country}}</b> <br>
</li>
</ul>
<ul class="navbar-nav">
Expand Down Expand Up @@ -46,10 +46,21 @@
<script>
var first = null
function start(){
var location_databases = {"Albania": [41, 20], "Algeria": [28, 3], "American Samoa": [-14.3333, -170], "Andorra": [42.5, 1.6], "Angola": [-12.5, 18.5], "Anguilla": [18.25, -63.1667], "Antarctica": [-90, 0], "Antigua and Barbuda": [17.05, -61.8], "Argentina": [-34, -64], "Armenia": [40, 45], "Aruba": [12.5, -69.9667], "Australia": [-27, 133], "Austria": [47.3333, 13.3333], "Azerbaijan": [40.5, 47.5], "Bahamas": [24.25, -76], "Bahrain": [26, 50.55], "Bangladesh": [24, 90], "Barbados": [13.1667, -59.5333], "Belarus": [53, 28], "Belgium": [50.8333, 4], "Belize": [17.25, -88.75], "Benin": [9.5, 2.25], "Bermuda": [32.3333, -64.75], "Bhutan": [27.5, 90.5], "Bolivia": [-17, -65], "Bosnia and Herzegovina": [44, 18], "Botswana": [-22, 24], "Bouvet Island": [-54.4333, 3.4], "Brazil": [-10, -55], "British Indian Ocean Territory": [-6, 71.5], "Brunei": [4.5, 114.6667], "Bulgaria": [43, 25], "Burkina Faso": [13, -2], "Burundi": [-3.5, 30], "Cambodia": [13, 105], "Cameroon": [6, 12], "Canada": [60, -95], "Cape Verde": [16, -24], "Cayman Islands": [19.5, -80.5], "Central African Republic": [7, 21], "Chad": [15, 19], "Chile": [-30, -71], "China": [35, 105], "Christmas Island": [-10.5, 105.6667], "Cocos (Keeling) Islands": [-12.5, 96.8333], "Colombia": [4, -72], "Comoros": [-12.1667, 44.25], "Congo": [-1, 15], "Congo": [0, 25], "Cook Islands": [-21.2333, -159.7667], "Costa Rica": [10, -84], "C\u00c3\u00b4te d'Ivoire": [8, -5], "Croatia": [45.1667, 15.5], "Cuba": [21.5, -80], "Cyprus": [35, 33], "Czechia": [49.75, 15.5], "Denmark": [56, 10], "Djibouti": [11.5, 43], "Dominica": [15.4167, -61.3333], "Dominican Republic": [19, -70.6667], "Ecuador": [-2, -77.5], "Egypt": [27, 30], "El Salvador": [13.8333, -88.9167], "Equatorial Guinea": [2, 10], "Eritrea": [15, 39], "Estonia": [59, 26], "Ethiopia": [8, 38], "Falkland Islands (Malvinas)": [-51.75, -59], "Faroe Islands": [62, -7], "Fiji": [-18, 175], "Finland": [64, 26], "France": [46, 2], "French Guiana": [4, -53], "French Polynesia": [-15, -140], "French Southern Territories": [-43, 67], "Gabon": [-1, 11.75], "Gambia": [13.4667, -16.5667], "Georgia": [42, 43.5], "Germany": [51, 9], "Ghana": [8, -2], "Gibraltar": [36.1833, -5.3667], "Greece": [39, 22], "Greenland": [72, -40], "Grenada": [12.1167, -61.6667], "Guadeloupe": [16.25, -61.5833], "Guam": [13.4667, 144.7833], "Guatemala": [15.5, -90.25], "Guernsey": [49.5, -2.56], "Guinea": [11, -10], "Guinea-Bissau": [12, -15], "Guyana": [5, -59], "Haiti": [19, -72.4167], "Heard Island and McDonald Islands": [-53.1, 72.5167], "Holy See (Vatican City State)": [41.9, 12.45], "Honduras": [15, -86.5], "Hong Kong": [22.25, 114.1667], "Hungary": [47, 20], "Iceland": [65, -18], "India": [20, 77], "Indonesia": [-5, 120], "Iran": [32, 53], "Iraq": [33, 44], "Ireland": [53, -8], "Isle of Man": [54.23, -4.55], "Israel": [31.5, 34.75], "Italy": [42.8333, 12.8333], "Jamaica": [18.25, -77.5], "Japan": [36, 138], "Jersey": [49.21, -2.13], "Jordan": [31, 36], "Kazakhstan": [48, 68], "Kenya": [1, 38], "Kiribati": [1.4167, 173], "Korea, Democratic People's Republic of": [40, 127], "Korea, Republic of": [37, 127.5], "Kuwait": [29.3375, 47.6581], "Kyrgyzstan": [41, 75], "Lao People's Democratic Republic": [18, 105], "Latvia": [57, 25], "Lebanon": [33.8333, 35.8333], "Lesotho": [-29.5, 28.5], "Liberia": [6.5, -9.5], "Libyan Arab Jamahiriya": [25, 17], "Liechtenstein": [47.1667, 9.5333], "Lithuania": [56, 24], "Luxembourg": [49.75, 6.1667], "Macao": [22.1667, 113.55], "Macedonia": [41.8333, 22], "Madagascar": [-20, 47], "Malawi": [-13.5, 34], "Malaysia": [2.5, 112.5], "Maldives": [3.25, 73], "Mali": [17, -4], "Malta": [35.8333, 14.5833], "Marshall Islands": [9, 168], "Martinique": [14.6667, -61], "Mauritania": [20, -12], "Mauritius": [-20.2833, 57.55], "Mayotte": [-12.8333, 45.1667], "Mexico": [23, -102], "Micronesia, Federated States of": [6.9167, 158.25], "Moldova, Republic of": [47, 29], "Monaco": [43.7333, 7.4], "Mongolia": [46, 105], "Montenegro": [42, 19], "Montserrat": [16.75, -62.2], "Morocco": [32, -5], "Mozambique": [-18.25, 35], "Myanmar": [22, 98], "Namibia": [-22, 17], "Nauru": [-0.5333, 166.9167], "Nepal": [28, 84], "Netherlands": [52.5, 5.75], "Netherlands Antilles": [12.25, -68.75], "New Caledonia": [-21.5, 165.5], "New Zealand": [-41, 174], "Nicaragua": [13, -85], "Niger": [16, 8], "Nigeria": [10, 8], "Niue": [-19.0333, -169.8667], "Norfolk Island": [-29.0333, 167.95], "Northern Mariana Islands": [15.2, 145.75], "Norway": [62, 10], "Oman": [21, 57], "Pakistan": [30, 70], "Palau": [7.5, 134.5], "Palestinian Territory, Occupied": [32, 35.25], "Panama": [9, -80], "Papua New Guinea": [-6, 147], "Paraguay": [-23, -58], "Peru": [-10, -76], "Philippines": [13, 122], "Pitcairn": [-24.7, -127.4], "Poland": [52, 20], "Portugal": [39.5, -8], "Puerto Rico": [18.25, -66.5], "Qatar": [25.5, 51.25], "R\u00c3\u00a9union": [-21.1, 55.6], "Romania": [46, 25], "Russian Federation": [60, 100], "Rwanda": [-2, 30], "Saint Helena, Ascension and Tristan da Cunha": [-15.9333, -5.7], "Saint Kitts and Nevis": [17.3333, -62.75], "Saint Lucia": [13.8833, -61.1333], "Saint Pierre and Miquelon": [46.8333, -56.3333], "Saint Vincent and the Grenadines": [13.25, -61.2], "Samoa": [-13.5833, -172.3333], "San Marino": [43.7667, 12.4167], "Sao Tome and Principe": [1, 7], "Saudi Arabia": [25, 45], "Senegal": [14, -14], "Serbia": [44, 21], "Seychelles": [-4.5833, 55.6667], "Sierra Leone": [8.5, -11.5], "Singapore": [1.3667, 103.8], "Slovakia": [48.6667, 19.5], "Slovenia": [46, 15], "Solomon Islands": [-8, 159], "Somalia": [10, 49], "South Africa": [-29, 24], "South Georgia and the South Sandwich Islands": [-54.5, -37], "Spain": [40, -4], "Sri Lanka": [7, 81], "Sudan": [15, 30], "Suriname": [4, -56], "Svalbard and Jan Mayen": [78, 20], "Swaziland": [-26.5, 31.5], "Sweden": [62, 15], "Switzerland": [47, 8], "Syrian Arab Republic": [35, 38], "Taiwan, Province of China": [23.5, 121], "Tajikistan": [39, 71], "Tanzania, United Republic of": [-6, 35], "Thailand": [15, 100], "Timor-Leste": [-8.55, 125.5167], "Togo": [8, 1.1667], "Tokelau": [-9, -172], "Tonga": [-20, -175], "Trinidad and Tobago": [11, -61], "Tunisia": [34, 9], "Turkey": [39, 35], "Turkmenistan": [40, 60], "Turks and Caicos Islands": [21.75, -71.5833], "Tuvalu": [-8, 178], "Uganda": [1, 32], "Ukraine": [49, 32], "UAE": [24, 54], "UK": [54, -2], "USA": [38, -97], "United States Minor Outlying Islands": [19.2833, 166.6], "Uruguay": [-33, -56], "Uzbekistan": [41, 64], "Vanuatu": [-16, 167], "Venezuela": [8, -66], "Viet Nam": [16, 106], "Virgin Islands, British": [18.5, -64.5], "Virgin Islands, U.S.": [18.3333, -64.8333], "Wallis and Futuna": [-13.3, -176.2], "Western Sahara": [24.5, -13], "Yemen": [15, 48], "Zambia": [-15, 30], "Zimbabwe": [-20, 30], "Afghanistan": [33, 65]}
var country_name = document.getElementById("country-name").innerHTML;
var true_latitude;
var true_longtitude;
try {
true_latitude = location_databases[country_name][0];
true_longtitude = location_databases[country_name][1];
} catch (error) {
true_latitude = {{user_lattitude}};
true_longtitude = {{user_longtitude}};
}
var main = document.getElementById('main')
var data = { zoom: 5, center: {lat:{{user_lattitude}}, lng:{{user_longtitude}}}}
var data = { zoom: 5, center: {lat:true_latitude, lng:true_longtitude}}
first = new google.maps.Map(main, data)
new google.maps.Marker({map: first, position:{lat:{{user_lattitude}},lng:{{user_longtitude}}}})
new google.maps.Marker({map: first, position:{lat:true_latitude,lng:true_longtitude}})
}
</script>
</body>
Expand Down Expand Up @@ -95,7 +106,7 @@ <h3><span id="date" class="text-dark" style="font-size:2rem"></span></h3>
d = dt.getDate();
document.getElementById("date").innerHTML = y + "-" + m + "-" + d;
</script>
{% if name != '' %} <p>Country: <b>{{name}}</b> </p>{%endif%}
{% if name != '' %} <p>Country: <b id="country-name">{{name}}</b> </p>{%endif%}
<p> Total Confirm Cases : <span class="text-danger" id="Total-comfirm" ><strong>{{totalconfirm}}</strong></span></p>
<p> New Confirm Cases : <span class="text-danger"><strong>{{newconfirm}}</strong></span></p>
<p> New Deaths : <span class="text-dark"><strong>{{newdeaths}}</strong></span></p>
Expand Down
Loading