1jQuery(document).ready(function ($) { 2 3 4/*==============================================================*/ 5// smooth anchor scrolling 6/*==============================================================*/ 7$("a").on('click', function(event) { 8 linkUrl = this.href.match(/(^[^#]*)/)[0]; 9 currentUrl = document.location.href.match(/(^[^#]*)/)[0]; 10 if (this.hash !== "" && linkUrl == currentUrl) { 11 event.preventDefault(); 12 var hash = this.hash; 13 $('html, body').animate({ 14 scrollTop: $(hash).offset().top - 50 15 }, 800, function(){ 16 window.location.hash = hash; 17 }); 18 } 19 }); 20 21/*==============================================================*/ 22// match height // details: https://github.com/liabru/jquery-match-height 23/*==============================================================*/ 24$(function() { 25 $('.resize').matchHeight(); 26}); 27 28 $(function() { 29 $('.slide').matchHeight(); 30 }); 31 32//SCRIPTS 33/*==============================================================*/ 34// wrap iframe automatically so they can paste in embed code from youtube 35/*==============================================================*/ 36//$("iframe").wrap("<div class='vidwrap'><div class='embed-container'>"); 37 38 39/*==============================================================*/ 40// clear form field labels on focus 41/*==============================================================*/ 42 // jQuery.fn.cleardefault = function() { 43 // return this.focus(function() { 44 // if( this.value == this.defaultValue ) { 45 // this.value = ""; 46 // } 47 // }).blur(function() { 48 // if( !this.value.length ) { 49 // this.value = this.defaultValue; 50 // } 51 // }); 52 // }; 53 // jQuery(".gform_wrapper input[type='text'], .gform_wrapper input[type='email'], .gform_wrapper input[type='tel'], .gform_wrapper input[type='search'], .gform_wrapper input[type='url'], .gform_wrapper input[type='number'], .gform_wrapper textarea, .searchbar input[type='search']").cleardefault(); 54 55/*==============================================================*/ 56// slick slider 57/*==============================================================*/ 58 $('.my-slider').slick({ 59 slidesToShow: 1, 60 infinite: true, 61 autoplay: true, 62 autoplaySpeed: 5000, 63 dots: true 64}); 65/*==============================================================*/ 66// toggle mobile search 67/*==============================================================*/ 68 $('.search-toggle').on('click', function(){ 69 $(document).find('.search-form-mobile').toggleClass('open'); 70 $(document).find('#primaryNavigation .icon-search').toggleClass('icon-close'); 71}); 72/*==============================================================*/ 73// accordion.js 74/*==============================================================*/ 75$(function () { 76 $('.js-accordion').accordion(); 77}); 78 79 80});
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.