-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
38 lines (38 loc) · 953 Bytes
/
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
<html>
<head>
<title>PWA with FCM</title>
<script src="https://www.gstatic.com/firebasejs/7.6.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.6.1/firebase-messaging.js"></script>
<style>
.container {
height: 100vh;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
#enableNotifications {
height: 80px;
width: 350px;
background-color: black;
color: white;
border: 1px;
border-radius: 500px;
font-size: 24px;
}
</style>
</head>
<body>
<div class="container">
<button id="enableNotifications">🔔 Enable Notification</button>
<br />
<br />
<div>
<div id="token"></div>
<div id="err"></div>
</div>
</div>
<script src="scripts/main.js"></script>
</body>
</html>