Update settings.html
Browse files- settings.html +93 -196
settings.html
CHANGED
@@ -1,217 +1,114 @@
|
|
1 |
-
<!DOCTYPE html>
|
2 |
-
<html lang="en">
|
3 |
-
<head>
|
4 |
-
|
5 |
-
|
6 |
-
|
|
|
7 |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
8 |
<script src="https://unpkg.com/@vkontakte/vk-bridge/dist/browser.min.js"></script>
|
9 |
<script type="text/javascript" src="https://vk.com/js/api/openapi.js?169"></script>
|
10 |
-
<style>
|
11 |
-
body {
|
12 |
-
display: flex;
|
13 |
-
flex-direction: column;
|
14 |
-
justify-content: center;
|
15 |
-
align-items: center;
|
16 |
-
min-height: 100vh;
|
17 |
-
margin: 0;
|
18 |
-
background-color: black;
|
19 |
-
font-family: Arial, sans-serif;
|
20 |
-
color: white;
|
21 |
-
}
|
22 |
-
#focusis {
|
23 |
-
text-align: center;
|
24 |
-
margin-bottom: 20px;
|
25 |
-
}
|
26 |
-
.container {
|
27 |
-
display: flex;
|
28 |
-
flex-direction: column;
|
29 |
-
align-items: center;
|
30 |
-
width: 100%;
|
31 |
-
padding: 20px;
|
32 |
-
}
|
33 |
-
#contactForm {
|
34 |
-
max-width: 500px;
|
35 |
-
width: 100%;
|
36 |
-
padding: 20px;
|
37 |
-
background-color: #000;
|
38 |
-
border: 2px solid orange;
|
39 |
-
border-radius: 10px;
|
40 |
-
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
41 |
-
margin-top: 20px;
|
42 |
-
}
|
43 |
-
#contactForm h4 {
|
44 |
-
text-align: center;
|
45 |
-
margin-bottom: 20px;
|
46 |
-
}
|
47 |
-
.form-group {
|
48 |
-
margin-bottom: 15px;
|
49 |
-
text-align: center;
|
50 |
-
}
|
51 |
-
label {
|
52 |
-
display: block;
|
53 |
-
margin-bottom: 5px;
|
54 |
-
}
|
55 |
-
input, select {
|
56 |
-
width: 90%;
|
57 |
-
padding: 10px;
|
58 |
-
margin-bottom: 5px;
|
59 |
-
border: 1px solid #ffcc99; /* Светло-оранжевая обводка */
|
60 |
-
border-radius: 5px;
|
61 |
-
margin: 0 auto;
|
62 |
-
display: block;
|
63 |
-
background-color: #000;
|
64 |
-
color: white;
|
65 |
-
}
|
66 |
-
.form-check {
|
67 |
-
margin-bottom: 15px;
|
68 |
-
text-align: center;
|
69 |
-
}
|
70 |
-
.form-check-input {
|
71 |
-
margin-right: 5px;
|
72 |
-
}
|
73 |
-
.btn-primary {
|
74 |
-
display: inline-block;
|
75 |
-
padding: 10px 20px;
|
76 |
-
color: #fff;
|
77 |
-
background-color: orange;
|
78 |
-
border: none;
|
79 |
-
border-radius: 5px;
|
80 |
-
cursor: pointer;
|
81 |
-
text-align: center;
|
82 |
-
text-decoration: none;
|
83 |
-
margin: 0 auto;
|
84 |
-
display: block;
|
85 |
-
}
|
86 |
-
.btn-primary:hover {
|
87 |
-
background-color: darkorange;
|
88 |
-
}
|
89 |
-
.responsive-image {
|
90 |
-
max-width: 100%;
|
91 |
-
height: auto;
|
92 |
-
display: block;
|
93 |
-
margin: 0 auto 20px auto;
|
94 |
-
}
|
95 |
-
</style>
|
96 |
-
|
97 |
-
<style>
|
98 |
-
.modal {
|
99 |
-
display: none; /* По умолчанию скрыто */
|
100 |
-
position: fixed;
|
101 |
-
z-index: 1000;
|
102 |
-
left: 0;
|
103 |
-
top: 0;
|
104 |
-
width: 100%;
|
105 |
-
height: 100%;
|
106 |
-
background-color: rgba(0,0,0,0.5); /* Полупрозрачный фон */
|
107 |
-
}
|
108 |
-
.modal-content {
|
109 |
-
background-color: #fff; /* Белый фон */
|
110 |
-
color: black; /* Черный текст */
|
111 |
-
border-radius: 10px;
|
112 |
-
padding: 20px;
|
113 |
-
position: absolute;
|
114 |
-
top: 50%;
|
115 |
-
left: 50%;
|
116 |
-
transform: translate(-50%, -50%);
|
117 |
-
width: 80%; /* Ширина 80% */
|
118 |
-
max-height: 80%;
|
119 |
-
overflow-y: auto;
|
120 |
-
box-shadow: 0 0 20px rgba(0,0,0,0.2);
|
121 |
-
}
|
122 |
-
.close {
|
123 |
-
color: black;
|
124 |
-
float: right;
|
125 |
-
font-size: 30px;
|
126 |
-
font-weight: bold;
|
127 |
-
cursor: pointer;
|
128 |
-
}
|
129 |
-
.close:hover,
|
130 |
-
.close:focus {
|
131 |
-
color: darkorange;
|
132 |
-
text-decoration: none;
|
133 |
-
cursor: pointer;
|
134 |
-
}
|
135 |
-
.modal-content iframe {
|
136 |
-
width: 100%;
|
137 |
-
height: 520px;
|
138 |
-
border: none;
|
139 |
-
}
|
140 |
-
</style>
|
141 |
-
</head>
|
142 |
-
<body>
|
143 |
-
<div class="container">
|
144 |
-
<div id="focusis"></div>
|
145 |
|
146 |
-
<img src="https://i.ibb.co/NrZMfsR/105.png" alt="Placeholder Image" class="responsive-image">
|
147 |
|
148 |
-
|
149 |
-
|
150 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
<h4>КЛУБ-ПРАКТИК. 255 техник для психолога - 2024</h4>
|
152 |
<div class="form-group">
|
153 |
-
|
154 |
-
|
155 |
</div>
|
156 |
-
|
157 |
<div class="form-group">
|
158 |
-
|
159 |
-
|
160 |
</div>
|
161 |
-
|
162 |
<div class="form-group">
|
163 |
-
|
164 |
-
|
165 |
</div>
|
166 |
-
|
167 |
<div class="form-group">
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
</div>
|
176 |
-
|
177 |
<div class="form-check">
|
178 |
-
|
179 |
-
|
180 |
</div>
|
181 |
-
|
182 |
<div class="form-group">
|
183 |
-
|
184 |
</div>
|
185 |
-
|
186 |
<button type="submit" class="btn-primary">ПЕРЕЙТИ К ОПЛАТЕ</button>
|
187 |
-
|
188 |
-
|
189 |
-
<div id="privacyModal" class="modal">
|
190 |
<div class="modal-content">
|
191 |
-
|
192 |
-
|
193 |
-
</div>
|
|
|
194 |
</div>
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Скачанная HTML-страница</title>
|
7 |
+
|
8 |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
9 |
<script src="https://unpkg.com/@vkontakte/vk-bridge/dist/browser.min.js"></script>
|
10 |
<script type="text/javascript" src="https://vk.com/js/api/openapi.js?169"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
|
|
12 |
|
13 |
+
<script>
|
14 |
+
vkBridge.send('VKWebAppInit');
|
15 |
+
</script>
|
16 |
+
|
17 |
+
<style>* { box-sizing: border-box; } body {margin: 0;}</style>
|
18 |
+
</head>
|
19 |
+
<body>
|
20 |
+
<body><div id="id8i">
|
21 |
+
<div class="container">
|
22 |
+
<form id="contactForm">
|
23 |
<h4>КЛУБ-ПРАКТИК. 255 техник для психолога - 2024</h4>
|
24 |
<div class="form-group">
|
25 |
+
<label for="name">Имя</label>
|
26 |
+
<input type="text" id="name" required>
|
27 |
</div>
|
|
|
28 |
<div class="form-group">
|
29 |
+
<label for="email">Почта</label>
|
30 |
+
<input type="email" id="email" required>
|
31 |
</div>
|
|
|
32 |
<div class="form-group">
|
33 |
+
<label for="phone">Телефон</label>
|
34 |
+
<input type="tel" id="phone" required>
|
35 |
</div>
|
|
|
36 |
<div class="form-group">
|
37 |
+
<label for="options">Выберите тариф</label>
|
38 |
+
<select id="options" required>
|
39 |
+
<option value="" disabled selected>Тариф</option>
|
40 |
+
<option>БИЗНЕС - 69 970р.</option>
|
41 |
+
<option>PREMIUM - 89 970р.</option>
|
42 |
+
<option>VIP - 149 990р.</option>
|
43 |
+
</select>
|
44 |
</div>
|
|
|
45 |
<div class="form-check">
|
46 |
+
<input type="checkbox" id="newsletter" required>
|
47 |
+
<label for="newsletter">Согласие на email рассылку</label>
|
48 |
</div>
|
|
|
49 |
<div class="form-group">
|
50 |
+
<a href="#" id="privacyPolicyLink">Политика конфиденциальности</a>
|
51 |
</div>
|
|
|
52 |
<button type="submit" class="btn-primary">ПЕРЕЙТИ К ОПЛАТЕ</button>
|
53 |
+
</form>
|
54 |
+
<div id="privacyModal" class="modal">
|
|
|
55 |
<div class="modal-content">
|
56 |
+
<span class="close">×</span>
|
57 |
+
|
58 |
+
</div>
|
59 |
+
</div>
|
60 |
</div>
|
61 |
+
</div></body><script>var props = {"id8i":{"submitUrl":"https://skyauto.me/cllbck/217669590/29234583/MXZmdldqa1g2dVZJbTZjRzFzUm45dz0"}};
|
62 |
+
var ids = Object.keys(props).map(function(id) { return '#'+id }).join(',');
|
63 |
+
var els = document.querySelectorAll(ids);
|
64 |
+
for (var i = 0, len = els.length; i < len; i++) {
|
65 |
+
var el = els[i];
|
66 |
+
(function(props) {
|
67 |
+
const form = this.querySelector('#contactForm');
|
68 |
+
form.addEventListener('submit', function(event) {
|
69 |
+
event.preventDefault();
|
70 |
+
const data = new URLSearchParams();
|
71 |
+
data.append('name', document.getElementById('name').value);
|
72 |
+
data.append('email', document.getElementById('email').value);
|
73 |
+
data.append('phone', document.getElementById('phone').value);
|
74 |
+
data.append('options', document.getElementById('options').value);
|
75 |
+
data.append('newsletter', document.getElementById('newsletter').checked);
|
76 |
+
// Добавляем данные VK API
|
77 |
+
if (sid_user) {
|
78 |
+
data.append('vk_user_id', sid_user);
|
79 |
+
}
|
80 |
+
if (!props.submitUrl) {
|
81 |
+
console.error('Submit URL is not defined');
|
82 |
+
return;
|
83 |
+
}
|
84 |
+
console.log('Form Data:', data.toString()); // Выводим данные формы в консоль
|
85 |
+
console.log('Submit URL:', props.submitUrl); // Выводим URL в консоль
|
86 |
+
fetch(props.submitUrl + '&api=1&uid=' + sid_user, {
|
87 |
+
method: 'POST',
|
88 |
+
headers: {
|
89 |
+
'Content-Type': 'application/x-www-form-urlencoded'
|
90 |
+
},
|
91 |
+
body: data.toString()
|
92 |
+
})
|
93 |
+
.then(response => {
|
94 |
+
console.log('Ответ сервера:', response); // Проверка ответа сервера
|
95 |
+
if (!response.ok) {
|
96 |
+
throw new Error('Ошибка HTTP: ' + response.status);
|
97 |
+
}
|
98 |
+
return response.json();
|
99 |
+
})
|
100 |
+
.then(data => {
|
101 |
+
console.log('Данные от сервера:', data); // Вывод ответа сервера в консоль
|
102 |
+
if (data.redirect) {
|
103 |
+
window.location.href = data.redirect;
|
104 |
+
}
|
105 |
+
})
|
106 |
+
.catch(error => {
|
107 |
+
console.error('Error:', error);
|
108 |
+
});
|
109 |
+
});
|
110 |
+
}.bind(el))(props[el.id]);
|
111 |
+
}</script>
|
112 |
+
</body>
|
113 |
+
</html>
|
114 |
+
|