1$(document).ready(function(){ 2 3 /*Hotfix PopUp Href Problem */ 4 5 $("#popup_uk_contact").attr("href", "https://www.holzher.co.uk/de/contact/your-sales-contact-partner.html"); 6 $("#popup_nl").attr("href", "https://www.holzher.de/de/aktuelles/news/newsletter.html"); 7 $("#popup_it_contact").attr("href", "https://www.holz-her.it/it/contatti/holz-her-esperti.html"); 8 9 10 $("#tx-indexedsearch-searchbox-sword").change(function() { 11 $('#tx_indexedsearch').attr("action", $('#tx_indexedsearch').attr("action")+"&s="+$(this).val()); 12 13 14 }); 15 16 function inIframe() { 17 try { 18 return window.self !== window.top; 19 } catch (e) { 20 return true; 21 } 22 } 23 24 let isInIframe = inIframe(); 25 if (isInIframe == true) { 26 $('html').addClass("inIframe"); 27 } 28 29 $("#c19986 .level-3 li a").first().addClass("fancybox_us"); 30 31 $(".fancybox_us").on("click", function(e) { 32 e.preventDefault(); 33 34 $.fancybox.open({ 35 href : $(this).attr('href'), 36 type : 'iframe', 37 width: 960, 38 maxHeight: height, 39 height: height, 40 minHeight: height, 41 padding : 5, 42 afterLoad: function(){ 43 44 } 45 }); 46 }); 47 48 49 //Holzher Canada Ländermenü 50 $("header .langNavToggle").on("click", function(){ 51 $(this).toggleClass("open"); 52 $(".languageLayer").delay(300).slideToggle("fast"); 53 }); 54 55 var currentUrl = window.location.href; 56 57 if (currentUrl.indexOf("holzher.ca/en") !== -1) { 58 $('.label').text("EN"); 59 60 61 62 63 64 } else if (currentUrl.indexOf("holzher.ca/fr") !== -1) { 65 $('.label').text("FR"); 66 $('.logo a').attr("href", "https://www.holzher.ca/fr/") 67 68 } 69 70 else if (currentUrl.indexOf("weinig.ch/de") !== -1) { 71 $('.label').text("DE"); 72 $('.logo a').attr("href", "https://www.weinig.ch/de/") 73 74 } 75 76 else if (currentUrl.indexOf("weinig.ch/fr") !== -1) { 77 $('.label').text("FR"); 78 $('.logo a').attr("href", "https://www.weinig.ch/fr/") 79 80 } 81 82 else if (currentUrl.indexOf("holzher.ch/de") !== -1) { 83 $('.label').text("DE"); 84 $('.logo a').attr("href", "https://www.holzher.ch/de/") 85 86 } 87 88 else if (currentUrl.indexOf("holzher.ch/fr") !== -1) { 89 $('.label').text("FR"); 90 $('.logo a').attr("href", "https://www.holzher.ch/fr/") 91 92 } 93 94 if (currentUrl.indexOf("weinigusa.com/us") !== -1) { 95 $( ".shareRecommend__icon" ).hover( 96 function() { 97 $( this ).addClass( "active" ); 98 }, function() { 99 $( this ).removeClass( "active" ); 100 } 101 ); 102 103 $( ".pageRecommend__text" ).hover( 104 function() { 105 $( ".shareRecommend__icon" ).addClass( "active" ); 106 }, function() { 107 $( ".shareRecommend__icon" ).removeClass( "active" ); 108 } 109 ); 110 } 111 112 if (currentUrl.indexOf("holzherusa.com/us") !== -1) { 113 $( ".shareRecommend__icon" ).hover( 114 function() { 115 $( this ).addClass( "active" ); 116 }, function() { 117 $( this ).removeClass( "active" ); 118 } 119 ); 120 121 122 $( ".pageRecommend__text" ).hover( 123 function() { 124 $( ".shareRecommend__icon" ).addClass( "active" ); 125 }, function() { 126 $( ".shareRecommend__icon" ).removeClass( "active" ); 127 } 128 ); 129 } 130 131 132 133 //scrolling(); 134 if (!$('body').hasClass("overlay")) { 135 136 goUp(); 137 autoshow(); 138 }; 139 handleCDN(); 140 $(".side-menu").css("left","-300px"); 141 /*$('.sectionNav').smint({ 142 'scrollSpeed' : 2000 143 }); 144 */ 145 pageBrowserIcon(); 146 var w = $(window).width(); 147 w = (w / 100) * 80; 148 if (w > 1280) w = 1280; 149 150 var height = $(window).height() - 140; 151 152 var h = w / 16 * 9; 153 height = $(window).height() - 140; 154 155 $("#productContact1").on("click", function(e) { 156 e.preventDefault(); 157 158 $(".hiddenPriceFormBackdrop").fadeIn("slow", function(){
159 $("#productContact1").next().fadeIn(); 160 }); 161 162 $("#frmPriceContact").on("submit", function(event){ 163 event.preventDefault(); 164 165 $.ajax({ 166 url: $(this).attr("action"), 167 data: $(this).serialize(), 168 method: "POST", 169 success: function(data){ 170 $("#productContact1").next().html($(data).find("#productContact1").next().html()); 171 if($(data).find("#frmPriceContact .g-recaptcha").length) { 172 grecaptcha.render($(data).find("#frmPriceContact .g-recaptcha").attr("id"), { 173 'sitekey' : $(data).find("#frmPriceContact .g-recaptcha").data("sitekey"), 174 'theme' : 'light' 175 }); 176 } 177 178 $(".hiddenPriceForm .close").on("click", function(){ 179 $(".hiddenPriceForm").fadeOut("slow", function(){ 180 $(".hiddenPriceFormBackdrop").fadeOut(); 181 }); 182 }); 183 } 184 }); 185 }); 186 }); 187 188 $("#productContact2").on("click", function(e) { 189 e.preventDefault(); 190 191 $(".hiddenPriceFormBackdrop").fadeIn("slow", function(){ 192 $("#productContact2").next().fadeIn(); 193 }); 194 195 $("#frmPriceContact1").on("submit", function(event){ 196 event.preventDefault(); 197 198 $.ajax({ 199 url: $(this).attr("action"), 200 data: $(this).serialize(), 201 method: "POST", 202 success: function(data){ 203 $("#productContact2").next().html($(data).find("#productContact2").next().html()); 204 if($(data).find("#frmPriceContact1.g-recaptcha").length) { 205 grecaptcha.render($(data).find("#frmPriceContact1 .g-recaptcha").attr("id"), { 206 'sitekey' : $(data).find("#frmPriceContact1 .g-recaptcha").data("sitekey"), 207 'theme' : 'light' 208 }); 209 } 210 $(".hiddenPriceForm .close").on("click", function(){ 211 $(".hiddenPriceForm").fadeOut("slow", function(){ 212 $(".hiddenPriceFormBackdrop").fadeOut(); 213 }); 214 }); 215 } 216 }); 217 }); 218 }); 219 220 $("#productContact3").on("click", function(e) { 221 e.preventDefault(); 222 223 $(".hiddenPriceFormBackdrop").fadeIn("slow", function(){ 224 $("#productContact3").next().fadeIn(); 225 }); 226 227 $("#frmPriceContact3").on("submit", function(event){ 228 event.preventDefault(); 229 230 $.ajax({ 231 url: $(this).attr("action"), 232 data: $(this).serialize(), 233 method: "POST", 234 success: function(data){ 235 $("#productContact3").next().html($(data).find("#productContact3").next().html()); 236 if($(data).find("#frmPriceContact3.g-recaptcha").length) { 237 grecaptcha.render($(data).find("#frmPriceContact3 .g-recaptcha").attr("id"), { 238 'sitekey' : $(data).find("#frmPriceContact3 .g-recaptcha").data("sitekey"), 239 'theme' : 'light' 240 }); 241 } 242 $(".hiddenPriceForm .close").on("click", function(){ 243 $(".hiddenPriceForm").fadeOut("slow", function(){ 244 $(".hiddenPriceFormBackdrop").fadeOut(); 245 }); 246 }); 247 } 248 }); 249 }); 250 }); 251 252 $("#productContact4").on("click", function(e) { 253 e.preventDefault(); 254 255 $(".hiddenPriceFormBackdrop").fadeIn("slow", function(){ 256 $("#productContact4").next().fadeIn(); 257 }); 258 259 $("#additionalProductForm").on("submit", function(event){ 260 event.preventDefault(); 261 262 $.ajax({ 263 url: $(this).attr("action"), 264 data: $(this).serialize(), 265 method: "POST", 266 success: function(data){
267 $("#productContact4").next().html($(data).find("#productContact4").next().html()); 268 if($(data).find("#additionalProductForm.g-recaptcha").length) { 269 grecaptcha.render($(data).find("#additionalProductForm .g-recaptcha").attr("id"), { 270 'sitekey' : $(data).find("#additionalProductForm .g-recaptcha").data("sitekey"), 271 'theme' : 'light' 272 }); 273 } 274 $(".hiddenPriceForm .close").on("click", function(){ 275 $(".hiddenPriceForm").fadeOut("slow", function(){ 276 $(".hiddenPriceFormBackdrop").fadeOut(); 277 }); 278 }); 279 } 280 }); 281 }); 282 }); 283 284 285 286 $(".hiddenPriceFormBackdrop, .hiddenPriceForm .close").on("click", function(){ 287 $(".hiddenPriceForm").fadeOut("slow", function(){ 288 $(".hiddenPriceFormBackdrop").fadeOut(); 289 }); 290 }); 291}); 292 293if (!$('body').hasClass("overlay")) { 294 295 $(window).scroll(function () { 296 297 autoshow(); 298 }); 299 300} 301 302function pageBrowserIcon() { 303 $('#browser_link span a').each(function() { 304 var text = $(this).text(); 305 if(text=="previous") { 306 $(this).parent('span').addClass('inactiveLinkWrap previous'); 307 } 308 if(text=="next") { 309 $(this).parent('span').addClass('inactiveLinkWrap next'); 310 } 311 }); 312 313} 314 315function scrolling(){ 316 $(".target-scrolling").each(function(){ 317 $(this).click(function(){ 318 var thisId = $(this).attr("href"); 319 $(".target-block").removeClass("active"); 320 $(thisId).parent(".target-block").addClass("active"); 321 var position = $(thisId).offset().top; 322 $("html").stop(true).animate({"scrollTop":position + "px"},2000); 323 }) 324 }) 325} 326 327function goUp(){ 328 $(".side-menu-action").click(function(){ 329 $("body,html").stop(true).animate({"scrollTop":0 + "px"},2000); 330 $(".target-block").removeClass("active"); 331 }) 332} 333 334function handleCDN() { 335 if(typeof TYPO3Data.useCDN != undefined && TYPO3Data.useCDN) { 336 handleMobileDetection(); 337 } 338} 339 340function handleMobileDetection() { 341 if(typeof TYPO3Data.host == undefined && ! TYPO3Data.host || typeof TYPO3Data.mobileHost == undefined || ! TYPO3Data.mobileHost ) return; 342 var isMobile = (typeof window.orientation !== "undefined") || (navigator.userAgent.indexOf('IEMobile') !== -1); 343 if(isMobile && location.host != TYPO3Data.mobileHost) { 344 location.href= location.protocol + '//' + TYPO3Data.mobileHost + location.pathname; 345 } else if (!isMobile && location.host != TYPO3Data.host) { 346 location.href= location.protocol + '//' + TYPO3Data.host + location.pathname; 347 } 348} 349 350function autoshow(){ 351 var topScroll = $(window).scrollTop(); 352 var windowHeight = $(window).height(); 353 var Status; 354 var home = $('body').hasClass('home'); 355 356 if(home) { 357 if(topScroll > windowHeight) { 358 if(status == "" || status == 0) { 359 status = 1; 360 $(".side-menu").animate({left:"0px"},1000); 361 } else { 362 return false; 363 } 364 } else { 365 if(status == 1) { 366 status = 0; 367 $(".side-menu").animate({left:"-300px"},1000); 368 } else { 369 return false; 370 } 371 } 372 } else { 373 $(".side-menu").animate({left:"0px"},1000); 374 } 375} 376 377/*timeoutTime = jQuery.cookie("hideInfoPopUp") ? (15 * 60 * 1000) : 30000; 378setTimeout(function(){ 379 result = jQuery.cookie("hideInfoPopUp") ? "true" : "1"; 380 fadePopup(result); 381 382 if(!jQuery.cookie("hideInfoPopUp")) { 383 setTimeout(function(){ 384 fadePopup("true"); 385 386 }, (15 * 60 * 1000)); 387 } 388 389}, timeoutTime);*/ 390 391function fadePopup(result) { 392 393 if(!$("body").hasClass("overlay")) { 394 if($(".cePopUp").length && jQuery.cookie("hideInfoPopUp") != "true"){ 395 $(".cePopUp").addClass("active"); 396 console.log(3); 397 398 ga('send', 'event', 'Popup', 'Einblenden_Popup',$(".cePopUp").find(".popupCallToAction").attr("id"), '100'); 399 $(".fixedPopUpClose").click(function(){ 400 date = new Date(); 401 minutes = 15; 402 date.setTime(date.getTime() + (minutes * 60 * 1000)); 403 404 $(".cePopUp").removeClass("active"); 405 jQuery.cookie("hideInfoPopUp", result, { expires: date, path: '/' }) 406 407 }); 408 } 409 410 else if (jQuery.cookie("hideInfoPopUp") == "true") { 411 $(".cePopUp").css("display","none"); 412 } 413 } 414 415} 416 417$("form input").on("keyup", function(){ 418 $(this).parents("form").find("input[name='importantMessage']").val(""); 419}); 420 421function recaptchaCallback() { 422 $(".csc-form-element-reCaptcha").parents("form").find("[type='submit']").removeAttr('disabled'); 423};
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.