1jQuery(function($){ 2 $(document).ready(function($){ 3 $('.testimonial-slider').slick({ 4 dots: true, 5 infinite: true, 6 speed: 500, 7 slidesToShow: 2, 8 slidesToScroll: 1, 9 prevArrow: false, 10 nextArrow: false, 11 cssEase: 'linear', 12 responsive: [ 13 { 14 breakpoint: 768, 15 settings: { 16 slidesToShow: 1, 17 slidesToScroll: 1 18 } 19 } 20 ] 21 }); 22 23 }); 24 25 26 // When the user scrolls the page, execute myFunction 27 window.onscroll = function() {myFunction()}; 28 29 /* 30 Ran into an issue with transformX() and webkit with fixed elements. 31 Known issue with Chrome, sticky countdown code revised to avoid it. 32 */ 33 34 // Get the navbar 35 var navbar = document.getElementById("countdown"); // the navbar we are watching to scroll past 36 var realNavbar = document.getElementById("countdown-sticky"); // the navbar in the footer we're overlaying to make it look like it sticks 37 38 // Get the offset position of the navbar 39 if ( navbar ) { 40 var sticky = navbar.offsetTop + 103; 41 } 42 43 // Add the sticky class to the navbar when you reach its scroll position. Remove "sticky" when you leave the scroll position 44 function myFunction() { 45 if ( navbar) { 46 if (window.pageYOffset >= sticky) { 47 realNavbar.classList.add("sticky"); 48 49 } else { 50 realNavbar.classList.remove("sticky"); 51 } 52 } 53 } 54}); 55 56function setCookie(exdays, cname, cvalue) { 57 var d = new Date(); 58 d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); 59 var expires = "expires="+d.toUTCString(); 60 document.cookie = cname + "=" + cvalue + ";" + expires; 61} 62 63 64function checkCookie(cname) { 65 66 var ca = document.cookie.split(';'); 67 for(var i = 0; i < ca.length; i++) { 68 var c = ca[i]; 69 while (c.charAt(0) == ' ') { // trims space from start of key 70 c = c.substring(1); 71 } 72 if (c.indexOf(cname) == 0) { 73 return true; 74 } 75 } 76 return false; 77} 78 79 80function changeText() { 81 var visited = checkCookie("greenlightvisited"); 82 if (visited === true) { 83 jQuery(".hero-content h2.hero-heading").html("You Still Haven't Gotten Approved?"); 84 jQuery(".hero-content h4.hero-heading").html("It's So Quick and Easy, Just Do It!"); 85 } else { 86 setCookie(30, "greenlightvisited", "visited"); 87 } 88} 89 90 91jQuery(document).ready(function(){ 92 93 changeText(); 94 95});
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.