PageSourceSearch

https://divage.com/bitrix/templates/new/js/search/search.js

js divage.com collected 2026-10-03 22:23:04 UTC 380 bytes, 13 lines download raw bytes

1$(document).ready(() => {
2    $('.js-search').on('click', function(){
3        const target = $(this);
4        const searchInput = target.siblings('.js-search__input');
5
6        if(searchInput.val()){
7            target.closest('.js-search__form').submit();
8            return;
9        }
10
11        target.closest('.search__content').toggleClass('search__content--open');
12    });
13});

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.