1jQuery(document).ready(function($){ 2 var cookieCheck = $.cookie('stttrackcookie', Number); 3 var doNotSetCookieCheck = $.cookie('sttdonottrackcookie', Number); 4 if((typeof cookieCheck === 'undefined' || cookieCheck !== 1) && 5 (typeof doNotSetCookieCheck === 'undefined' || doNotSetCookieCheck !== 1)) { 6 $('#stt-cookie').css("display","block"); 7 $('#stt-cookie').find('#stt-cookie-btn-accept').click(function(){ 8 $.cookie('stttrackcookie', 1, {expires:365, path:'/'}); 9 $('#stt-cookie').slideUp(function(){ 10 $('#stt-cookie').css("display","none"); 11 }); 12 console.log("Tracking Cookie wurde gesetzt."); 13 // reload page with tracking tools 14 location.reload(); 15 }); 16 $('#stt-cookie').find('#stt-cookie-btn-decline').click(function(){ 17 console.log("Tracking Cookie wurde nicht gesetzt."); 18 // set decline_cookie(necessary) 19 $.cookie('sttdonottrackcookie', 1, {expires:30, path:'/'}); 20 21 // hide Info 22 $('#stt-cookie').slideUp(function(){ 23 $('#stt-cookie').css("display","none"); 24 }); 25 }); 26 } 27 28 $('.stt-disable-tracking').on('click', function(){ 29 $.removeCookie('stttrackcookie', { path: '/' }); 30 $.removeCookie('sttdonottrackcookie', { path: '/' }); 31 console.log("Tracking/Untracking Cookies wurden gelöscht."); 32 location.reload(); 33 }) 34 35 // Suche 36 37 $('#tx-indexedsearch-searchbox-btn').on('click', function(e){ 38 $(this).toggleClass("stt-input-active"); 39 $('.stt-quicksearch-input').toggleClass("stt-input-active"); 40 $('#tx-indexedsearch-searchbox-sword').focus(); 41 $('.stt-quicksearch-background').toggleClass('stt-bg-active'); 42 }); 43 44 try { 45 window.productSource = new Bloodhound({ 46 datumTokenizer: Bloodhound.tokenizers.obj.whitespace('name'), 47 queryTokenizer: Bloodhound.tokenizers.whitespace, 48 identify: function(obj) { return obj.name; }, 49 remote: { 50 url: 'XXHOSTXX?type=1573477548&tx_stuermerprodukte_search[q]=%query', 51 prepare: function (query, settings) { 52 var url = window.location.href; 53 var arr = url.split("/"); 54 var host = arr[0] + "//" + arr[2]; 55 settings.url = host + '/?type=1573477548&tx_stuermerprodukte_search[q]=' + query; 56 57 return settings; 58 }, 59 wildcard: '%query' 60 } 61 }); 62 }catch (e) { 63 console.log('Bloodhound could not be loaded'); 64 return; 65 } 66 67 $('#tx-indexedsearch-searchbox-sword').typeahead( 68 { 69 minLength: 2, 70 highlight: false 71 }, 72 { 73 name: 'default', 74 display: 'fullname', 75 templates: { 76 suggestion: function(data) { 77 if(data != null){ 78 if(data.artno != false){ 79 return '' + 80 '<div class="prodsearch-result-item">' + 81 '<a class="" href="'+data.uri+'" title="' + data.name + ' - ' + data.type + ' (Art.Nr. ' + data.artno + ')">' + 82 '<div class="row">' + 83 '<div class="col-2">' + 84 ((data.img > "") ? '<img class="img-responsive w-100" src="/fileadmin/medaprofiles/' + data.img + '"/>' : '') + 85 '</div>' + 86 '<div class="col-10">' + 87 '<h3>' + data.name + '</h3>' + 88 '<span class="d-block">' + data.type + '</span>' + 89 '<span class="d-block">' + $('#tx-indexedsearch-searchbox-sword').data('artno') + ' <strong>' + data.artno + '</strong></span>' + 90 '</div>' + 91 '</div>' + 92 '</a>' + 93 '</div>'; 94 } else { 95 return '' + 96 '<div class="prodsearch-result-item">' + 97 '<a class="" href="'+data.uri+'" title="' + data.name + ' - ' + data.type + ' (Art.Nr. ' + data.artno + ')">' + 98 '<div class="row">' + 99 '<div class="col-2">' + 100 ((data.img > "") ? '<img class="img-responsive w-100" src="/fileadmin/medaprofiles/' + data.img + '"/>' : '') + 101 '</div>' + 102 '<div class="col-10">' + 103 '<h3>' + data.name + '</h3>' + 104 '<span class="d-block">' + data.type + '</span>' + 105 '<span class="d-block">'+ $('#tx-indexedsearch-searchbox-sword').data('vargroup') +'</span>' + 106 '</div>' + 107 '</div>' + 108 '</a>' + 109 '</div>'; 110 } 111 } 112 }, 113 empty: function(data){ 114 return [ 115 '<div class="prodsearch-result-item opensearch" onclick="opensearch();return false;">' + 116 '<div class="row">' + 117 '<div class="col-12">' + 118 '<span class="d-block"><strong><i class="fa fa-search"></i> ' + $('#tx-indexedsearch-searchbox-sword').data('defaulttext')+ ': \'' + $('#tx-indexedsearch-searchbox-sword').val() + ' \'</strong></p>' + 119 '</div>' + 120 '</div>' + 121 '</div>' 122 ]; 123 }, 124 footer : function(data){ 125 return [ 126 '<div class="prodsearch-result-item opensearch" onclick="opensearch();return false;">' + 127 '<div class="row">' + 128 '<div class="col-12">' + 129 '<span class="d-block"><strong><i class="fa fa-search"></i> ' + $('#tx-indexedsearch-searchbox-sword').data('defaulttext')+ ': \'' + $('#tx-indexedsearch-searchbox-sword').val() + ' \'</strong></p>' + 130 '</div>' + 131 '</div>' + 132 '</div>' 133 ]; 134 } 135 }, 136 source: productSource 137 } 138 ); 139 140 $('#tx-indexedsearch-searchbox-sword').on('keypress', function(e){ 141 if(e.which == 13) { 142 $suggestion = $('.tt-dataset .tt-suggestion'); 143 if($suggestion.length > 0){ 144 var href = $suggestion.find("a").first().attr('href'); 145 window.location.href = href; 146 } else { 147 $('#tx_indexedsearch').submit(); 148 } 149 } 150 }); 151 $('#tx-indexedsearch-searchbox-sword').focusout(function(e){ 152 $('#tx-indexedsearch-searchbox-btn').toggleClass("stt-input-active"); 153 $('.stt-quicksearch-input').toggleClass("stt-input-active"); 154 $('.stt-quicksearch-background').toggleClass('stt-bg-active'); 155 156 }); 157 158}); 159 160function handleCookieLessTracking(gakey) { 161 //console.log("ga läuft ohne cookies!"); 162 if (window.XMLHttpRequest) req = new XMLHttpRequest(); 163 if (!req == null) return; 164 if (!window._clientId && !window._clientReq) { 165 req.onreadystatechange = function() { 166 if (this.readyState == 4 && this.status == 200) { 167 window._clientReq = true; 168 window._clientId = this.responseText; 169 //console.log("clientId: "+this.responseText); 170 handleCookieLessTracking(gakey); 171 } 172 }; 173 req.open("GET", "/getclientid.php", true); 174 req.send(); 175 } else if ((!window._clientId || (window._clientId == "")) 176 && window._clientReq === true) { 177 window._clientId = "1111-22-0815"; 178 //console.log("no clientId!"); 179 handleCookieLessTracking(gakey); 180 } else { 181 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ 182 (i[r].q=i[r].q||[]).push(arguments)}, i[r].l=1*new Date();a=s.createElement(o), 183 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 184 })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); 185 ga('create', gakey, 'auto', 186 { 187 'storage':'none', 188 'storeGac' : false, 189 'clientId': window._clientId 190 } 191 ); 192 ga('set', 'anonymizeIp', true); 193 ga('send', 'pageview'); 194 195 //window.dataLayer = window.dataLayer || []; 196 //window.dataLayer.push({ 197 // 'event': 'clientIdReady', 198 // 'anonymize_ip': true, 199 // 'srvClientId': window._clientId 200 //}); 201 //console.log("ga send!"); 202 } 203} 204 205function opensearch(){ 206 $('#tx_indexedsearch').submit(); 207} 208 209(function($){ 210 if($().slick){ 211 // Init Home HeaderSlider 212 $('.stt-home-headerslider').slick({ 213 autoplay: true, 214 autoplaySpeed: 6000, 215 dots: false, 216 arrows: true, 217 appendArrows: $('.stt-home-headerslider-nav'), 218 prevArrow: '<div class="slick-prev slick-arrow pull-left"><i class="fa fa-4x fa-angle-left"></i></div>', 219 nextArrow: '<div class="slick-next slick-arrow pull-right"><i class="fa fa-4x fa-angle-right"></i></div>', 220 }); 221 222 // Init Pageslider 223 $('.stt-home-pageslider-slider').slick({ 224 dots: false, 225 arrows: true,
226 appendArrows: $('.stt-home-pageslider-controls'), 227 prevArrow: '<div class="slick-prev slick-arrow"><i class="fa fa-2x fa-angle-left"></i></div>', 228 nextArrow: '<div class="slick-next slick-arrow"><i class="fa fa-2x fa-angle-right"></i></div>', 229 }); 230 231 // Init CE-Slider 232 $('.stt-ce-slider').slick({ 233 autoplay: true, 234 autoplaySpeed: 3000, 235 dots: true, 236 dotsClass: "stt-ce-dots", 237 arrows: false, 238 adaptiveHeight: true, 239 }); 240 241 // Init News-Slider 242 $('.stt-news-slider').slick({ 243 dots: false, 244 arrows: true, 245 adaptiveHeight: true, 246 appendArrows: $('.stt-news-slidercontrols'), 247 prevArrow: '<div class="slick-prev slick-arrow"><i class="fa fa-angle-left"></i></div>', 248 nextArrow: '<div class="slick-next slick-arrow"><i class="fa fa-angle-right"></i></div>', 249 }); 250 251 // News-Imageslider 252 $('.news-img-slider').slick({ 253 dots: false, 254 arrows: true, 255 speed: 300, 256 autoplay: false, 257 slidesToShow: 1, 258 appendArrows: $('.stt-news-slider-nav'), 259 adaptiveHeight: true, 260 prevArrow: '<div class="slick-prev slick-arrow"><i class="fa fa-4x fa-angle-left"></i></div>', 261 nextArrow: '<div class="slick-next slick-arrow"><i class="fa fa-4x fa-angle-right"></i></div>', 262 }); 263 264 // News-Imageslider 265 $('#stp-product-slider').not('.slick-initialized').slick({ 266 dots: false, 267 arrows: true, 268 speed: 300, 269 autoplay: false, 270 slidesToShow: 1, 271 adaptiveHeight: true, 272 prevArrow: '<div class="slick-prev slick-arrow"><i class="fa fa-4x fa-angle-left"></i></div>', 273 nextArrow: '<div class="slick-next slick-arrow"><i class="fa fa-4x fa-angle-right"></i></div>', 274 }); 275 } 276 277 if($().tooltip) { 278 $(function () { 279 $('[data-toggle="tooltip"]').tooltip() 280 }); 281 } 282 283 $(function() { 284 285 $('a.lightbox').fancybox({ 286 buttons : [ 287 'close' 288 ], 289 }); 290 }); 291})(jQuery); 292 293 294// Google Tag Manager OptOut 295var gaProperty = 'UA-114692030-1'; 296var disableStr = 'ga-disable-' + gaProperty; 297if (document.cookie.indexOf(disableStr + '=true') > -1) { 298 window[disableStr] = true; 299} 300function gaOptout() { 301 document.cookie = disableStr + '=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/'; 302 window[disableStr] = true; 303} 304 305
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.