PageSourceSearch

https://lk.subaru.ru/js/main.js?v=4

js subaru.ru collected 2026-10-02 16:39:24 UTC 3,974 bytes, 152 lines download raw bytes

1$(document).ready(function(){
2
3    $('.page-list__link[href^="#"]').click(function(e){
4        e.preventDefault();
5        let anchor = $(this).attr('href');
6        $('html, body').animate({
7            scrollTop: $(anchor).offset().top
8        }, 600);
9    });
10
11	if ($("#arigato-range").length) {
12
13		var maxP = parseInt($("#arigato-range").attr('data-max')) || 100;
14
15	    $("#arigato-range").slider({
16	        // animate: "fast",
17	        range: "min",
18	        min: 10,
19	        max: maxP,
20	        step: 10,
21	        value: 0,
22	        slide : function(event, ui) {
23	            $("#arigato-range-text").text(ui.value.toLocaleString());
24	            $(".cert-points-text-input").val(ui.value);
25	            var obj = $(".cert-points-text-input").data('obj');
26				obj.updateValue();
27	        }
28	    });
29	    $( "#arigato-range-text" ).text($( "#arigato-range" ).slider("value").toLocaleString());
30	}
31
32    function readURL(input) {
33        if (input.files && input.files[0]) {
34            var reader = new FileReader();
35
36            reader.onload = function (e) {
37                $('.form-add-auto img').attr('src', e.target.result);
38            }
39
40            reader.readAsDataURL(input.files[0]);
41
42            $('.form-add-auto').addClass('active');
43        }
44    }
45
46    $(".form-add-auto input").change(function(){
47        readURL(this);
48    });
49
50    $(".form-add-auto .ico-delete").click(function(){
51        $(this).parent().removeClass('active');
52        $('.form-add-auto img').attr('src', '#');
53        return false;
54    });
55
56    $('.cabinet__online-wrap').slick({
57        slidesToShow: 4,
58        slidesToScroll: 1,
59        infinite: false,
60        arrows: true,
61        dots: false,
62        fade: false,
63        centerMode: false,
64        centerPadding: '0',
65        variableWidth: true,
66        // adaptiveHeight: true,
67        responsive: [
68            {
69                breakpoint: 1025,
70                settings: {
71                    slidesToShow: 1,
72                }
73            },
74        ]
75    });
76
77    $('.cabinet__garage-slider').slick({
78        slidesToShow: 1,
79        slidesToScroll: 1,
80        infinite: false,
81        arrows: true,
82        // dots: true,
83        fade: false,
84        centerMode: false,
85        centerPadding: '0',
86        // variableWidth: true,
87        // adaptiveHeight: true,
88    });
89
90    $('.input-group.date.date-1').datepicker({
91        format: "dd/mm/yyyy",
92        weekStart: 1,
93        maxViewMode: 2,
94        language: "ru",
95        orientation: "bottom right",
96        keyboardNavigation: false,
97        autoclose: true,
98        todayHighlight: true,
99        forceParse: false,
100        defaultViewDate: { year: 1990, month: 0, day: 1 }
101    });
102
103    $('.input-group.date.date-2').datepicker({
104        format: "dd/mm/yyyy",
105        weekStart: 1,
106        maxViewMode: 2,
107        language: "ru",
108        orientation: "bottom right",
109        keyboardNavigation: false,
110        autoclose: true,
111        todayHighlight: true,
112        forceParse: false,
113        startDate: new Date(),
114    });
115
116	if ($(window).width() <= 1024) {
117
118	} else {
119        $('.cabinet__services').slick({
120            slidesToShow: 4,
121            slidesToScroll: 1,
122            infinite: false,
123            arrows: true,
124            dots: false,
125            fade: false,
126            variableWidth: true,
127            // adaptiveHeight: true,
128            responsive: [
129                {
130                    breakpoint: 1025,
131                    settings: {
132                        slidesToShow: 1,
133                        arrows: false,
134                    }
135                },
136            ]
137        });
138    }
139
140    var md = new MobileDetect(window.navigator.userAgent);
141
142    if (!md.mobile()) {
143
144	} else {
145        
146	}
147
148	$('.scrollbar-inner').scrollbar();
149
150	$(function() { $('select').selectric(); });
151
152});

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.