1/* Mobile-Navigation */ 2jQuery(document).ready(function(){ 3 4 jQuery('#nav-icon').click(function(){ 5 jQuery(this).toggleClass('open'); 6 jQuery('#mydog365-top-navigation').toggleClass('open'); 7 }); 8 jQuery('#mydog365-top-navigation a').click(function(){ 9 jQuery('#nav-icon').toggleClass('open'); 10 jQuery('#mydog365-top-navigation').toggleClass('open'); 11 }); 12 13 /* Digistore PayFrame */ 14 jQuery('.pay-link').click(function() { 15 jQuery('.ds24_payIFrame').attr('src', jQuery(this).attr('tgt')); 16 console.log('Klick'); 17 }); 18 19 /* FAQ */ 20 var acc = document.getElementsByClassName("faq-heading"); 21 var i; 22 23 for (i = 0; i < acc.length; i++) { 24 acc[i].addEventListener("click", function() { 25 this.classList.toggle("active"); 26 var panel = this.nextElementSibling; 27 if (panel.style.maxHeight){ 28 panel.style.maxHeight = null; 29 } else { 30 panel.style.maxHeight = panel.scrollHeight + "px"; 31 } 32 }); 33 } 34 35 var zindex_counter = '10'; 36 jQuery('.description-link').click(function() { 37 event.preventDefault(); 38 var link = jQuery(this).attr('href'); 39 jQuery('.description').each(function() { 40 jQuery(this).addClass('closed'); 41 }); 42 jQuery(link).toggleClass('closed'); 43 jQuery(link).css('z-index', zindex_counter); 44 zindex_counter++; 45 }); 46 jQuery('.description-close').click(function() { 47 jQuery(this).parent().toggleClass('closed'); 48 }); 49 50 jQuery('#homestories-container').slick({ 51 slidesToShow: 2, 52 slidesToScroll: 1, 53 arrows: false, 54 autoplay: true, 55 autoplaySpeed: 5000, 56 responsive: 57 [ 58 { 59 breakpoint: 1024, 60 settings: { 61 slidesToShow: 2, 62 } 63 }, 64 { 65 breakpoint: 768, 66 settings: { 67 slidesToShow: 1, 68 } 69 } 70 ] 71 }); 72 jQuery('#das-sagen-unsere-teilnehmer a.zurueck').on('click', function(){ 73 jQuery('#homestories-container').slick('slickPrev'); 74 }); 75 jQuery('#das-sagen-unsere-teilnehmer a.vor').on('click', function(){ 76 jQuery('#homestories-container').slick('slickNext'); 77 }); 78 79 jQuery('#nutzer-sagen-wrapper').slick({ 80 slidesToShow: 2, 81 slidesToScroll: 1, 82 arrows: false, 83 autoplay: true, 84 autoplaySpeed: 5000, 85 responsive: 86 [ 87 { 88 breakpoint: 1024, 89 settings: { 90 slidesToShow: 2, 91 } 92 }, 93 { 94 breakpoint: 768, 95 settings: { 96 slidesToShow: 1, 97 } 98 } 99 ] 100 }); 101 jQuery('#nutzer-sagen-ueber-mydog365 a.zurueck').on('click', function(){ 102 jQuery('#nutzer-sagen-wrapper').slick('slickPrev'); 103 }); 104 jQuery('#nutzer-sagen-ueber-mydog365 a.vor').on('click', function(){ 105 jQuery('#nutzer-sagen-wrapper').slick('slickNext'); 106 }); 107 108 109 110}); 111 112 113 114 115 116jQuery(window).scroll(function() { 117 if(jQuery('#element').length) { 118 var top_of_element = jQuery("#element").offset().top; 119 var bottom_of_element = jQuery("#element").offset().top + jQuery("#element").outerHeight(); 120 var bottom_of_screen = jQuery(window).scrollTop() + window.innerHeight; 121 var top_of_screen = jQuery(window).scrollTop(); 122 123 if ((bottom_of_screen > top_of_element) && (top_of_screen < bottom_of_element)){ 124 jQuery('.counter').each(function() { 125 if(jQuery(this).text() == 0) { 126 var $this = jQuery(this), 127 countTo = $this.attr('data-count'); 128 129 jQuery({ countNum: $this.text()}).animate({ 130 countNum: countTo 131 }, 132 { 133 duration: 2000, 134 easing:'swing', 135 step: function() { 136 $this.text(Math.floor(this.countNum).toLocaleString('de-DE')); 137 }, 138 complete: function() { 139 $this.text(this.countNum.toLocaleString('de-DE')); 140 } 141 }); 142 } 143 }); 144 } 145 } 146}); 147 148 149
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.