PageSourceSearch

https://www.coloradoicsb.com/plugins/smb/navigation/components/navigation/assets/js/navigation.js?v.1.0.76

js coloradoicsb.com collected 2026-10-04 13:27:01 UTC 3,119 bytes, 73 lines download raw bytes

1+function ($) { "use strict";
2
3    //SMBWMGR-7625- hide mmenu before init on theme level
4    var navStyle = $('<style type="text/css">.mm-menu.mm-offcanvas { display: none; }</style>');
5    $('html > head').append(navStyle);
6
7    // New instance
8    $(document).ready(function(){
9    	//sticky nav 
10        $("[data-sticky-header]").closest('.js-sticky-nav').sticky({topSpacing:0});
11
12        $('.navigation__item.more').click(function(e){
13            e.preventDefault();
14        });
15
16        // Add title attribute to mm-menu no text links - SMBWMGR-3784
17        $("nav.mm-menu a.mm-prev").each(function() {
18            var title = $(this).parent().find("a.mm-title").text();
19            $(this).attr("title", title);
20        });
21
22        $("nav.mm-menu a.mm-next").each(function() {
23            var title = $("> a[data-title]",$(this).parent()).data('title');
24            $(this).attr("title", title);
25        });
26        
27        if ($("nav.mm-menu a.mm-close").length > 0) {
28            $("nav.mm-menu a.mm-close").attr("title", 'Close');
29        }
30
31        var $moreNavLoading = $('.more_nav--loading');
32        if ($moreNavLoading.length) {
33            $moreNavLoading.removeClass('more_nav--loading');
34        }
35    });
36
37    /* Add sub item class if too close to edges */
38    $(window).load(function () {
39        var $navA = $('.navigation-a');
40        if ($navA.length) {
41            $('.navigation-a > .navigation__list > .navigation__item.has-drop-down').on('mouseenter mouseleave', function (e) {
42
43                var $navListChildItem = $(this).find('> .navigation__list--sub'),
44                    $navListChildSubItem = $navListChildItem.find('> .navigation__item.has-drop-down > .navigation__list--sub'),
45                    $navListGrandChildSubItem = $navListChildSubItem.find('> .navigation__item.has-drop-down > .navigation__list--sub'),
46                    widthChildItem = $navListChildItem.outerWidth(true),
47                    navListSub_offsetLeft = $(this).offset().left,
48                    buffer = 60,
49                    navListSub_width = 0;
50
51                var maxWidthChildSubItem = 0;
52                $($navListChildSubItem).each(function () {
53                    var thisW = $(this).outerWidth(true);
54                    if (thisW > maxWidthChildSubItem) { maxWidthChildSubItem = thisW; }
55                });
56
57                var maxWidthGrandChildSubItem = 0;
58                $($navListGrandChildSubItem).each(function () {
59                    var thisW = $(this).outerWidth(true);
60                    if (thisW > maxWidthGrandChildSubItem) { maxWidthGrandChildSubItem = thisW; }
61                });
62
63                navListSub_width = (widthChildItem + maxWidthChildSubItem + maxWidthGrandChildSubItem) - $(this).outerWidth(true);
64
65                var offsetRight = ($(document).width() - (navListSub_offsetLeft + $(this).outerWidth(true) + buffer)),
66                    isEntirelyVisible = (offsetRight > navListSub_width);
67
68                (!isEntirelyVisible) ? $(this).addClass('near-edge') : $(this).removeClass('near-edge');
69            });
70        }
71    });
72
73}(window.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.