-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
55 lines (55 loc) · 3.2 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
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,0 initial-scale=1">
<title>Example Onesignal Subscribe Bell</title>
<script src="https://cdn.onesignal.com/sdks/OneSignalSDK.js" async=""></script>
<script>
window.OneSignal = window.OneSignal || [];
OneSignal.push(function() {
OneSignal.init({
appId: "{Your App ID}",
notifyButton: {
enable: true,
colors: { // Customize the colors of the main button and dialog popup button
'circle.background': '#ff3ff9',
'circle.foreground': '#fff',
'badge.background': '#ff3ff9',
'badge.foreground': '#fff',
'badge.bordercolor': '#fff',
'pulse.color': '#fff',
'dialog.button.background.hovering': '#ff9ff3',
'dialog.button.background.active': '#ff9ff3',
'dialog.button.background': '#ff3ff9',
'dialog.button.foreground': '#fff'
},
text: {
'tip.state.unsubscribed': 'สมัครรับการแจ้งเตือน',
'tip.state.subscribed': "คุณสมัครรับการแจ้งเตือน",
'tip.state.blocked': "คุณได้ปิดกั้นการแจ้งเตือน",
'message.prenotify': 'คลิกเพื่อสมัครรับการแจ้งเตือน',
'message.action.subscribed': "ขอบคุณสำหรับการสมัคร!",
'message.action.resubscribed': "คุณสมัครรับการแจ้งเตือน",
'message.action.unsubscribed': "คุณจะไม่ได้รับการแจ้งเตือนอีก",
'dialog.main.title': 'จัดการการแจ้งเตือนของเว็บไซต์',
'dialog.main.button.subscribe': 'ติดตาม',
'dialog.main.button.unsubscribe': 'ยกเลิกการเป็นสมาชิก',
'dialog.blocked.title': 'เลิกบล็อกการแจ้งเตือน',
'dialog.blocked.message': "ทำตามคำแนะนำเหล่านี้เพื่ออนุญาตการแจ้งเตือน:"
},
},
// Other init Options
welcomeNotification: {
"title": "Anime Kario",
"message": "Thanks for subscribing!",
// "url": "" /* Leave commented for the notification to not open a window on Chrome and Firefox (on Safari, it opens to your webpage) */
},
});
});
</script>
</head>
<body>
.....
</body>
</html>