-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.py
49 lines (47 loc) · 1.67 KB
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import dash
external_stylesheets = [
"static/css/style.css",
"https://codepen.io/chriddyp/pen/bWLwgP.css",
]
app = dash.Dash(
"COVID19 India Tracker", external_stylesheets=external_stylesheets
)
server = app.server
app.config.suppress_callback_exceptions = True
app.title = "Coronavirus (COVID19) India Tracker"
########################################################################
#
# For Google Analytics
#
########################################################################
app.index_string = """<!DOCTYPE html>
<html>
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=GTM-PNBGJC8"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-163694740-1');
</script>
{%metas%}
<title>{%title%}</title>
{%favicon%}
{%css%}
<meta property="og:type" content="article">
<meta property="og:title" content="Coronavirus (COVID19) India Tracker">
<meta property="og:site_name" content="https://covid19-india-tracker.herokuapp.com/ ">
<meta property="og:url" content="https://covid19-india-tracker.herokuapp.com/ ">
<meta property="og:image" content="https://raw.githubusercontent.com/dc-aichara/COVID19-India-Tracker/master/assets/favicon.ico">
<meta property="article:published_time" content="2020-03-21">
</head>
<body>
{%app_entry%}
<footer>
{%config%}
{%scripts%}
{%renderer%}
</footer>
</body>
</html>"""