PageSourceSearch

https://so-spa.ru/local/templates/spabass.v3/components/spabass/feedback/spabass.v3/script.js?17715835592766

js so-spa.ru collected 2026-10-07 04:19:51 UTC 2,766 bytes, 53 lines download raw bytes

1document.addEventListener('DOMContentLoaded', function(){
2    var el = document.getElementById('question-form')[0].getElementsByClassName('form-control');
3    for (let item of el) {
4            item.addEventListener('keyup', function(){
5            if (this.value != null && this.value.length !== 0){
6                    this.classList.add('is_valid');
7            } else {
8                    this.classList.remove('is_valid');
9            }
10            }, false);
11    }
12    })
13    $(document).ready(function(){
14            $('#question-form').on('submit', (e) => {
15                    e.preventDefault();
16                    $.ajax({
17                    url: "/ajax/ajax_send.php", // куда отправляем
18                    type: "post", // метод передачи
19                    //dataType: "json", // тип передачи данных
20                    data: $(e.target).serialize(),
21                    // после получения ответа сервера
22                    success: function(data){
23                            $.fancybox.open(data);
24                            setTimeout(function(){
25                                    $('input', e.target).each(function(){
26                                    if ($(this).attr('type') == 'checkbox'){
27                                            $(this).prop('checked', false);
28                                    } else if ($(this).attr('type') == 'submit' || $(this).attr('name') == 'sessid' || $(this).attr('name') == 'title') {
29                                            
30                                    } else {
31                                            this.value = '';
32                                    }
33                                    if (this.classList.contains('is_valid')){
34                                            this.classList.remove('is_valid');
35                                    }
36                                    });
37                                    $('select', e.target).each(function(){
38                                    this.value = '';
39                                    if (this.classList.contains('is_valid')){
40                                            this.classList.remove('is_valid');
41                                    }
42                                    });
43                                    //$.fancybox.close(true);
44                            }, 2500);
45                            //feedback_massage();
46                    },
47                    error: function(data){
48                            console.log("Error: "+JSON.parse(data));
49                            //feedback_massage();
50                    }
51                    });
52            });
53    }); 

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.