-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
203 lines (177 loc) · 8.29 KB
/
index.html
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<html>
<head>
<title>Prayer Times PWA</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<link href="css/font.css" rel="stylesheet">
<link rel="manifest" href="manifest.json">
<script src="manup.min.js"></script>
<meta name="theme-color" content="#6200ee">
<meta content='#6200ee' name='msapplication-navbutton-color' />
<meta content='#6200ee' name='apple-mobile-web-app-status-bar-style' />
<link href="md/material-components-web.min.css" rel="stylesheet">
<script src="md/material-components-web.min.js"></script>
<link rel="stylesheet" href="md/md-icon.css">
<script src="Adhan.js"></script>
<script src="moment-with-locales.min.js"></script>
<script src="moment-timezone-with-data-10-year-range.min.js"></script>
<script>
if ("serviceWorker" in navigator) {
if (navigator.serviceWorker.controller) {
console.log("An active service worker found, no need to register");
} else {
// Register the service worker
navigator.serviceWorker
.register("/prayer-times-pwa/pwabuilder-sw.js", {
scope: "/prayer-times-pwa/"
})
.then(function (reg) {
console.log("Service worker has been registered for scope: " + reg.scope);
});
}
}
</script>
</head>
<body>
<script type="module">
import './pwaupdate.js';
const el = document.createElement('pwa-update');
document.body.appendChild(el);
</script>
<!-- App Bar -->
<header class="mdc-top-app-bar app-bar" id="app-bar" style="top: 0px; left: 0px;">
<div class="mdc-top-app-bar__row">
<section class="mdc-top-app-bar__section mdc-top-app-bar__section--align-start">
<button class="material-icons mdc-top-app-bar__navigation-icon mdc-icon-button">menu</button>
<span class="mdc-top-app-bar__title">Prayer Times PWA</span>
</section>
<section class="mdc-top-app-bar__section mdc-top-app-bar__section--align-end" role="toolbar">
<button onclick="searchBarAppearToggle()" class="material-icons mdc-top-app-bar__action-item mdc-icon-button"
aria-label="Search">
search
</button>
<button id='install-button' onclick="pwaInstall()"
class="material-icons mdc-top-app-bar__action-item mdc-icon-button"
aria-label="Favorite">favorite</button>
<button onclick="openCornerMenu()" class="material-icons mdc-top-app-bar__action-item mdc-icon-button"
aria-label="Options">
more_vert
</button>
</section>
</div>
</header>
<aside class="mdc-drawer mdc-drawer--modal" style="top: 0px; left: 0px;">
<div class="mdc-drawer__header">
<img src="favicon.png" width="90px" />
<h3 class="mdc-drawer__title">Prayer Times PWA</h3>
<h6 class="mdc-drawer__subtitle">ms-jahan.github.io/prayer-times-pwa</h6>
</div>
<div class="mdc-drawer__content">
<nav class="mdc-list">
<!--<a class="mdc-list-item mdc-list-item--activated" href="#" aria-current="page" tabindex="0">-->
<a class="mdc-list-item mdc-list-item--activated" aria-current="page" tabindex="0">
<span class="mdc-list-item__ripple"></span>
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">home</i>
<span class="mdc-list-item__text">Prayer Time</span>
</a>
<a class="mdc-list-item">
<span class="mdc-list-item__ripple"></span>
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">settings</i>
<span class="mdc-list-item__text">Settings</span>
</a>
</nav>
</div>
</aside>
<div class="mdc-drawer-scrim"></div>
<!-- App Bar -->
<form>
<input id="location-search-bar" style="visibility: hidden;" type="text" name="search" placeholder="Search Location..">
</form><br/>
<!-- onfocusout="searchBarDisappear()" -->
<div id="search-list" style="visibility: hidden;">
<ul id="ul-list">
<li><i>Type your location</i></li>
</ul>
</div>
<div id="main-content">
<div id="time">
<span id="hour">HOUR</span>:<span id="minute">MINUTE</span><span id="small-colon">:</span><span
id="second">SECOND</span> <span id="am-pm">pm</span>
</div>
<div id="day-and-date">
<span id="day">DAY</span> | <span id="date">DATE</span> <span
id="month">MONTH</span>, <span id="year">YEAR</span>
</div>
<div id="location">
</div>
<div id="sunrise-and-sunset">
<span id="sunrise">
Sunrise: <span id="sunrise-time">6:00 am</span>
</span>
<span id="sunset">
Sunset: <span id="sunset-time">5:30 pm</span>
</span>
</div>
<br />
<div class="prayer-list">
<ul class="mdc-list">
<li id="fajr" class="mdc-list-item" tabindex="0">
<span class="mdc-list-item__ripple"></span>
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">looks_one</i>
<span class="prayer-box mdc-list-item__text">Fajr</span><span class="prayer-time">TIME</span>
</li>
<li id="dhuhr" class="mdc-list-item">
<span class="mdc-list-item__ripple"></span>
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">looks_two</i>
<span class="prayer-box mdc-list-item__text">Dhuhr</span><span class="prayer-time">TIME</span>
</li>
<li id="asr" class="mdc-list-item">
<span class="mdc-list-item__ripple"></span>
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">looks_3</i>
<span class="prayer-box mdc-list-item__text">Asr</span><span class="prayer-time">TIME</span>
</li>
<li id="maghrib" class="mdc-list-item">
<span class="mdc-list-item__ripple"></span>
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">looks_4</i>
<span class="prayer-box mdc-list-item__text">Maghrib</span><span class="prayer-time">TIME</span>
</li>
<li id="isha" class="mdc-list-item">
<span class="mdc-list-item__ripple"></span>
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">looks_5</i>
<span class="prayer-box mdc-list-item__text">Isha</span><span class="prayer-time">TIME</span>
</li>
</ul>
</div>
</div>
<script src="js/md-nav.js"></script>
<!--Normal Alert Dialog-->
<div class="mdc-dialog">
<div class="mdc-dialog__container">
<div class="mdc-dialog__surface" role="alertdialog" aria-modal="true" aria-labelledby="my-dialog-title"
aria-describedby="my-dialog-content">
<!--<img align="center" src="https://ms-jahan.github.io//prayer-times-pwa//favicon.png" width="90px" />-->
<div class="mdc-dialog__content" id="my-dialog-content">
Love this app? Then install it in your device. No download required!
</div>
<div class="mdc-dialog__actions">
<button id="dialog-cancel" type="button" class="mdc-button mdc-dialog__button"
data-mdc-dialog-action="cancel">
<div class="mdc-button__ripple"></div>
<span class="mdc-button__label">Cancel</span>
</button>
<button id="pwa-install-accept" type="button" class="mdc-button mdc-dialog__button"
data-mdc-dialog-action="accept" data-mdc-dialog-button-default>
<div class="mdc-button__ripple"></div>
<span class="mdc-button__label">Accept</span>
</button>
</div>
</div>
</div>
<div class="mdc-dialog__scrim"></div>
</div>
<script src="prayer-calc.js"></script>
<script src="js/md-dialog.js"></script>
<script src="js/pwa-install.js"></script>
<script src="js/location-search.js"></script>
</body>
</html>