Update js/rus/rus.js
Browse files- js/rus/rus.js +3 -161
js/rus/rus.js
CHANGED
@@ -217,61 +217,13 @@ editor.Blocks.add('avp_grup_v1-settings-block-block', {
|
|
217 |
|
218 |
|
219 |
|
|
|
|
|
220 |
|
221 |
editor.Components.addType('avp_form_v1-settings-block', {
|
222 |
model: {
|
223 |
defaults: {
|
224 |
-
content: '<div
|
225 |
-
<div class="header-section">
|
226 |
-
<div class="circle-image-container">
|
227 |
-
<img src="path/to/your/image.jpg" alt="Круглая картинка" class="circle-image">
|
228 |
-
</div>
|
229 |
-
<h2>Заголовок формы</h2>
|
230 |
-
<p>Подзаголовок формы</p>
|
231 |
-
</div>
|
232 |
-
<form id="contactForm">
|
233 |
-
<div class="form-group">
|
234 |
-
<label for="name">Имя</label>
|
235 |
-
<input type="text" id="name" name="name" required>
|
236 |
-
</div>
|
237 |
-
<div class="form-group">
|
238 |
-
<label for="email">Почта</label>
|
239 |
-
<input type="email" id="email" name="email" required>
|
240 |
-
</div>
|
241 |
-
<div class="form-group">
|
242 |
-
<label for="phone">Телефон</label>
|
243 |
-
<input type="tel" id="phone" name="phone" required>
|
244 |
-
</div>
|
245 |
-
<div class="form-group">
|
246 |
-
<label for="message">Дополнительная информация</label>
|
247 |
-
<textarea id="message" name="message" rows="4" placeholder="Введите ваш текст здесь..."></textarea>
|
248 |
-
</div>
|
249 |
-
<div class="form-group">
|
250 |
-
<label>Выберите тариф</label>
|
251 |
-
<div class="radio-check">
|
252 |
-
<input type="radio" id="option1" name="options" value="БИЗНЕС - 69 970р." required checked> <!-- Выбрана по умолчанию -->
|
253 |
-
<label for="option1">БИЗНЕС - 69 970р.</label>
|
254 |
-
</div>
|
255 |
-
<div class="radio-check">
|
256 |
-
<input type="radio" id="option2" name="options" value="PREMIUM - 89 970р." required>
|
257 |
-
<label for="option2">PREMIUM - 89 970р.</label>
|
258 |
-
</div>
|
259 |
-
<div class="radio-check">
|
260 |
-
<input type="radio" id="option3" name="options" value="VIP - 149 990р." required>
|
261 |
-
<label for="option3">VIP - 149 990р.</label>
|
262 |
-
</div>
|
263 |
-
</div>
|
264 |
-
<div class="checkbox-check">
|
265 |
-
<input type="checkbox" id="newsletter_conf" name="newsletter_conf" required>
|
266 |
-
<label for="newsletter_conf">Согласие с <a href="#" id="usagePolicyLink">Условиями использования</a> и <a href="#" id="privacyPolicyLink">Политикой конфиденциальности</a></label>
|
267 |
-
</div>
|
268 |
-
<div class="checkbox-check">
|
269 |
-
<input type="checkbox" id="newsletter_email" name="newsletter_email" required>
|
270 |
-
<label for="newsletter_email">Согласие на email рассылку</label>
|
271 |
-
</div>
|
272 |
-
<button type="submit" class="btn-primary">ПЕРЕЙТИ К ОПЛАТЕ</button>
|
273 |
-
</form>
|
274 |
-
</div>',
|
275 |
script: function(props) {
|
276 |
window.avp = props.avp;
|
277 |
window.grup = props.grup;
|
@@ -358,116 +310,6 @@ editor.Blocks.add('avp_form_v1-settings-block-block', {
|
|
358 |
category: 'Автопилот - ВК', // Добавляем категорию "Автопилот - ВК"
|
359 |
});
|
360 |
|
361 |
-
// Создаем блок стилей плеера_form
|
362 |
-
editor.CssComposer.addRules(`
|
363 |
-
.containerForm {
|
364 |
-
width: 100%;
|
365 |
-
max-width: 600px;
|
366 |
-
margin: 0 auto;
|
367 |
-
padding: 20px;
|
368 |
-
background-color: #f5faff;
|
369 |
-
border-radius: 8px;
|
370 |
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
371 |
-
}
|
372 |
-
|
373 |
-
.header-section {
|
374 |
-
text-align: center;
|
375 |
-
margin-bottom: 20px;
|
376 |
-
}
|
377 |
-
|
378 |
-
.circle-image {
|
379 |
-
display: inline-block;
|
380 |
-
border-radius: 50%;
|
381 |
-
overflow: hidden;
|
382 |
-
width: 150px;
|
383 |
-
height: 150px;
|
384 |
-
margin-bottom: 10px;
|
385 |
-
}
|
386 |
-
|
387 |
-
.circle-image img {
|
388 |
-
width: 100%;
|
389 |
-
height: 100%;
|
390 |
-
object-fit: cover;
|
391 |
-
}
|
392 |
-
|
393 |
-
.form-group {
|
394 |
-
margin-bottom: 20px;
|
395 |
-
}
|
396 |
-
|
397 |
-
.form-group label {
|
398 |
-
display: block;
|
399 |
-
margin-bottom: 5px;
|
400 |
-
font-weight: bold;
|
401 |
-
color: #333;
|
402 |
-
}
|
403 |
-
|
404 |
-
.form-group input,
|
405 |
-
.form-group select,
|
406 |
-
.form-group textarea {
|
407 |
-
width: 100%;
|
408 |
-
padding: 10px;
|
409 |
-
border: 1px solid #ccc;
|
410 |
-
border-radius: 4px;
|
411 |
-
font-size: 16px;
|
412 |
-
}
|
413 |
-
|
414 |
-
.radio-check {
|
415 |
-
margin-bottom: 15px;
|
416 |
-
display: flex;
|
417 |
-
align-items: center;
|
418 |
-
}
|
419 |
-
|
420 |
-
.checkbox-check {
|
421 |
-
margin-bottom: 15px;
|
422 |
-
display: flex;
|
423 |
-
align-items: center;
|
424 |
-
}
|
425 |
-
|
426 |
-
.radio-check input[type="radio"],
|
427 |
-
.checkbox-check input[type="checkbox"] {
|
428 |
-
margin-right: 10px;
|
429 |
-
width: 15px; /* Применяем ширину, как в вашем примере */
|
430 |
-
}
|
431 |
-
|
432 |
-
.radio-check label,
|
433 |
-
.checkbox-check label {
|
434 |
-
font-size: 14px;
|
435 |
-
color: #555;
|
436 |
-
}
|
437 |
-
|
438 |
-
.btn-primary {
|
439 |
-
display: inline-flex;
|
440 |
-
margin: 10px;
|
441 |
-
text-decoration: none;
|
442 |
-
position: relative;
|
443 |
-
font-size: 20px;
|
444 |
-
line-height: 20px;
|
445 |
-
padding: 12px 30px;
|
446 |
-
color: #FFF;
|
447 |
-
font-weight: bold;
|
448 |
-
text-transform: uppercase;
|
449 |
-
font-family: 'Roboto', Тahoma, sans-serif;
|
450 |
-
background: #337AB7;
|
451 |
-
cursor: pointer;
|
452 |
-
border: 2px solid #BFE2FF;
|
453 |
-
outline: 1px solid;
|
454 |
-
outline-color: #337AB7;
|
455 |
-
outline-offset: 0px;
|
456 |
-
text-shadow: none;
|
457 |
-
transition: all 1.5s cubic-bezier(0.19, 1, 0.22, 1);
|
458 |
-
}
|
459 |
-
|
460 |
-
.btn-primary:hover,
|
461 |
-
.btn-primary:active,
|
462 |
-
.btn-primary:focus {
|
463 |
-
box-shadow: inset 0 0 20px #BFE2FF;
|
464 |
-
outline-color: rgba(255, 255, 255, 0);
|
465 |
-
outline-offset: 15px;
|
466 |
-
color: #FFF;
|
467 |
-
}
|
468 |
-
`);
|
469 |
-
|
470 |
-
|
471 |
|
472 |
|
473 |
|
|
|
217 |
|
218 |
|
219 |
|
220 |
+
|
221 |
+
|
222 |
|
223 |
editor.Components.addType('avp_form_v1-settings-block', {
|
224 |
model: {
|
225 |
defaults: {
|
226 |
+
content: '<div id="set_avp1"></div>',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
227 |
script: function(props) {
|
228 |
window.avp = props.avp;
|
229 |
window.grup = props.grup;
|
|
|
310 |
category: 'Автопилот - ВК', // Добавляем категорию "Автопилот - ВК"
|
311 |
});
|
312 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
313 |
|
314 |
|
315 |
|