1// This file will be run in the footer on every page. 2// It should be used for content that relates 3// to your site as a whole, it should not be used for 4// plugin-specific js 5 6require(["jquery", "site_gtm", "sv_load!plugins_dynamic_content", "sv_siteFoundation", "sv_siteSlick", "domReady!"], function($, gtm, dynamic) { 7 $(document).foundation(); 8 9 // Header nav ish 10 $(document).ready(function() { 11 var root = $('.bt-nav-cont'); 12 13 root.find(".resp-menu-hit").click(function() { 14 $('.header-nav-cont').toggleClass('active'); 15 $('body').removeClass('language-active language-more-active'); 16 }); 17 root.find(".parent-expand").click(function() { 18 root.find('.section-arrow-cont, .section-nav-item, .section-subnav').removeClass('active'); 19 }); 20 root.find(".section-expand").click(function() { 21 root.find(this).parent('.section-arrow-cont').addClass('active'); 22 root.find(this).parent('.section-arrow-cont').parent().parent('.section-nav-item').addClass('active'); 23 root.find(this).parent('.section-arrow-cont').parent().parent('.section-nav-item').children('.section-subnav').addClass('active'); 24 }); 25 root.find(".section-collapse").click(function() { 26 root.find(this).parent('.section-arrow-cont').removeClass('active'); 27 root.find(this).parent('.section-arrow-cont').parent().parent('.section-nav-item').find('.section-arrow-cont').removeClass('active'); 28 root.find(this).parent('.section-arrow-cont').parent().parent('.section-nav-item').removeClass('active'); 29 root.find(this).parent('.section-arrow-cont').parent().parent('.section-nav-item').find('.section-subnav').removeClass('active'); 30 }); 31 }); 32 33 34// CRM FORM STYLING HELPER JS. This should exist in footer JS file. 35if (location.search.indexOf('action=popupCal') > -1 && document.body.querySelectorAll('.lookup-calHolder')) { 36 $('.lookup-calHolder').parents().show().addClass('crm-calendar-parent'); 37} 38 39 // Top search field -- Secondary nav hit -- Other hit states 40 $(document).ready(function() { 41 $(".weather-hit").click(function() { 42 $('.weather-popup').toggleClass('active'); 43 }); 44 $(".resp-menu-hit").click(function() { 45 $('body').toggleClass('resp-menu-show'); 46 }); 47 $(".search-hit").click(function() { 48 $('body').toggleClass('search-active'); 49 }); 50 $(".secondary-nav-hit").click(function() { 51 $('.section-subnav .section-arrow-cont').removeClass('active'); 52 $('.secondary-nav-cont').toggleClass('active'); 53 }); 54 $(".resp-filters-hit").click(function() { 55 $('body').toggleClass('resp-filter-filters-active').removeClass('resp-filter-view-active resp-filter-sort-active'); 56 }); 57 $(".resp-view-hit").click(function() { 58 $('body').toggleClass('resp-filter-view-active').removeClass('resp-filter-filters-active resp-filter-sort-active'); 59 }); 60 $(".resp-sort-hit").click(function() { 61 $('body').toggleClass('resp-filter-sort-active').removeClass('resp-filter-filters-active resp-filter-view-active'); 62 }); 63 }); 64 65 // Slick sliders 66 $('.high-slider').slick({ 67 infinite: true, 68 dots: false, 69 slidesToShow: 3, 70 centerMode: true, 71 variableWidth: true 72 }); 73 74 gtm.update(); 75}); 76 77// Lazy-load FontAwesome 78(function() { 79 var css = document.createElement('link'); 80 css.href = 'https://use.fontawesome.com/releases/v5.14.0/css/all.css'; 81 css.rel = 'stylesheet'; 82 css.type = 'text/css'; 83 document.getElementsByTagName('head')[0].appendChild(css); 84})();
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.