1//------------------------------------------------------------------- 2// Part of interaktiv.shop | www.interaktiv.net 3// Projektspezifische JS-Funktionen 4//------------------------------------------------------------------- 5 6// Allgemeine Config-Variablen 7 8var ianbootstrapbpoint ; 9var ianshopconfig = { 10 11 navialignchange: 600 , 12 autosuggestwidth: 0 , 13 autosuggestheight: 0 , 14 autosuggestpname: '' , 15 autosuggestdelay: 0 , 16 counterpixelid: '' , 17 scartheadnoshow: 0 , 18 scartlistnomsg: 0 , 19 scartdetailnomsg: 0 , 20 scartmsgwidth: 0 , 21 scartmsgheight: 300 , 22 scartimgtyp: 'gif' , 23 dialogtxtwidth: 0 , 24 dialogtxtheight: 0 , 25 messagetxtwidth: 0 , 26 messagetxtheight: 0 , 27 cookiesecure: true , 28 cookiesamesite: 'None' 29} ; 30 31// Google Opt-Out 32 33var googleDisableStr = 'ga-disable-' + 'UA-37360337-Y' ; 34 35if ( $.cookie(googleDisableStr) == 'true' ) { 36 window[googleDisableStr] = true; 37} 38 39function gaOptout() { 40 41 $.cookie( googleDisableStr , 'true', { expires:7300 , domain:'uhrendirect.de' , path:'/' } ) ; 42 window[googleDisableStr] = true ; 43} 44 45// Top-Teaser 46 47function ttophide() { 48 49 $.cookie('interaktivshopttop','1',{ expires:0.24 , path:'/' }) ; 50 $(".os_head_teasertop").hide() ; 51 52 return false ; 53} 54 55// ScrollToTop Autohide 56 57jQuery.fn.autohidebacktotop = function() { 58 59 var elm = $(this) ; 60 61 $(window).scroll(function(){ 62 63 if ( $( window ).scrollTop() > 200 ) { 64 elm.fadeIn('slow') ; 65 } else { 66 elm.fadeOut('slow') ; 67 } 68 }) ; 69 70 elm.bind("click", function() { 71 72 $("html, body").animate({scrollTop:0}) ; 73 return false ; 74 }) ; 75} ; 76 77// Warenkorb aktualisieren 78 79function doUpdateScart(source,form,action,back) { 80 81 var monchek = $("#os_scshort_content").text().match(/(\d+)/) ; 82 var moninit = monchek ? monchek[0] : "0" ; 83 $("#os_scshort_content_small").html( moninit ) ; 84} 85 86// Bootstrap Breakpoint 87 88function findBootstrapEnvironment() { 89 90 var envValues = ["xs","sm","md","lg"] ; 91 var $el = $('<div>') ; 92 $el.appendTo($('body')) ; 93 94 for ( var i = envValues.length - 1; i >= 0; i-- ) { 95 96 var envVal = envValues[i] ; 97 $el.addClass('hidden-'+envVal) ; 98 99 if ($el.is(':hidden')) { 100 $el.remove() ; 101 return envValues[i] ; 102 } 103 } ; 104} 105 106// Autostart 107 108$(document).ready(function() { 109 110 ianbootstrapbpoint = findBootstrapEnvironment() ; 111 112 //Mobilversionen 113 if ( ianbootstrapbpoint == "xs" || ianbootstrapbpoint == "sm" ) { 114 115 //Angepasste Einstellungen 116 if ( ianbootstrapbpoint == "xs" ) { 117 ianshopconfig.scartdetailnomsg = 0 ; 118 ianshopconfig.scartlistnomsg = 0 ; 119 } 120 121 //Footer Navi 122 if ( ianbootstrapbpoint == "xs" ) { 123 124 $(".os_foot_navi_con").hide() ; 125 $(".os_foot_navi_tit").click(function() { 126 127 $(".os_foot_navi_con").hide() ; 128 129 if ( $(this).hasClass("os_foot_navi_act") ) { 130 131 $(".os_foot_navi_tit").removeClass("os_foot_navi_act") ; 132 133 } else { 134 135 $(".os_foot_navi_tit").removeClass("os_foot_navi_act") ; 136 $(this).addClass("os_foot_navi_act") ; 137 var navt = $(this).attr("data-target") ; 138 $("#" + navt).show() ; 139 } 140 }) ; 141 } 142 } 143 144 //Off-Canvas 145 $("#os_headxs_prod_link").click( function(){ 146 $("#os_headxs_prod").toggleClass("active") ; 147 $("body > section , body > header , body > footer , body > div").toggleClass("active") ; 148 }); 149 150 //Popup Warenkorb 151 $("#os_order_payment").submit( function() { 152 MessageOverlay('','<br><br><b>Bitte warten</b> ... Ihr Warenkorb wird aktualisiert ...') ; 153 }); 154 155 //Popup Bestellung 156 $("#os_order_last").submit( function() { 157 MessageOverlay('','<br><br><b>Bitte warten</b> ... Ihre Bestellung wird ausgeführt ...') ; 158 }); 159 160 //Top 161 $("#autohidebacktotop").autohidebacktotop() ; 162 163 //AutoSearch 164 if ( $.cookie('interaktivshopsession') && $("#sbbo").length ) { 165 166 $("#sbbo").autocomplete( ajaxpath + "?plugin=searchautobo" , { 167 168 delay:500 , 169 width:700 , 170 scrollHeight:500 , 171 minChars:4 , 172 max:5 , 173 matchSubset:false , 174 matchContains:false , 175 cacheLength:100 , 176 selectFirst:false 177 }) ; 178 179 $("#sbbo").change( function() { 180 $(".ac_results ul").unbind() ; 181 }) ; 182 } 183 184 //LastViewed 185 if ( $.cookie('interaktivshopsession') && $.cookie("interaktivshoplast") ) { 186 187 $("#os_app_prodlast_button").css('display','inline-block') ; 188 189 $('#os_app_prodlast_button').click(function(){ 190 191 if ( $("#os_app_prodlast_content").is(':hidden') ) { 192 193 $('#os_app_prodlast_button').hide() ; 194 $("#os_app_prodlast_content .data").hide() ; 195 $("#os_app_prodlast_content").show() ; 196 197 $.get( 198 syspathshop + "?application=prodlast&amount=5" , 199 function(data){ 200 201 $("#os_app_prodlast_content").find(".data").html(data).show() ; 202 } 203 ); 204 205 $("body, html").animate( { scrollTop: $('.os_foot_main').offset().top - 20 } , 400 ) ; 206 207 } else { 208 209 $("#os_app_prodlast_content").find(".data").hide() ; 210 $("#os_app_prodlast_content").hide() ; 211 } 212 }); 213 } 214}); 215 216//END
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.