PageSourceSearch

https://dentagarant.com/js/simplesearch.js

js dentagarant.com collected 2026-09-28 18:52:31 UTC 2,359 bytes, 46 lines download raw bytes

1$(document).ready(function() {
2    $(".sisea-search-form").submit(function () {
3        // раскоментировать если нужна кнопка
4        //$("#site-search-results").load("/search-results.html",$(".sisea-search-form").serialize()).slideDown("fast");
5        return false;
6    });
7    // Живой поиск
8    $(".sisea-search-form input").keyup(function() {
9        if(this.value.length > 2) { // Пользователь набирает больше 2 символов в строке поиска
10            // скрывает/отображает с результаты за пределами окна
11            $(document).click(function(event){ // скрываем
12                if ($(event.target).closest(".site-search-results").length) return;
13                if (window.matchMedia("(min-width: 400px)").matches) {
14                    $(".site-search-results").slideUp("fast");
15                }
16                //event.stopPropagation();
17            });
18
19            $('#site-search-results').append('<span id="load"&g;LOADING...</span>');
20            $('#load').fadeIn('normal');
21
22            $('#search').click( function() { // отображаем
23                $(".site-search-results").slideDown("fast");
24                return false;
25            });
26            // ajax запрос загрузка результатов поиска от страницы и показ контейнера
27            $("#site-search-results").load("/rezultatyi-poiska.html",$(".sisea-search-form").serialize()).slideDown("fast");
28        }
29        else {
30            // Если набрано меньше 2 символов, скрыть контейнер (CSS display:none;)
31            $("#site-search-results").slideUp("fast");
32        }
33    });
34    if (window.matchMedia("(max-width: 400px)").matches) {
35        $('.search-pol').on('click', function () {
36            $('.service-banner-block__text-content-bottom, .service-banner-block__content').addClass('active');
37            $('.site-search-back').slideDown(300);
38        });
39
40        $('.site-search-back').on('click', function () {
41            $('.service-banner-block__text-content-bottom, .service-banner-block__content').removeClass('active');
42            $(this).hide();
43            $(".site-search-results").slideUp("fast");
44        });
45    }
46});

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.