https://www.workbar.com/hubfs/hub_generated/template_assets/1/2641…/template_Workbar-mar2015-main.js
1$(function() { 2 3 /** 4 * Mobile Nav 5 * 6 * Toggle Side Menu - Left or Right 7 */ 8 9 // Prepend a mobile icon to the header 10 $(".custom-menu-primary").after('<a class="mobile-icon"><span></span></a>'); 11 12 // Prepend a close icon to the menu 13 $(".custom-menu-primary .hs-menu-flow-horizontal>ul").before('<a class="close-icon"><span></span></a>'); 14 $('.custom-menu-primary .flyouts .hs-item-has-children > a').after('<a class="child-trigger"><span></span></a>'); 15 16 // Add body class on mobile icon click 17 $(".mobile-icon, .close-icon").click(function(){ 18 $("body").toggleClass("show-mobile-nav "); 19 }); 20 21 /** 22 * Mobile Nav 23 * 24 * Toggle Side Menu - Left or Right 25 */ 26 27 // Prepend a mobile icon to the header 28 $(".custom-menu-primary1").after('<a class="right-icon"><span></span></a>'); 29 30 // Prepend a close icon to the menu 31 $(".custom-menu-primary1 .hs-menu-flow-horizontal>ul").before('<a class="close-right"><span></span></a>'); 32 33 // Add body class on mobile icon click 34 $(".right-icon, .close-right").click(function(){ 35 $("body").toggleClass("show-right-nav1"); 36 }); 37 38 39 // Set the menu height to 100% of the document 40 function setMenuHeight(){ 41 var height = $(document).outerHeight(true); 42 $(".custom-menu-primary").height(height); 43 } 44 function setMenuHeight1(){ 45 var height = $(document).outerHeight(true); 46 $(".custom-menu-primary1").height(height); 47 } 48 setMenuHeight(); 49 setMenuHeight1(); 50 // Wrap body contents with a div so the transforms will work 51 $('body> div').find('script:not(script[type="IN/Share"])').remove().end().wrapAll('<div id="site-wrapper"></div>'); 52 function wrapBody() { 53 // Check to see if linked share script has loaded 54 if (window.IN && window.IN.ENV && window.IN.ENV.js && 55 window.IN.ENV.js.xtn) { 56 $("body").find("script").remove().end().wrapInner('<div id="site-wrapper"></div>'); 57 } else { 58 setTimeout(wrapBody, 50); 59 } 60 } 61 wrapBody(); 62 $('a.child-trigger').click(function() { 63 $(this).parent().siblings('.hs-item-has-children').find('a.child-trigger').removeClass('child-open'); 64 $(this).parent().siblings('.hs-item-has-children').find('.hs-menu-children-wrapper').slideUp(250); 65 $(this).next('.hs-menu-children-wrapper').slideToggle(250); 66 $(this).next('.hs-menu-children-wrapper').children('.hs-item-has-children').find('.hs-menu-children-wrapper').slideUp(250); 67 $(this).next('.hs-menu-children-wrapper').children('.hs-item-has-children').find('a.child-trigger').removeClass('child-open'); 68 $(this).toggleClass('child-open'); 69 $(this).parent("li").toggleClass('icon-change'); 70 return false; 71}); 72$(".custom-sidebar-search .hs-input").attr("placeholder", "Search Blog â¦"); 73 74// Custom Banner 75 var bannerImage = $('.banner-image img').attr('src'); 76 $('.custom-banner').css('background-image', 'url(' + bannerImage + ')'); 77 $('.banner-image').closest('.row-fluid-wrapper').remove(); 78});
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.