1(function ($) { 2 "use strict"; 3 $(document).ready(function(){ 4 var $menu = $('.main-navigation'); 5 $menu.find('ul > li').each(function(){ 6 var $submenu = $(this).find('>ul'); 7 if($submenu.length == 1){ 8 $(this).hover(function(){ 9 if($submenu.offset().left + $submenu.width() > $(window).width()){ 10 $submenu.addClass('back'); 11 }else if($submenu.offset().left < 0){ 12 $submenu.addClass('back'); 13 } 14 }, function(){ 15 $submenu.removeClass('back'); 16 }); 17 } 18 }); 19 /* Menu drop down*/ 20 $('.nav-menu li.menu-item-has-children').append('<span class="cs-menu-toggle"><i class="fa fa-angle-down"></i></span>'); 21 $('.cs-menu-toggle').on('click', function(){ 22 $(this).prev().toggleClass('submenu-open'); 23 }); 24 /* Page Fixed Menu */ 25 $('.header-fixed-page').parents('body').addClass('remove-margin-top'); 26 $('#cshero-header.no-sticky').parents('body').addClass('remove-margin-top'); 27 }); 28 29})(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.