1 2$(document).ready(function() { 3 4 // Loading Screen - show blocks after load 5 $(window).load(function() { 6 $('.loading').css('display','none'); 7 $('#timeline-area').css('display','block'); 8 }); 9 10 // Scrolling Images 11 12 $('#scroll-area').slick({ 13 dots: false, 14 arrows: true, 15 infinite: true, 16 speed: 300, 17 slidesToShow: 1, 18 centerMode: true, 19 variableWidth: true, 20 autoplay: true, 21 centerPadding: '60px', 22 lazyLoad: 'ondemand', 23 responsive: [ 24 { 25 breakpoint: 1024, 26 settings: { 27 slidesToShow: 3, 28 slidesToScroll: 3, 29 } 30 }, 31 { 32 breakpoint: 600, 33 settings: { 34 slidesToShow: 2, 35 slidesToScroll: 2 36 } 37 }, 38 { 39 breakpoint: 480, 40 settings: { 41 slidesToShow: 1, 42 slidesToScroll: 1 43 } 44 } 45 ] 46 }); 47 48 // Single Item 49 50 $('.single-item').slick({ 51 centerMode: true, 52 fade: true, 53 lazyLoad: true, 54 dots:true, 55 arrows:false 56 }); 57 58 // Scrolling Images 59 60 $('#timeline-area').slick({ 61 dots: false, 62 arrows: false, 63 infinite: true, 64 speed: 300, 65 slidesToShow: 1, 66 centerMode: true, 67 variableWidth: true, 68 autoplay: true, 69 centerPadding: '60px', 70 responsive: [ 71 { 72 breakpoint: 1024, 73 settings: { 74 slidesToShow: 3, 75 slidesToScroll: 3, 76 } 77 }, 78 { 79 breakpoint: 600, 80 settings: { 81 slidesToShow: 2, 82 slidesToScroll: 2 83 } 84 }, 85 { 86 breakpoint: 480, 87 settings: { 88 slidesToShow: 1, 89 slidesToScroll: 1 90 } 91 } 92 ] 93 }); 94 95 // FAQ 96 97 $(".faq-link").on("click",function(){ 98 $(this).parent().next().slideToggle("fast"); 99 }); 100 101 $(".faq-link").toggle(function() { 102 $(this).text("-"); 103 }, function() { 104 $(this).text("+"); 105 }); 106 107 108 109 $('form > input').keyup(function() { 110 111 var empty = false; 112 $('form > input').each(function() { 113 if ($(this).val() === '') { 114 empty = true; 115 } 116 }); 117 118 if (empty) { 119 $('#disable').attr('disabled', 'disabled'); // updated according to http://stackoverflow.com/questions/7637790/how-to-remove-disabled-attribute-with-jquery-ie 120 } else { 121 $('#disable').removeAttr('disabled'); // updated according to http://stackoverflow.com/questions/7637790/how-to-remove-disabled-attribute-with-jquery-ie 122 } 123 }); 124 125 126});
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.