PageSourceSearch

https://androidforum.mojandroid.sk/wp-content/plugins/bp-business-profile/public/js/more-menu.js?ver=1.3.0

js mojandroid.sk collected 2026-10-01 11:45:32 UTC 1,205 bytes, 34 lines download raw bytes

1(function($) {
2    $.fn.BpBusinessMenu = function(reduceWidth) {
3        $(this).each(function() {
4            //alignMenu( this );
5            var elem = this,
6                $elem = $(this),
7                w = 0,
8                i = -1,
9                menuhtml = '',
10                mw = $elem.width() - reduceWidth;
11
12            $elem.append($($($elem.children('li.hideshow')).children('ul')).html());
13            $elem.children('li.hideshow').remove();
14
15            $.each($elem.children(), function() {
16                i++;
17                w += $(this).outerWidth(true);
18                if (mw < w) {
19                    menuhtml += $('<div>').append($(this).clone()).html();
20                    $(this).remove();
21                }
22            });
23
24            $elem.append('<li class="hideshow menu-item-has-children menu-item--has-toggle"><a class="bs-more-button" href="#"><i class="fas fa-ellipsis-h"></i></a><ul class="sub-menu">' + menuhtml + '</ul></li>');
25
26            if ($elem.find('li.hideshow').find('li').length > 0) {
27                $elem.find('li.hideshow').show();
28            } else {
29                $elem.find('li.hideshow').hide();
30            }
31
32        });
33    }
34}(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.