-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (48 loc) · 1.23 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
<!DOCTYPE html>
<html lang="ja">
<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">
<title>PUSHCODE installation example</title>
<style>
html,
body {
margin: 0;
padding: 0;
height: 100dvh;
}
.n {
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
font-weight: bold;
}
</style>
<script defer src="https://www.pushcode.jp/dist/js/pushcode.js"></script>
<link rel="manifest" href="/manifest.json">
<script>
window.PushCodeInit = function() {
try {
if (PushCode && PushCode.isSupport()) {
PushCode.init({ domainToken: '4801a52d912b406a237faa68eefb03fc905c6d51c66d2a98a5a091b9a086b223', userid: '' });
PushCode.components.openSubscribeDialog();
}
}
catch (err) {
console.error(err);
if (PushCode) {
PushCode.sendError(err);
}
}
};
</script>
</head>
<body>
<div class="n">
<p><a href="https://www.pushcode.jp">PUSHCODE</a> installation example</p>
</div>
</body>
</html>