-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
26 lines (22 loc) · 763 Bytes
/
index.html
File metadata and controls
26 lines (22 loc) · 763 Bytes
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>robertbindar's projects</title>
<link href="push-notifications-api-demo/style/install-button.css" rel="stylesheet" type="text/css">
</head>
<body>
<script src="./push-notifications-api-demo/js/push-notifications.js"></script>
<script>
const REPO_URL = "http://robertbindar.github.io/";
const MANIFEST_FILE = "push-notifications-api-demo/manifest.webapp";
function installPushDemo() {
navigator.mozApps.install(REPO_URL + MANIFEST_FILE);
}
</script>
<button id="install-btn" type="button" onclick="installPushDemo()">
Install Push API demo
</button>
</body>
</html>