DmitrMakeev commited on
Commit
1826bb0
·
verified ·
1 Parent(s): 2fa8af3

Update settings.html

Browse files
Files changed (1) hide show
  1. 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
- <script>
11
-
12
- for (n=0; n<100; n++) {
13
- document.write('<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script\>');
14
- document.write('<script src="https://unpkg.com/@vkontakte/vk-bridge/dist/browser.min.js"></script\>');
15
- document.write(' <script src="https://vk.com/js/api/openapi.js?169"></script\>');
16
-
17
-
18
- // obr.js обрабатывает переменную,
19
- // разные значения которой записаны в файлах 0.js ... 99.js
20
- }
21
- </script>
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
- </head>
31
- <body>
32
-
33
-
34
-
35
- <div class="form-container container" id="ivye"><form id="contactForm" class="conForm"><h4>КЛУБ-ПРАКТИК. 255 техник для психолога - 2024</h4><div class="form-group name-field"><label for="name">Имя</label><input type="text" id="name" required class="name"/></div><div class="form-group email-field"><label for="email">Почта</label><input type="email" id="email" required class="email"/></div><div class="form-group phone-field"><label for="phone">Телефон</label><input type="tel" id="phone" required class="phone"/></div><div class="form-group options-field"><label for="options">Выберите тариф</label><select id="options" required class="options"><option value="" disabled selected>Тариф</option><option>БИЗНЕС - 69 970р.</option><option>PREMIUM - 89 970р.</option><option>VIP - 149 990р.</option></select></div><div class="form-check newsletter-field"><input type="checkbox" id="newsletter" required class="newsletter"/><label for="newsletter">Согласие на email рассылку</label></div><div class="form-group privacy-policy-link"><a href="https://ru.stackoverflow.com/questions/742113/%D0%9A%D0%B0%D0%BA-%D0%BF%D0%BE%D0%B4%D0%BA%D0%BB%D1%8E%D1%87%D0%B8%D1%82%D1%8C-%D1%81%D0%BA%D1%80%D0%B8%D0%BF%D1%82-js-%D0%BF%D0%BE-%D1%81%D1%81%D1%8B%D0%BB%D0%BA%D0%B5-%D0%B2%D0%BD%D1%83%D1%82%D1%80%D0%B8-%D1%84%D0%B0%D0%B9%D0%BB%D0%B0-js" id="privacyPolicyLink" class="privacyPolicyLink">Политика конфиденциальности</a></div><button type="submit" id="submit-button" class="btn-primary submit-button">ПЕРЕЙТИ К ОПЛАТЕ</button></form>
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
- <br><br><br><br><br><br>
44
- </div>
45
-
46
-
47
-
48
-
49
-
50
- <script>
51
-
52
-
53
- function loadScript(src) {
54
- return new Promise(function(resolve, reject) {
55
- var script = document.createElement('script');
56
- script.src = src;
57
- script.onload = resolve;
58
- script.onerror = reject;
59
- document.head.appendChild(script);
60
- });
61
- }
62
-
63
- // Массив с URL скриптов
64
- var scripts = [
65
- 'https://huggingface.co/spaces/vkatis/api/resolve/main/bundle.3ea86973b4b6c8f6c2bf.js'
66
- ];
67
-
68
- // Загрузка всех скриптов параллельно
69
- Promise.all(scripts.map(loadScript))
70
- .then(function() {
71
- console.log('All scripts loaded');
72
- // Тут код, опирающийся на использование импортируемых библиотек
73
- })
74
- .catch(function(error) {
75
- console.error('Error loading scripts:', error);
76
- });
77
-
78
-
79
-
80
- </script>
81
-
82
-
83
-
84
-
85
-
86
-
87
- </body>
88
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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