PageSourceSearch

https://firstline.com.ua/CMS/templates/basic/default/js/script.js

js firstline.com.ua collected 2026-09-26 11:05:01 UTC 1,851 bytes, 65 lines download raw bytes

1$(document).ready(function() {
2            var select2Retries = 0;
3            var select2Options = {
4                width: '100%',
5                dropdownAutoWidth : true,
6                tags: true,
7                tokenSeparators: [',', ' '],
8                insertTag: function (data, tag) {
9                    data.push(tag);
10                }
11            };
12
13            function initSelect2() {
14                if ($.fn.select2) {
15                    $(".select-keywords").select2(select2Options);
16                    return;
17                }
18
19                if (select2Retries < 10) {
20                    select2Retries++;
21                    setTimeout(initSelect2, 300);
22                }
23            }
24
25            initSelect2();
26
27
28            var inputmaskRetries = 0;
29            var phoneMask = "9 (9{3}) 9{1,3}-9{1,3}-9{1,3}";
30
31            function initInputmask() {
32                if ($.fn.inputmask) {
33                    $("#seoPhone, #phoneWhatsapp, #phoneTelegram").inputmask(phoneMask);
34                    return;
35                }
36
37                if (inputmaskRetries < 10) {
38                    inputmaskRetries++;
39                    setTimeout(initInputmask, 300);
40                }
41            }
42
43            initInputmask();
44
45
46    $('.descr_detail_all').on('click', function(){
47        $('.module_descr').toggle('fast', function(){
48            if($(this).is(":visible")){
49                $('.descr_detail_all').removeClass('fa-chevron-down');
50                $('.descr_detail_all').addClass('fa-chevron-up');
51            }
52            else {
53                $('.descr_detail_all').removeClass('fa-chevron-up');
54                $('.descr_detail_all').addClass('fa-chevron-down');
55            }
56        });
57    });
58
59//	$("[data-fancybox]").fancybox({
60//	});
61
62//	$("[data-fancybox='gallery-a']").fancybox({
63//	});
64});
65

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.