-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcleverpush-amp-permission-dialog.html
138 lines (127 loc) · 3.78 KB
/
cleverpush-amp-permission-dialog.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!doctype html>
<html>
<!-- CLEVERPUSH AMP Web Push Permission Dialog -->
<head>
<meta charset="utf-8">
<!-- Do not edit styles in this section -->
<style builtin>
/* Do not edit styles in this section. Add custom styles in the next
style section */
html, body {
height: 100%;
margin: 0;
padding: 0;
}
/* Default loading spinner */
.spinner,
.spinner:after {
border-radius: 50%;
width: 10em;
height: 10em;
}
.spinner {
margin: 60px auto;
font-size: 10px;
position: relative;
text-indent: -9999em;
border-top: 1.1em solid rgba(140, 140, 140, 0.2);
border-right: 1.1em solid rgba(140, 140, 140, 0.2);
border-bottom: 1.1em solid rgba(140, 140, 140, 0.2);
border-left: 1.1em solid rgb(140, 140, 140);
-webkit-transform: translateZ(0);
-ms-transform: translateZ(0);
transform: translateZ(0);
-webkit-animation: spinner 1.1s infinite linear;
animation: spinner 1.1s infinite linear;
}
@-webkit-keyframes spinner {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes spinner {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
/* Horizontally and vertically center items */
body {
display: flex;
justify-content: center;
align-items: center;
padding: 15px;
}
/* Page message text styles */
.message {
font-size: 22px;
font-family: sans-serif;
text-align: center;
}
/* Close icon styles */
#close {
position: fixed;
right: 32px;
top: 32px;
width: 32px;
height: 32px;
opacity: 0.5;
cursor: pointer;
}
#close:before, #close:after {
position: fixed;
right: 48px;
content: ' ';
height: 33px;
width: 3px;
background-color: #333;
}
#close:before {
transform: rotate(45deg);
}
#close:after {
transform: rotate(-45deg);
}
/* Used to hide the preload and postload sections */
.invisible {
display: none;
}
</style>
<!-- Optional: Add custom styles here -->
<style custom>
/* Add custom styles here */
</style>
</head>
<body>
<div id="preload">
<!-- Anything in this section will be shown before the main script
runs, and will be hidden after -->
<div class="spinner"></div>
</div>
<div id="postload" class="invisible">
<span id="close"></span>
<div permission="default">
<p class="message">
<!-- Opt-In Nachricht hier anpassen: -->
Klicke auf "Erlauben" um Benachrichtigungen zu erhalten.
</p>
</div>
<div permission="denied">
<!-- Entblocken Nachricht hier anpassen: -->
<p class="message">
Bitte entblockieren Sie die Benachrichtigungen in Ihren Browsereinstellungen, um Benachrichtigungen von dieser Website zu erhalten.
</p>
</div>
</div>
<script src="https://static.cleverpush.com/sdk/cleverpush-amp-permission-dialog.js"></script>
</body>
</html>