1jQuery(document).ready(function($) { 2 3$("button.burger-button").click(function(){ 4 if ($(".header-menu-wrap").hasClass("expanded")) { 5 $(".header-menu-wrap").removeClass("expanded").slideUp(250); 6 $('html').removeClass("burger-is-clicked"); 7 $(this).removeClass("burger-clicked"); 8 } else { 9 $(".header-menu-wrap").addClass("expanded").slideDown(250); 10 $('html').addClass("burger-is-clicked"); 11 $(this).addClass("burger-clicked"); 12 } 13}); 14 15$(".smoothScroll").click(function() { 16 if (location.pathname.replace(/^\//, "") === this.pathname.replace(/^\//, "") && location.hostname === this.hostname) { 17 var target = $(this.hash); 18 target = target.length ? target : $("[name=" + this.hash.slice(1) + "]"); 19 if (target.length) { 20 $("html,body").animate({ 21 scrollTop: target.offset().top 22 }, 500); 23 return false; 24 } 25 } 26}); 27 28$('a[href="#"]').on("click", function(e) { 29 e.preventDefault(); 30}); 31 32function hasHtml5Validation() { 33 return typeof document.createElement("input").checkValidity === "function"; 34} 35 36if (hasHtml5Validation()) { 37 $(".cta-form").submit(function(e) { 38 if (!this.checkValidity()) { 39 e.preventDefault(); 40 $(this).addClass("invalid"); 41 } else { 42 $(this).removeClass("invalid"); 43 } 44 }); 45} 46 47$("#optionselector").change(function() { 48 $(".options").hide(); 49 $("#" + $(this).val()).show(); 50}); 51 52$(function() { 53 54 var header = $("header.theheader"); 55 56 $(window).scroll(function() { 57 58 var scroll = $(window).scrollTop(); 59 60 if (scroll >= 40) { 61 62 header.addClass("hidecta"); 63 64 } else { 65 66 header.removeClass("hidecta"); 67 68 } 69 70 }); 71}); 72 73});
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.