PageSourceSearch

https://bizcar.ro/wp-content/plugins/favo-shortcodes/js/main.js?ver=1.1.0

js bizcar.ro collected 2026-09-26 13:31:03 UTC 3,579 bytes, 97 lines download raw bytes

1(function($) {
2    $(document).ready(function($) {
3
4        if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
5
6            $("body").on("touchstart", ".favo_accordion_heading", function(e) {
7                favo_accordion_handle($(this));
8            });
9
10            $("body").on("touchstart", ".favo_toggle_heading", function(e) {
11                favo_toggle_handle($(this));
12            });
13
14
15            $("body").on("touchstart", ".favo_tabs_nav .favo_tab_nav_item", function(e) {
16                favo_tab_handle($(this));
17            });
18
19        } else {
20
21            $("body").on("click", ".favo_accordion_heading", function(e) {
22                favo_accordion_handle($(this));
23            });
24
25
26            $("body").on("click", ".favo_toggle_heading", function(e) {
27                favo_toggle_handle($(this));
28            });
29
30
31            $("body").on("click", ".favo_tabs_nav .favo_tab_nav_item", function(e) {
32                favo_tab_handle($(this));
33            });
34        }
35
36        /* Initialize tabs */
37        $('.favo_tabs').each(function() {
38
39            var tabs_nav = $(this).find('.favo_tabs_nav');
40
41            $(this).find('.favo_tab_item').each(function() {
42                tabs_nav.append('<div class="favo_tab_nav_item">' + $(this).find('.nav').html() + '</div>');
43                $(this).find('.nav').remove();
44
45            });
46
47            $(this).find('.favo_tabs_nav').find('.favo_tab_nav_item:first').addClass('active');
48            $(this).find('.favo_tab_item').hide();
49            $(this).find('.favo_tab_item:first').show();
50            $(this).show();
51
52        });
53
54
55    });
56
57    function favo_accordion_handle($obj) {
58        var toggle = $obj.parent('.favo_accordion_item');
59        if (!toggle.hasClass('favo_accordion_active')) {
60            toggle.parent('div').find('.favo_accordion_item').find('.favo_accordion_content:visible').slideUp("fast");
61            toggle.parent('div').find('.favo_accordion_active').removeClass('favo_accordion_active');
62            toggle.find('.favo_accordion_content').slideToggle("fast", function() {
63                toggle.addClass('favo_accordion_active');
64                if ((toggle.offset().top + 100) < $(window).scrollTop()) {
65                    $('html, body').stop().animate({
66                        scrollTop: (toggle.offset().top - 100)
67                    }, '300');
68                }
69            });
70        } else {
71            toggle.parent('div').find('.favo_accordion_item').find('.favo_accordion_content:visible').slideUp("fast");
72            toggle.parent('div').find('.favo_accordion_active').removeClass('favo_accordion_active');
73        }
74    }
75
76    function favo_toggle_handle($obj) {
77        var toggle = $obj.parent('.favo_toggle');
78        toggle.find('.favo_toggle_content').slideToggle("fast", function() {
79            toggle.toggleClass('favo_toggle_active');
80        });
81    }
82
83    function favo_tab_handle($obj) {
84        if ($obj.hasClass('active') == false) {
85
86            tab_to_show = $obj.parent('.favo_tabs_nav').find('.favo_tab_nav_item').index($obj);
87
88            $obj.parent('.favo_tabs_nav').parent('.favo_tabs').find('.favo_tab_item').hide();
89            $obj.parent('.favo_tabs_nav').parent('.favo_tabs').find('.favo_tab_item').eq(tab_to_show).show();
90
91            $obj.parent('.favo_tabs_nav').find('.favo_tab_nav_item').removeClass('active');
92            $obj.addClass('active');
93
94        }
95    }
96
97})(jQuery);

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.