PageSourceSearch

https://midwaytrailersales.com/js/bootnavbar.js

js midwaytrailersales.com collected 2026-10-05 20:40:44 UTC 1,433 bytes, 43 lines download raw bytes

1(function($) {
2    var defaults={
3        sm : 540,
4        md : 720,
5        lg : 960,
6        xl : 1140,
7        navbar_expand: 'lg',
8        animation: true,
9        animateIn: 'fadeIn',
10    };
11    $.fn.bootnavbar = function(options) {
12
13        var screen_width = $(document).width();
14        settings = $.extend(defaults, options);
15
16        if(screen_width >= settings.lg){
17            $(this).find('.dropdown').hover(function() {
18                $(this).addClass('show');
19                $(this).find('.dropdown-menu').first().addClass('show');
20                if(settings.animation){
21                    $(this).find('.dropdown-menu').first().addClass('animated ' + settings.animateIn);
22                }
23            }, function() {
24                $(this).removeClass('show');
25                $(this).find('.dropdown-menu').first().removeClass('show');
26            });
27        }
28
29        $('.dropdown-menu a.dropdown-toggle').on('click', function(e) {
30          if (!$(this).next().hasClass('show')) {
31            $(this).parents('.dropdown-menu').first().find('.show').removeClass("show");
32          }
33          var $subMenu = $(this).next(".dropdown-menu");
34          $subMenu.toggleClass('show');
35
36          $(this).parents('li.nav-item.dropdown.show').on('hidden.bs.dropdown', function(e) {
37            $('.dropdown-submenu .show').removeClass("show");
38          });
39
40          return false;
41        });
42    };
43})(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.