PageSourceSearch

https://greenresorthotelspa.com/local/templates/greenpark/components/vigroup/form.callback/.default/script.js

js greenresorthotelspa.com collected 2026-10-04 09:33:10 UTC 828 bytes, 21 lines download raw bytes

1/**
2 * Валидация и обработка форм
3 */
4document.addEventListener('DOMContentLoaded', function() {
5    // Инициализация валидации
6    if (typeof Vigroup !== 'undefined' && Vigroup.validate) {
7        document.querySelectorAll('.form_container').forEach(function(form) {
8            // Ваша существующая логика валидации
9        });
10    }
11
12    // Обработка клика по кнопке (для совместимости)
13    document.querySelectorAll('.callback').forEach(function(button) {
14        button.addEventListener('click', function(e) {
15            if (this.closest('form').reportValidity()) {
16                this.closest('form').dispatchEvent(new Event('submit'));
17            }
18            e.preventDefault();
19        });
20    });
21});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.