-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (46 loc) · 2.66 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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"
crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
crossorigin="anonymous"></script>
<title>Document</title>
</head>
<body>
<div class="jumbotron text-center">
<h1>Web notify stuff</h1>
</div>
<div class="text-center">
<button id="regButton" class="btn btn-primary">Click to set up web notify</button>
</div>
<script type="text/javascript">
// 86acbd31cd7c09cf30acb66d2fbedc91daa48b86:1536274630.24
!function (n, t, c, e, u) {
function r(n) { try { f = n(u) } catch (n) { return h = n, void i(p, n) } i(s, f) } function i(n, t) {
for (var c = 0; c < n.length; c++)d(n[c], t);
} function o(n, t) { return n && (f ? d(n, f) : s.push(n)), t && (h ? d(t, h) : p.push(t)), l } function a(n) { return o(!1, n) } function d(t, c) {
n.setTimeout(function () { t(c) }, 0)
} var f, h, s = [], p = [], l = { then: o, catch: a, _setup: r }; n[e] = l; var v = t.createElement("script");
v.src = c, v.async = !0, v.id = "_uasdk", v.rel = e, t.head.appendChild(v)
}(window, document, 'https://web-sdk.urbanairship.com/notify/v1/ua-sdk.min.js',
'UA', {
appKey: 'k_N_4bKERXeMnGSsS5nMaA',
token: 'MTprX05fNGJLRVJYZU1uR1NzUzVuTWFBOkJYNE9FS0xaM011TzdBU0xWQVR4cWZLdkV5OW9oZDdhU2NJVW5YYUNGM00',
vapidPublicKey: 'BDR1e93Tii3hjhtevwTbpXJjZf5nFfQOPT_-6vJ_kcFJgW9B7qoIZ465BG0Dg5EhcVSQ1HfBu0cne-nTd-pvDLg=',
workerUrl: 'https://jahdeh.github.io/TestWebNotify/push-worker.js'
});
$("#regButton").click(() => {
UA.then((sdk) => {
sdk.register();
});
});
</script>
</body>
</html>