Update settings.html
Browse files- settings.html +98 -87
settings.html
CHANGED
|
@@ -1,89 +1,100 @@
|
|
| 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>Contact Form</title>
|
| 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 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
|
| 2 |
+
<!DOCTYPE html>
|
| 3 |
+
<html lang="en">
|
| 4 |
+
<head>
|
| 5 |
+
<meta charset="UTF-8">
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 7 |
+
<title>Скачанная HTML-страница</title>
|
| 8 |
+
<style>* { box-sizing: border-box; } body {margin: 0;}</style>
|
| 9 |
+
</head>
|
| 10 |
+
<body>
|
| 11 |
+
<body id="i4xf"><div id="ivdm"></div><div id="ivfa">
|
| 12 |
+
<div class="container">
|
| 13 |
+
<form id="contactForm">
|
| 14 |
+
<div class="form-group">
|
| 15 |
+
<label for="name">Имя</label>
|
| 16 |
+
<input type="text" id="name" required>
|
| 17 |
+
</div>
|
| 18 |
+
<div class="form-group">
|
| 19 |
+
<label for="email">Почта</label>
|
| 20 |
+
<input type="email" id="email" required>
|
| 21 |
+
</div>
|
| 22 |
+
<div class="form-group">
|
| 23 |
+
<label for="phone">Телефон</label>
|
| 24 |
+
<input type="tel" id="phone" required>
|
| 25 |
+
</div>
|
| 26 |
+
<div class="form-group">
|
| 27 |
+
<label for="options">Выберите тариф</label>
|
| 28 |
+
<select id="options" required>
|
| 29 |
+
<option value="" disabled selected>Тариф</option>
|
| 30 |
+
<option>БИЗНЕС - 69 970р.</option>
|
| 31 |
+
<option>PREMIUM - 89 970р.</option>
|
| 32 |
+
<option>VIP - 149 990р.</option>
|
| 33 |
+
</select>
|
| 34 |
+
</div>
|
| 35 |
+
<div class="form-check">
|
| 36 |
+
<input type="checkbox" id="newsletter" required>
|
| 37 |
+
<label for="newsletter">Согласие на email рассылку</label>
|
| 38 |
+
</div>
|
| 39 |
+
<div class="form-group">
|
| 40 |
+
<a href="#" id="privacyPolicyLink">Политика конфиденциальности</a>
|
| 41 |
+
</div>
|
| 42 |
+
<button type="submit" class="btn-primary">ПЕРЕЙТИ К ОПЛАТЕ</button>
|
| 43 |
+
</form>
|
| 44 |
+
</div>
|
| 45 |
+
</div></body><script>var props = {"ivfa":{}};
|
| 46 |
+
var ids = Object.keys(props).map(function(id) { return '#'+id }).join(',');
|
| 47 |
+
var els = document.querySelectorAll(ids);
|
| 48 |
+
for (var i = 0, len = els.length; i < len; i++) {
|
| 49 |
+
var el = els[i];
|
| 50 |
+
(function(props) {
|
| 51 |
+
const initForm = () => {
|
| 52 |
+
const form = this.querySelector('#contactForm');
|
| 53 |
+
const avpInput = form.querySelector('input[name="avp_v"]');
|
| 54 |
+
const grupInput = form.querySelector('input[name="grup_v"]');
|
| 55 |
+
const red_urlInput = form.querySelector('input[name="red_url_v"]');
|
| 56 |
+
|
| 57 |
+
if (avpInput) {
|
| 58 |
+
avpInput.value = props.avp;
|
| 59 |
+
}
|
| 60 |
+
if (grupInput) {
|
| 61 |
+
grupInput.value = props.grup;
|
| 62 |
+
}
|
| 63 |
+
if (red_urlInput) {
|
| 64 |
+
red_urlInput.value = props.red_url;
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
console.log('Form initialized with props:', props);
|
| 68 |
+
};
|
| 69 |
+
|
| 70 |
+
const loadScript = (src, callback) => {
|
| 71 |
+
const script = document.createElement('script');
|
| 72 |
+
script.src = src;
|
| 73 |
+
script.onload = callback;
|
| 74 |
+
document.body.appendChild(script);
|
| 75 |
+
};
|
| 76 |
+
|
| 77 |
+
// Загружаем необходимые скрипты динамически
|
| 78 |
+
if (typeof vkBridge === 'undefined') {
|
| 79 |
+
loadScript('https://unpkg.com/@vkontakte/vk-bridge/dist/browser.min.js', () => {
|
| 80 |
+
console.log('VK Bridge loaded!');
|
| 81 |
+
initForm();
|
| 82 |
+
});
|
| 83 |
+
} else {
|
| 84 |
+
initForm();
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
if (typeof VK === 'undefined') {
|
| 88 |
+
loadScript('https://vk.com/js/api/openapi.js?169', () => {
|
| 89 |
+
console.log('VK Open API loaded!');
|
| 90 |
+
});
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
loadScript('https://huggingface.co/spaces/vkatis/api/resolve/main/bundle.3ea86973b4b6c8f6c2bf.js', () => {
|
| 94 |
+
console.log('Custom script loaded!');
|
| 95 |
+
});
|
| 96 |
+
}.bind(el))(props[el.id]);
|
| 97 |
+
}</script>
|
| 98 |
+
</body>
|
| 99 |
+
</html>
|
| 100 |
|