1$(document).ready(function () { 2 3 $( window ).scroll(function() { 4 if($(document).scrollTop() > 100) { 5 $('.page__header').addClass('page__header--small'); 6 } else { 7 $('.page__header').removeClass('page__header--small'); 8 } 9 }); 10 11 $('.nav-toggle').click(function(){ 12 $('body').toggleClass('nav-open'); 13 }); 14 15 $('.nav-toggle-close').click(function(){ 16 $('body').removeClass('nav-open'); 17 }); 18 19 $('.carousel--jumbotron').carousel({ 20 interval: 4000 21 }); 22 23 $('.carousel--impression').carousel({ 24 interval: 4000 25 }); 26 27 $('.js-toggle-map').click(function(){ 28 $('.footer__map').toggleClass('open'); 29 }); 30 31 $('.page__aside a[href^="#"]').click(function(event) { 32 // The id of the section we want to go to. 33 var id = '#brochure'; 34 35 // An offset to push the content down from the top. 36 var offset = $(window).height()/2 - $(id).height() / 2; 37 38 // Our scroll target : the top position of the 39 // section that has the id referenced by our href. 40 var target = $(id).offset().top - 0; 41 42 // The magic...smooth scrollin' goodness. 43 $('html, body').animate({scrollTop:target},{duration:2000, easing:'easeInOutQuint'}); 44 45 //prevent the page from jumping down to our section. 46 event.preventDefault(); 47 }); 48 49 var map = $('#map_canvas'); 50 map.gMap({ 51 address: map.data('address'), 52 zoom: 15, 53 markers:[{ 54 address:map.data('address'), 55 html: map.data('info'), 56 popup: true 57 }] 58 }); 59 60 if(navigator.userAgent.match(/Trident\/7\./)) { // if IE 61 $('body').on("mousewheel", function () { 62 // remove default behavior 63 event.preventDefault(); 64 65 //scroll without smoothing 66 var wheelDelta = event.wheelDelta; 67 var currentScrollPosition = window.pageYOffset; 68 window.scrollTo(0, currentScrollPosition - wheelDelta); 69 }); 70 } 71 72 $('.carousel-inner--sponsoren').owlCarousel({ 73 loop:true, 74 margin:50, 75 autoplay:2500, 76 smartSpeed:1000, 77 nav:false, 78 responsive:{ 79 0:{ 80 items:1 81 }, 82 600:{ 83 items:3 84 }, 85 1000:{ 86 items:5 87 } 88 } 89 }); 90 91 $('.view-fotoalbum .field-content').owlCarousel({ 92 loop:true, 93 margin:10, 94 autoplay:2500, 95 smartSpeed:1000, 96 dots:true, 97 nav:false, 98 responsive:{ 99 0:{ 100 items:1 101 }, 102 600:{ 103 items:2 104 }, 105 1000:{ 106 items:2 107 } 108 } 109 }); 110 111 $('.front .view-paarden .view-content').owlCarousel({ 112 loop:false, 113 margin:10, 114 autoplay:2500, 115 smartSpeed:1000, 116 dots:false, 117 nav:false, 118 responsive:{ 119 0:{ 120 items:1 121 }, 122 600:{ 123 items:2 124 }, 125 1000:{ 126 items:2 127 } 128 } 129 }); 130 131 $('.front .view-uitgelicht .view-content').owlCarousel({ 132 loop:false, 133 margin:10, 134 autoplay:2500, 135 smartSpeed:1000, 136 dots:false, 137 nav:false, 138 responsive:{ 139 0:{ 140 items:1 141 }, 142 600:{ 143 items:2 144 }, 145 1000:{ 146 items:2 147 } 148 } 149 }); 150 151 152 $("#back-to-top").on("click", function(){ 153 $('html,body').animate({ scrollTop: 0 }, 'slow'); 154 return false; 155 }); 156 157 // When the user scrolls down 20px from the top of the document, show the button 158 window.onscroll = function() {scrollFunction()}; 159 160 function scrollFunction() { 161 if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) { 162 document.getElementById("back-to-top").style.display = "block"; 163 } else { 164 document.getElementById("back-to-top").style.display = "none"; 165 } 166 } 167 168 // FAQ 169 $(".faq-question").on("click", function(item){ 170 console.log('foobar', this, item, $(this).parent('.faq-item')); // REMOVE 171 $(this).parent().toggleClass('faq--show'); 172 }); 173}); 174 175 176 177
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.