-
Notifications
You must be signed in to change notification settings - Fork 5
/
googledrive.html
184 lines (178 loc) · 7.07 KB
/
googledrive.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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<!doctype html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<meta http-equiv='x-ua-compatible' content='ie=edge'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<style>
html {
font: normal 16px/1.4 Arial, "Helvetica Neue", Helvetica, sans-serif;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
overflow-y: scroll;color: #000;
}
html,body {
height: 100%;
min-height: 100%;
}
body {
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
margin: 0;
padding: 20px;
background-color: #dedede;
box-sizing: border-box;
-webkit-box-align: center;
-ms-flex-align: center;
-ms-grid-row-align: center;
align-items: center;
}
a { background-color: transparent; }
a:active,
a:hover { outline: 0; }
a {
color: #2498e3;
text-decoration: none;
cursor: pointer;
word-wrap: break-word;
overflow-wrap: break-word;
word-break: break-word;
}
a:hover {
color: #188dd9;
text-decoration: underline;
}
h1 {
margin: 0;
padding: 0;
font-size: 24px;
line-height: 1;
text-align: center;
}
main {
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-align: center;
-ms-flex-align: center;
-ms-grid-row-align: center;
align-items: center;
margin: auto;
padding: 20px;
max-width: 900px;
background: #fff;
border-radius: 0.625rem;
box-shadow: 0 8px 17px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
-webkit-animation: bounceInUp 1s;
animation: bounceInUp 1s;
}
figure {
flex: none;
width: 64px;
height: 64px;
margin: 0;
padding: 0 0 10px;
}
figure svg, figure img {
display: block;
width: 100%;
height: 100%;
}
section p:last-child { margin-bottom: 0; }
@media screen and (min-width: 600px) {
main {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
-webkit-box-align: start;
-ms-flex-align: start;
-ms-grid-row-align: flex-start;
align-items: flex-start;
padding: 40px;
}
figure {
flex: none;
width: 84px;
height: 84px;
margin: 0;
padding: 0 20px 0 0;
}
h1 {
font-size: 44px;
font-weight: 400;
text-align: left;
}
p { font-size: 20px; }
}
@-webkit-keyframes bounceInUp {
0%,100%,60%,75%,90% {-webkit-animation-timing-function: cubic-bezier(0.215,.61,.355,1);animation-timing-function: cubic-bezier(0.215,.61,.355,1)}
0% {opacity: 0;-webkit-transform: translate3d(0,3000px,0);transform: translate3d(0,3000px,0)}
60% {opacity: 1;-webkit-transform: translate3d(0,-20px,0);transform: translate3d(0,-20px,0)}
75% {-webkit-transform: translate3d(0,10px,0);transform: translate3d(0,10px,0)}
90% {-webkit-transform: translate3d(0,-5px,0);transform: translate3d(0,-5px,0)}
100% {-webkit-transform: translate3d(0,0,0);transform: translate3d(0,0,0)}
}
@keyframes bounceInUp {
0%,100%,60%,75%,90% {-webkit-animation-timing-function: cubic-bezier(0.215,.61,.355,1);animation-timing-function: cubic-bezier(0.215,.61,.355,1)}
0% {opacity: 0;-webkit-transform: translate3d(0,3000px,0);transform: translate3d(0,3000px,0)}
60% {opacity: 1;-webkit-transform: translate3d(0,-20px,0);transform: translate3d(0,-20px,0)}
75% {-webkit-transform: translate3d(0,10px,0);transform: translate3d(0,10px,0)}
90% {-webkit-transform: translate3d(0,-5px,0);transform: translate3d(0,-5px,0)}
100% {-webkit-transform: translate3d(0,0,0);transform: translate3d(0,0,0)}
}
</style>
<title>Confirm Sending Data</title>
</head>
<body>
<main>
<figure>
<svg viewBox="0 0 139 120.4" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><radialGradient id="a" cx="-254.81979" cy="705.83588" gradientTransform="matrix(2.827 1.6322 -1.6322 2.827 2092.1199 -1494.5786)" gradientUnits="userSpaceOnUse" r="82.978401"><stop offset="0" stop-color="#4387fd"/><stop offset=".65" stop-color="#3078f0"/><stop offset=".9099" stop-color="#2b72ea"/><stop offset="1" stop-color="#286ee6"/></radialGradient><radialGradient id="b" cx="-254.8174" cy="705.83691" gradientTransform="matrix(2.827 1.6322 -1.6322 2.827 2092.1199 -1494.5786)" gradientUnits="userSpaceOnUse" r="82.973"><stop offset="0" stop-color="#ffd24d"/><stop offset="1" stop-color="#f6c338"/></radialGradient><path d="m24.2 120.4-24.2-41.9 45.3-78.5 24.2 41.9z" fill="#0da960"/><path d="m24.2 120.4 24.2-41.9h90.6l-24.2 41.9z" fill="url(#a)"/><path d="m139 78.5h-48.4l-45.3-78.5h48.4z" fill="url(#b)"/><path d="m69.5 78.5h-21.1l10.5-18.3-34.7 60.2z" fill="#2d6fdd"/><path d="m90.6 78.5h48.4l-58.9-18.3z" fill="#e5b93c"/><path d="m58.9 60.2 10.6-18.3-24.2-41.9z" fill="#0c9b57"/></svg>
</figure>
<section>
<header><h1>Confirm Sending Data</h1></header>
<p>To prevent possible phishing attacks, you need to manually confirm that it's OK to send the Google Drive authorization data to your Plesk instance.</p>
<p>Click the link below to continue.</p>
<p><a id="redirect-link">Destination URL was not found in the query.</a></p>
</section>
</main>
<script>
(function() {
var link = document.getElementById('redirect-link');
var redirect = getStateParam(window.location)['redirect-plesk'];
if (isValidUrl(redirect)) {
redirect += (redirect.indexOf('?') > -1 ? '&' : '?') + window.location.search.substr(1);
link.href = redirect;
link.innerText = redirect.substr(0, redirect.indexOf('?')) + '...';
}
function isValidUrl(url) {
return url && (
0 === url.indexOf('http://') || 0 === url.indexOf('https://')
);
}
function getStateParam(location) {
var params = splitParams(location.search.substr(1).split('&'));
params.state = params.state || '';
return splitParams(params.state.split('|'));
}
function splitParams(params) {
params = params || [];
var pairs = {};
params.map(function (param) {
return param.split('=');
}).forEach(function (param) {
var name = param[0], value = param[1] && decodeURIComponent(param[1]);
pairs[name] = value;
});
return pairs;
}
})();
</script>
</body>
</html>