1$(document).ready(function () { 2 3 $('[data-toggle="tooltip"]').tooltip({ 4 title: function () { 5 return $(this).data('title').length ? $(this).data('title') : $(this).attr('title'); 6 } 7 }); 8 9 $(window).scroll(function () { 10 if ($(this).scrollTop() > 100) { 11 $('.totop').stop().addClass('showtt'); 12 } else { 13 14 $('.totop').stop().removeClass('showtt'); 15 } 16 }); 17 18 19 if ($("#share").length >= 1) { 20 $.getScript("/js/jssocials/jssocials.min.js", function () { 21 22 $("#share").jsSocials({ 23 shareIn: "popup", 24 showCount: false, 25 showLabel: true, 26 shares: [ 27 "email", 28 "twitter", 29 "facebook", 30 "linkedin", 31 {share: "pinterest", label: "Pin this"}, 32 "whatsapp" 33 ] 34 }); 35 36 }); 37 } 38 39 $(document).on("click", '[data-toggle="lightbox"]', function(event) { 40 event.preventDefault(); 41 $(this).ekkoLightbox({ 42 alwaysShowClose: true 43 }); 44 }); 45 46 $(document).on('click', '#expand', function () { 47 $(this).parent().addClass('zihi'); 48 $('#nav').fadeToggle(); 49 $('#nav').css('display', 'flex'); 50 51 if (!$(this).parent().hasClass('expanded')) { 52 setTimeout(function () { 53 $('.header').addClass('zitausend'); 54 }, 500); 55 } 56 57 $(this).parent().toggleClass('expanded'); 58 59 }); 60 61 $('.clear').remove(); 62 63 // ### navi hide and show ul ########################################################### 64 65 $('.mainmenu ul li').has('ul').append('<span class="chevron"></span>'); 66 $('.mainmenu ul li ul li').has('ul').append('<span class="chevron"></span>'); 67 $('.mainmenu ul li .chevron').click(function () { 68 $(this).parent().toggleClass('showul'); 69 }); 70 71 72 // ######################################## Tabs // AKKORDEON FAQ ############################################### 73 74 $('.faq-inhalt span.faq-frage').click(function () { 75 $('.faq-inhalt .faq-antwort.active').removeClass('active'); 76 $(this).toggleClass('active'); 77 78 $('.faq-inhalt .faq-antwort').each( 79 function (i) { 80 var classes = this.classList; 81 for (var i = 0, len = classes.length; i < len; i++) { 82 if ($('.faq-inhalt span.faq-frage.active').hasClass(classe
82s[i])) { 83 $(this).toggleClass('active'); 84 } 85 } 86 }); 87 }); 88 89 90 91 92 $('.text .table').filter(function () { 93 return $(this).width() > $(window).innerWidth(); 94 }).wrap('<div class="tabellewrap"></div>'); 95 96 $('.html .table').filter(function () { 97 return $(this).width() > $(window).innerWidth(); 98 }).wrap('<div class="tabellewrap"></div>'); 99 100 $('.dataTables_wrapper table.display').filter(function () { 101 return $(this).width() > $(window).innerWidth(); 102 }).wrap('<div class="tabellewrap"></div>'); 103 104 105 if ($("[data-fancybox]").length >= 1) { 106 $.getScript("/js/fancybox/3/jquery.fancybox.min.js", function () { 107 108 $("[data-fancybox]").fancybox({ 109 fullScreen: false, 110 closeBtn: true, 111 infobar: false, 112 modal: false, 113 toolbar: false, 114 iframe: { 115 css: { 116 width: '900px', 117 height: '700px' 118 } 119 } 120 }); 121 122 }); 123 } 124 125 if ($(".oneImage").length >= 1) { 126 $.getScript("/js/fancybox/3/jquery.fancybox.min.js", function () { 127 128 $('.oneImage').fancybox({ 129 titleShow: false, 130 titlePosition: 'inside', 131 closeBtn: true, 132 infobar: false, 133 modal: false, 134 toolbar: false 135 136 }); 137 138 }); 139 } 140 141 if ($(".grafik-embed").length >= 1) { 142 $.getScript("/js/fancybox/3/jquery.fancybox.min.js", function () { 143 $(".grafik-embed").fancybox({ 144 onComplete: function (a) { 145 var filename = a.$lastFocus.data('chart-filename'); 146 var headline = a.$lastFocus.data('chart-headline'); 147 var current_page = a.$lastFocus.data('chart-current-page'); 148 var width = a.$lastFocus.data('chart-width'); 149 var id = this.opts.$orig[0].id; 150 $('#chart_fancybox_embed_' + filename).append('<b>Embed Code:</b><br/><br/><xmp style="max-width: 640px; white-space: pre-wrap;"><a title="' + headline + '" href="' + current_page + '" target="_blank"><img src="/charts/' + id + '" alt="' + headline + '" style="width:100%; height:auto!important; max-width:' + width + 'px; -ms-interpolation-mode:bicubic;" /></a></xmp><br/><xmp style="max-width: 640px; white-space: pre-wrap;">StromAuskunft liefert Infografiken zu Preisen und Entwicklungen auf dem Energiemarkt. Dabei werden auch Entwicklungen der letzten Jahre sowie regionale Preisentwicklungen gezeigt. Die Statistiken und Infografiken von StromAuskunft.de stehen unter der Creative Commons Lizenz zur freien Verfügung.</xmp>'); 151 }, 152 afterClose: function (a) { 153 var filename = a.$lastFocus.data('chart-filename'); 154 $('#chart_fancybox_embed_' + filename).html(''); 155 }, 156 }); 157 }); 158 } 159 160 $('.grafik-download').click(function() { 161 var filename = $(this).data('chart-filename'); 162 console.log(filename); 163 window.open('/charts/'+filename+'.png'); 164 }); 165 166 // The speed of the scroll in milliseconds 167 var speed = 1000; 168 169 // Find links that are #anchors and scroll to them 170 $('a[href^="#"]').on('click', function (e) { 171 if (!$(this).hasClass('noScroll')) { 172 if ('undefined' === typeof $(this).data('toggle') && !$(this).hasClass('grafik-embed')) { 173 e.preventDefault(); 174 var target = this.hash; 175 var $target = $(target); 176 $('html, body').stop().animate({ 177 'scrollTop': $target.offset().top 178 }, 900, 'swing', function () { 179 window.location.hash = target; 180 }); 181 } 182 } 183 }); 184}); 185 186 187// $('.lazy').Lazy({ 188// // your configuration goes here 189// scrollDirection: 'vertical', 190// effect: 'fadeIn', 191// visibleOnly: true, 192// onError: function(element) { 193// console.log('error loading ' + element.data('src')); 194// } 195// }); 196 197$(document).ready(function () { 198 if ($(".chosen-select").length) { 199 $(".chosen-select").chosen({ 200 no_results_text: "Nichts gefunden:", 201 disable_search_threshold: 10 202 }); 203 } 204}); 205 206(function () { 207 208 var youtube = document.querySelectorAll(".youtube"); 209 210 for (var i = 0; i < youtube.length; i++) { 211 212 var source = "https://img.youtube.com/vi/" + youtube[i].dataset.embed + "/sddefault.jpg"; 213 214 var image = new Image(); 215 image.src = source; 216 image.alt = 'YouTube'; 217 image.addEventListener("load", function () { 218 youtube[i].appendChild(image); 219 }(i)); 220 221 youtube[i].addEventListener("click", function () { 222 223 var iframe = document.createElement("iframe"); 224 225 iframe.setAttribute("frameborder", "0"); 226 iframe.setAttribute("allowfullscreen", ""); 227 iframe.setAttribute("src", "https://www.youtube.com/embed/" + this.dataset.embed + "?rel=0&showinfo=0&autoplay=1"); 228 229 this.innerHTML = ""; 230 this.appendChild(iframe); 231 }); 232 } 233 ; 234 235})(); 236 237jQuery.event.special.touchstart = { 238 setup: function (_, ns, handle) { 239 if (ns.includes("noPreventDefault") || ns.includes("chosen")) { 240 this.addEventListener("touchstart", handle, {passive: false}); 241 } else { 242 this.addEventListener("touchstart", handle, {passive: true}); 243 } 244 } 245}; 246jQuery.event.special.touchmove = { 247 setup: function (_, ns, handle) { 248 if (ns.includes("noPreventDefault")) { 249 this.addEventListener("touchmove", handle, {passive: false}); 250 } else { 251 this.addEventListener("touchmove", handle, {passive: true}); 252 } 253 } 254};
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.