PageSourceSearch

https://www.poland-export.com/js/indexVenti.js?v=18092026

js poland-export.com collected 2026-10-02 06:28:18 UTC 28,727 bytes, 827 lines download raw bytes

1$(function () {
2    styledCheckbox();
3    relatedCheckboxes();
4    thumbCompanyList();
5    galleryCompany();
6    submenuDelay();
7    mobileCategoryDrop();
8    submitSearchLocation();
9    subMenuForm();
10    fixCenterHeightBySidebar();
11    searchLoader();
12    inputSearchBind();
13    targetHrefMod();
14
15    if (document.getElementById('textContent')) {
16        let elSize = document.getElementById("textContent").offsetHeight;
17        if (document.querySelector('#companyPhoto')) {
18            document.querySelector('#companyPhoto').style.height = elSize + "px";
19        }
20    }
21
22    $(".defaultText").focus(function(srcc)
23    {
24        if ($(this).val() == $(this)[0].title)
25        {
26            $(this).removeClass("defaultTextActive");
27            $(this).val("");
28        }
29    });
30    $(".defaultText").blur(function()
31    {
32        if ($(this).val() == "") {
33            $(this).addClass("defaultTextActive");
34            $(this).val($(this)[0].title);
35        }
36    });
37    $(".defaultText").blur();
38
39    if ($(".categoryList").length > 0){
40        var categoryPos = $(".categoryList").position({scroll: false}).top;
41        $(window).scroll(function() {
42            if ($(window).scrollTop() > categoryPos - 115 ) {
43                $(".categoryList").css("position", "fixed");
44                $(".categoryList").css("top", "115px");
45            } else {
46                $(".categoryList").css("position", "relative");
47                $(".categoryList").css("top", "0");
48
49            }
50            if( $(".categoryList").offset().top+$(".categoryList").height() > $('footer').position().top ) {
51                var categoryTop = ($(".categoryList").offset().top+$(".categoryList").height() )
52                    - ($('footer').position().top);
53                categoryTop = 115 - categoryTop;
54                $(".categoryList").css("top", categoryTop+'px');
55            }
56
57        });
58    }
59
60    if ($("#presentation-gallery").length > 0){
61
62        $('#containerC a[id^="photo_"]').click(function() {
63
64            var imageSrc = $(this).children().attr('src');
65
66            $('.presentation-image').html('<img src="'+imageSrc+'">')
67
68        });
69
70    }
71
72    $(document).on('click', function(event) {
73        const $target = $(event.target);
74
75        if (!$target.closest('.button_branches_container').length) {
76            $('.button_branches_container').removeClass('active');
77        }
78
79        if ($target.hasClass('button_branches')) {
80            event.stopPropagation();
81
82            const $buttonBranchesContainer = $target.parent();
83            const $buttonBranchesInfo = $buttonBranchesContainer.find('.button_branches_info');
84
85            $('.button_branches_container').not($buttonBranchesContainer).removeClass('active');
86            $buttonBranchesContainer.toggleClass('active');
87        }
88    });
89
90    $('button[class="button_directions"]').click(function() {
91        $(this).next().css('display','block');
92    });
93
94    $('div[class="button_directions_info"]').hover(
95        function() {
96        },
97        function() {
98            $(this).css('display','none');
99        }
100    );
101
102    var centerBigBanner = $('#centerBigBanner');
103    centerBigBanner.owlCarousel({
104        dots: false,
105        loop: true,
106        autoplay: true,
107        autoplayTimeout: 4000,
108        autoplaySpeed: 1000,
109        autoplayHoverPause: false,
110        items: 1
111    });
112
113    var companyPressSlider =  $('.companyPressList.desktop.owl-carousel');
114    companyPressSlider.owlCarousel({
115        margin: 20,
116        dots: true,
117        //lazyLoad: true,
118        autoplay: false,
119        nav:false,
120        mouseDrag: true,
121        touchDrag: false,
122        items: 1
123
124    });
125
126    var companyPressSliderMobile =  $('.companyPressList.mobile.owl-carousel');
127    companyPressSliderMobile.owlCarousel({
128        margin: 20,
129        dots: true,
130        //lazyLoad: true,
131        autoplay: false,
132        nav:false,
133        mouseDrag: true,
134        touchDrag: false,
135        items: 1
136
137    });
138
139    var promotedThumbList =  $('#promotedThumbList');
140    promotedThumbList.children().each( function( index ) {
141        $(this).attr( 'data-position', index );
142    });
143    promotedThumbList.owlCarousel({
144        margin: 10,
145        dots: true,
146        nav: true,
147        navText: ['',''],
148        //lazyLoad: true,
149        autoplay: true,
150        loop: true,
151        autoplayTimeout: 10000,
152        autoplaySpeed: 1000,
153        autoplayHoverPause: true,
154        responsive: {
155            0: {
156                items: 2
157            },
158            600: {
159                items: 3
160            },
161            1000: {
162                items: 4
163            }
164        },
165    });
166    promotedThumbList.on('changed.owl.carousel',function(property){
167        var current = property.item.index;
168        var currentNr = $(property.target).find(".owl-item").eq(current).find(".promotedThumb").attr('data-promotedid');
169        jQuery('#promotedCompanyList .promotedItem').each(function(){
170            jQuery(this).removeClass('active');
171        });
172        jQuery('#promotedCompanyList .promotedItem.item-'+currentNr).addClass('active');
173    });
174
175
176    jQuery('#promotedThumbList .owl-item').each(function() {
177        jQuery(this).click(function(){
178            var n = jQuery(this).index();
179            jQuery('#promotedCompanyList .promotedItem').each(function(){
180
181
182                jQuery(this).removeClass('active');
183            });
184            var id = jQuery(this).find('.promotedThumb').attr('data-promotedid');
185
186            jQuery('#promotedCompanyList .promotedItem.item-'+id).first().addClass('active');
187        });
188    });
189
190    var topexportarticle =  $('#topexportarticle');
191    topexportarticle.owlCarousel({
192        margin: 10,
193        nav: true,
194        navText: ['',''],
195        dots: false,
196        //lazyLoad: true,
197        autoplay: true,
198        loop: true,
199        autoplayTimeout: 10000,
200        autoplaySpeed: 1000,
201        autoplayHoverPause: true,
202        responsive: {
203            0: {
204                items: 1
205            },
206            400: {
207                items: 1
208            },
209            600: {
210                items: 1
211            },
212            1000: {
213                items: 1
214            }
215        },
216    });
217
218    var partnerBox =  $('#partnerBoxSlider');
219    partnerBox.owlCarousel({
220        margin: 10,
221        nav: true,
222        navText: ['',''],
223        dots: false,
224        //lazyLoad: true,
225        autoplay: true,
226        loop: true,
227        autoplayTimeout: 10000,
228        autoplaySpeed: 1000,
229        autoplayHoverPause: true,
230        responsive: {
231            0: {
232                items: 2
233            },
234            600: {
235                items: 3
236            },
237            1000: {
238                items: 5
239            }
240        },
241    });
242
243    var bbInnerBox =  $('.centerBigBannerInner');
244    bbInnerBox.owlCarousel({
245        margin: 10,
246        nav: false,
247        dots: true,
248        autoplay: true,
249        loop: true,
250        autoplayTimeout: 10000,
251        autoplaySpeed: 1000,
252        autoplayHoverPause: true,
253        items: 1
254    });
255
256    $('#calculate_currency').click(function() {
257        var currVal = $('#currency_value_1').val();
258        var currency_1 = $('#currency1').val();
259        var currency_2 = $('#currency2').val();
260
261        $.ajax({
262            url: '/index.php/calculateCurrencies/'+currency_1+'/'+currency_2+'/'+currVal,
263            success: function(data) {
264                if(data!=''){
265                    $('#calculator_results').attr('value', data);
266                    $('#calculator_results').val(data);
267                }else{
268                }
269            }
270        });
271
272        return false;
273    });
274
275    $('#clear_calculator').click(function() {
276        $('#calculator_results').val('');
277        return false;
278    });
279
280
281    $('a[id^="continent_"]').click(function() {
282
283        var linkId = $(this).attr('id');
284        var contentId = '#'+linkId.replace('continent_','continent_content_');
285
286        var display = $(contentId).css('display');
287
288        if(display == 'block'){
289            $(contentId).css('display', 'none');
290        }else{
291            $(contentId).css('display', 'block');
292        }
293
294        return false;
295    });
296
297    $('input[class="close-convertel-box"]').click(function() {
298        $(this).parent().css('display','none');
299        return false;
300    });
301    $(document).ready(function(){
302
303
304    });
305
306    $('a[class="show-subcategories-button"]').click(function() {
307        $(this).nextAll(".subcategories-block:first").toggle();
308        return false;
309    });
310
311    $('#submit-form-button').click(function() {
312        var control = $('#search-advert-control').val();
313        if(control == 0){
314            var keyword = $('#input-search').val();
315
316            $('#hidden-keyword').val(keyword);
317        }
318
319
320        var cValue = $('#searchFormBox input[name="c"]').val();
321        if($.trim(cValue)!=''){
322            $('#search-advert-control').val('1');
323            $('#hidden-keyword').val('');
324        }
325
326    });
327
328    $('#result_counter').change(function() {
329
330        $(this).closest("form").submit();
331
332
333    });
334
335    $('input[name="categories[]"]').change(function() {
336
337        var selectedCatId = $(this).val();
338        var is_checked = $(this).attr('checked');
339        var hiddenFormCat = $('#hidden-cat').val();
340        var hiddenCatId = $('#hidden-maincat').html();
341
342        if(is_checked == 'checked'){
343            if (hiddenCatId == ''){
344                $('#hidden-cat').val(selectedCatId);
345                $('#hidden-maincat').html(hiddenFormCat);
346            }else{
347                $('#hidden-cat').val(hiddenFormCat + ',' + selectedCatId);
348            }
349        }else{
350
351            if (hiddenFormCat.indexOf(",") >= 0){
352                $('#hidden-cat').attr('value',hiddenFormCat.replace(','+selectedCatId,''));
353                $('#hidden-cat').val(hiddenFormCat.replace(','+selectedCatId,''));
354            }else{
355                $('#hidden-cat').val(hiddenCatId);
356                $('#hidden-maincat').html('');
357            }
358
359        }
360    });
361
362    $('#showAllCategories').click(function() {
363        var list = $(this).parent().parent();
364        list.find('li').each(function() {
365            $(this).css('display','block');
366        });
367
368        $(this).css('display','none');
369        $('#hideAllCategories').css('display','block');
370        return false;
371    });
372
373    $('#hideAllCategories').click(function() {
374
375        var i=0;
376        var list = $(this).parent().parent();
377        list.find('li').each(function() {
378            i++;
379            if(i <= 30){
380                $(this).css('display','block');
381            }else{
382                $(this).css('display','none');
383            }
384        });
385
386        list.find('li:last').prev('li').css('display','block');
387        list.find('li:last').css('display','block');
388
389        $(this).css('display','none');
390        $('#showAllCategories').css('display','block');
391        return false;
392    });
393
394    function styledCheckbox() {
395        $('.checkboxStyle').each(function () {
396            if($(this).attr('checked')=='checked') {
397                $(' <div class="checkbox-view active"></div>').insertBefore(this);
398            } else {
399                $(' <div class="checkbox-view"></div>').insertBefore(this);
400            }
401
402            var labelParent = $(this).parent('label');
403            if (labelParent.length > 0) {
404
405                labelParent.replaceWith(function () {
406                    return '<div>' + $(this).html() + '</div>';
407                });
408            }
409
410
411        });
412
413        let LimitCheckboxCounter = 0;
414        let LimitCheckboxCounterDesktop = 0;
415
416        $('.checkbox-view').on('click', function () {
417            if ($(this).parents('ul#subcategoryList-voivodeship').length > 0) {
418                const parent = $(this).parents('ul#subcategoryList-voivodeship');
419                parent.find('input[type="checkbox"]').prop('checked', false);
420                parent.find('input[type="checkbox"]').removeAttr('checked');
421                parent.find('.checkbox-view').removeClass('active');
422
423                $(this).addClass('active');
424                $(this).parent().find('input[type="checkbox"]').prop('checked', true);
425            } else if ($(this).parents('ul.limit-checkbox').length > 0) {
426                if ($(this).hasClass('active')) {
427                    $(this).removeClass('active');
428                    $(this).parent().find('input[type="checkbox"]').prop('checked', false);
429                    $(this).parent().find('input[type="checkbox"]').removeAttr('checked');
430                    LimitCheckboxCounter--;
431                }else {
432                    if (LimitCheckboxCounter < 5) {
433                        $(this).addClass('active');
434                        $(this).parent().find('input[type="checkbox"]').prop('checked', true);
435                        LimitCheckboxCounter++;
436                    } else {
437                        $(this).parents('ul.limit-checkbox').find('.checkbox-limit-info').removeClass('d-none').hide().fadeIn(200);
438                        setTimeout(function () {
439                            $('.checkbox-limit-info').fadeOut(200, function () {
440                                $(this).addClass('d-none');
441                            });
442                        }, 3000);
443                    }
444                }
445                if ($(this).parent().hasClass('subCatItem')) {
446                    frontpageCategoriesCheckbox($(this).closest('form'));
447                }
448            } else if ($(this).parents('ul.limit-checkbox-desktop').length > 0) {
449                if ($(this).hasClass('active')) {
450                    $(this).removeClass('active');
451                    $(this).parent().find('input[type="checkbox"]').prop('checked', false);
452                    $(this).parent().find('input[type="checkbox"]').removeAttr('checked');
453                    LimitCheckboxCounterDesktop--;
454                } else {
455                    if (LimitCheckboxCounterDesktop < 5) {
456                        $(this).addClass('active');
457                        $(this).parent().find('input[type="checkbox"]').prop('checked', true);
458                        LimitCheckboxCounterDesktop++;
459                    }
460                    else{
461                        $(this).parents('ul.limit-checkbox-desktop').find('.checkbox-limit-info-desktop span').removeClass('d-none').hide().fadeIn(200);
462                        setTimeout(function() {
463                            $('.checkbox-limit-info-desktop span').fadeOut(200, function() {
464                                $(this).addClass('d-none');
465                            });
466                        }, 3000);
467                    }
468                }
469                if ($(this).parent().hasClass('subCatItem')) {
470                    frontpageCategoriesCheckbox($(this).closest('form'));
471                }
472            }
473            else {
474                if ($(this).hasClass('active')) {
475                    $(this).removeClass('active');
476                    $(this).parent().find('input[type="checkbox"]').prop('checked', false);
477                    $(this).parent().find('input[type="checkbox"]').removeAttr('checked');
478                } else {
479                    $(this).addClass('active');
480                    $(this).parent().find('input[type="checkbox"]').prop('checked', true);
481                }
482                if ($(this).parent().hasClass('subCatItem')) {
483                    frontpageCategoriesCheckbox($(this).closest('form'));
484                }
485            }
486        });
487
488        $('.clear-form-button').on('click', function () {
489            const parentForm = $(this).closest('form');
490            parentForm.find('.checkbox-view').removeClass('active');
491            parentForm.find('input[type="checkbox"]').prop('checked', false);
492            parentForm.find('input[type="checkbox"]').removeAttr('checked');
493        });
494
495        $(document).ready(function() {
496            $(".classic_button_small").on("click", function() {
497                const searchParam = $(this).data("search-param");
498                const searchValue = $(this).data("search-value");
499                const form = $("#filterSection #filterFormOne");
500                const formCats = $("#filterSection #filterFormCats");
501                if (searchParam == 'ft') {
502                    const checkbox = form.find('input[type="checkbox"].checkboxStyle[name="' + searchParam + '[]"][value="' + searchValue + '"]');
503                    if (checkbox.is(":checked")) {
504                        checkbox.prop("checked", false);
505                        form.submit();
506                    }
507                } else if (searchParam == 'r') {
508                    const checkbox = form.find('input[type="checkbox"].checkboxStyle[name="' + searchParam + '"][value="' + searchValue + '"]');
509                    if (checkbox.is(":checked")) {
510                        checkbox.prop("checked", false);
511                        form.submit();
512                    }
513                } else if (searchParam == 'l') {
514                    form.find('input[type="text"].new-mobile-input[name="' + searchParam + '"][value="' + searchValue + '"]').val('');
515                    form.submit();
516                    return false;
517                } else if (searchParam == 'cat') {
518                    const checkbox = formCats.find('input[type="checkbox"].checkboxStyle[name="' + searchParam + '[]"][value="' + searchValue + '"]');
519                    if (checkbox.is(":checked")) {
520                        checkbox.prop("checked", false);
521                        formCats.submit();
522                    }
523                }
524            });
525        });
526
527    }
528
529    function thumbCompanyList() {
530        $('.companyImageCarousel').each(function(){
531            var thumbsDiv = $(this).find('.thumbs');
532            var fullDiv = $(this).find('.fullImg');
533            var i = 0;
534            var thumbsLi = $(this).find('li');
535
536            thumbsDiv.find('img.thumbItem').on('click', function(){
537                var img=$(this).attr('data-full');
538                $(this).parent().parent().find('li').removeClass('active');
539                $(this).parent().addClass('active');
540                i = $(this).parent().attr('data-id');
541                fullDiv.find('img').attr('src',img);
542            });
543
544            setInterval(function(){
545                var next = (++i % thumbsLi.length);
546                var newimg=$(thumbsLi.get(next)).find('img').attr('data-full');
547                thumbsDiv.find('li').removeClass('active');
548                $(thumbsLi.get(next)).addClass('active');
549                fullDiv.find('img').attr('src',newimg);
550            }, 4000)
551        });
552    }
553
554    function galleryCompany() {
555        $('.companyThumbs .companyThumb img').on('click', function(){
556            $('.companyThumbs .companyThumb').each(function(){
557                $(this).removeClass('active');
558            });
559            $(this).parent().parent().addClass('active');
560            var img=$(this).attr('src');
561
562            $('.companyBigImg .companyBigImgContainer > img').attr('src',img);
563        });
564
565        $('.companyBigImgContainer .nav-arrow.next').on('click',function(){
566            var item = $('.companyThumbs .companyThumb.active').next();
567            if(item.length == 0) {
568                item = $('.companyThumbs > div:first-of-type');
569            }
570            $('.companyThumbs .companyThumb').each(function(){
571                $(this).removeClass('active');
572            });
573            item.addClass('active');
574            var img=item.find('img').attr('src');
575            $('.companyBigImg .companyBigImgContainer > img').attr('src',img);
576        });
577
578        $('.companyBigImgContainer .nav-arrow.prev').on('click',function(){
579            var item = $('.companyThumbs .companyThumb.active').prev();
580
581            if(item.length == 0) {
582                var item = $('.companyThumbs > div:last-of-type');
583            }
584            $('.companyThumbs .companyThumb').each(function(){
585                $(this).removeClass('active');
586            });
587            item.addClass('active');
588            var img=item.find('img').attr('src');
589            $('.companyBigImg .companyBigImgContainer > img').attr('src',img);
590        });
591
592
593    }
594
595    function submenuDelay() {
596        var item = $('.categoryBox ul.mainCategoryBox > li');
597        item.find('.subCat').each(function(){
598            jQuery(this).addClass('disabled');
599        });
600        var menuEnterTimeout = null;
601        item.mouseenter(function () {
602            var submenu = $(this).children('.subCat');
603            menuEnterTimeout = setTimeout(function () {
604                if(submenu.hasClass('disabled')) submenu.removeClass('disabled');
605            }, 200);
606        });
607
608        item.mouseleave(function () {
609            if (menuEnterTimeout != null) {
610                clearTimeout(menuEnterTimeout);
611            }
612
613            var submenu = $(this).children('.subCat');
614            setTimeout(function () {
615                if(!submenu.hasClass('disabled')) submenu.addClass('disabled');
616            }, 200);
617        });
618    }
619
620    function mobileCategoryDrop() {
621
622        $('.mobileCategories ul').wrap("<div class='mainCategoryContainer'></div>");
623        $('.mainCategoryContainer').prepend('<div class="mainCategoryBoxActive">'+$('.wybierzBranze').html()+'</div>');
624
625        $('.mainCategoryBoxActive').on('click',function(){$('.mobileCategories ul').toggleClass('active');});
626    }
627
628    function relatedCheckboxes() {
629        $('.selectedCategories .checkbox-view').on('click',function(){
630            var chValue = $(this).parent().find('input[type="checkbox"]').val();
631            var checkBox = $('.nonSelectedCategories input[type="checkbox"].
631checkbox_'+chValue);
632            checkBox.prop("checked", !checkBox.prop("checked"));
633        });
634    }
635
636    function submitSearchLocation() {
637        $('.leftSearchBox input[name="l"],.leftSearchBox select[name="r"]').on('change',function(){
638            $('.leftSearchBox form').submit();
639        });
640
641
642    }
643
644    function inputSearchBind() {
645        $('#input-search').keypress(function() {
646            $('#search-advert-control').val('0');
647        });
648
649        $('#input-search').on('input paste',function(e){
650            $('#search-advert-control').val('0');
651        });
652
653        $('#input-search').click(function() {
654            if($(this).val()=='' || $(this).val()=='undefined') {
655                $('#search-advert-control').val('1');
656                $('#hidden-keyword').val('');
657                $(this).attr('title','');
658                $(this).attr('value','');
659                $(this).val('');
660            }
661        });
662    }
663
664    function fixCenterHeightBySidebar() {
665        rightSideSumHeight = 0;
666        $('#rightSide > div').each(function(){
667            rightSideSumHeight += $(this).height() + 10;
668        });
669
670        var centerSide = $('#centerSide').height()
671        if(centerSide < rightSideSumHeight) {
672            $('#centerSide').css('min-height', rightSideSumHeight+'px');
673        }
674        $('#rightSide').css('min-height', rightSideSumHeight+'px');
675
676    }
677
678    function frontpageCategoriesCheckbox(form) {
679        var submitButton = form.find('.subCatButton input');
680        selectedCheckboxes = form.find('.subCatList .subCatItem input:checked').length;
681        if(submitButton) {
682            if (selectedCheckboxes === 0) {
683                submitButton.val(submitButton.data('show_all'));
684            } else {
685                submitButton.val(submitButton.data('show_selected'));
686            }
687        }
688    }
689
690    function subMenuForm() {
691        $('.subCat form').each(function(){
692            var form = $(this);
693            var selectedCheckboxes = 0;
694
695            var submitButton = form.find('.subCatButton input');
696
697            submitButton.on('click',function(e){
698                selectedCheckboxes = form.find('.subCatList .subCatItem input:checked').length;
699                if(selectedCheckboxes === 0) {
700                    e.preventDefault();
701                    window.location.href = $(this).data('global_cat');
702                } else {
703                    form.submit();
704                }
705            });
706        });
707    }
708
709    function targetHrefMod() {
710        var anchors = document.querySelectorAll('a');
711        var target = "_blank";
712
713        if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
714            target = "_self";
715        }
716
717        anchors.forEach(function(anchor) {
718            if(checkUrlMainDomain(anchor.href) === false) {
719                anchor.target = target;
720            }
721        });
722
723    }
724
725    function checkUrlMainDomain(string) {
726        var match = 0;
727
728        if(string.indexOf('http://') === -1 && string.indexOf('https://') === -1) {
729            return true;
730        }
731
732        if(string.indexOf('poland') !== -1) {
733            match++;
734        }
735        if(string.indexOf('export') !== -1) {
736            match++;
737        }
738        if(string.indexOf('transport') !== -1) {
739            match++;
740        }
741        if(string.indexOf('furniture') !== -1) {
742            match++;
743        }
744        if(match > 1) {
745            return true;
746        }
747        return false;
748    }
749
750    function searchLoader() {
751        hideSearchLoader();
752
753        $('.useSearchLoader').on('click',function(item) {
754            showSearchLoader();
755        });
756
757        $('form[action*="/search/"]').submit(function() {
758            showSearchLoader();
759        });
760
761        $('form[action*="/category/"]').submit(function() {
762            showSearchLoader();
763        });
764    }
765
766    window.addEventListener("pageshow", function(event) {
767        if (event.persisted || (typeof window.performance != "undefined" && window.performance.navigation.type === 2)) {
768            hideSearchLoader();
769        }
770    });
771
772    function hideSearchLoader() {
773        if ($('.search-loader').hasClass('active')) {
774            $('.search-loader').removeClass('active');
775        }
776    }
777
778    function showSearchLoader() {
779        $('.search-loader').addClass('active');
780    }
781
782    $('.customCategoryBox-clickable .subcategoryBack a').on('click', function(e) {
783        e.stopPropagation();
784    });
785
786    $('.customCategoryBox-clickable .subcategoryBack').on('click', function() {
787        $(this).parents('.customCategoryBox-clickable').first().toggleClass('show');
788    });
789
790    $(document).ready(function() {
791        const mainCategoryList = $("#mainCategoryList");
792        const customCategoryBoxId = $("#customCategoryBoxId");
793        $(".subCategoryContainer").hide();
794        $(".subcategoryArrow:not(.no-back)").click(function() {
795            const subcategoryId = $(this).closest("li").data("subcategory-id");
796            const subcategoryContainer = $("#subcategoryList-" + subcategoryId);
797
798            mainCategoryList.animate({ left: "-100%" }, 300, function() {
799                mainCategoryList.hide();
800                subcategoryContainer.show();
801                subcategoryContainer.animate({ right: "0" }, 300);
802                customCategoryBoxId.scrollTop(0);
803            });
804        });
805
806        $(".subcategoryBack .subcategoryArrow-left:not(.no-back)").click(function(e) {
807            const subcategoryContainer = $(this).closest(".subcategoryContainer");
808
809            subcategoryContainer.animate({ right: "-100%" }, 300, function() {
810                subcategoryContainer.hide();
811                mainCategoryList.show();
812                mainCategoryList.animate({ left: "0" }, 300, function() {
813                    customCategoryBoxId.scrollTop(0);
814                });
815            });
816        });
817    });
818
819    $(document).ready(function() {
820        $('#showFilterSection').on('click', function() {
821            $('.filterSection').addClass('filterSectionFixed');
822        });
823        $('#filterSection .close').on('click', function() {
824            $('.filterSection').removeClass('filterSectionFixed');
825        });
826    });
827});

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.