https://womenbiz.ch/wp-content/themes/azureart/js/azr.functions.js?ver=1.198'%20onload=''%20onload='
1/* VARIABLES */ 2var map = null; 3var _azrLoader = 0; 4var _azrAnimationSpeed = 400; 5var _azrSlickSettings = { 6 slidesToShow: 1, 7 autoplay: true, 8 arrows: true, 9 prevArrow: '<i class="fa fa-chevron-left slick-prev"></i>', 10 nextArrow: '<i class="fa fa-chevron-right slick-next"></i>', 11 centerMode: true, 12 centerPadding: 0, 13 variableWidth: false, 14 adaptiveHeight: false, 15}; 16 17function azrModalClose(redirect) { 18 $.ajax({ 19 url: _azrTemplateDir + "/ajax/ajax.cookie.modal.php", 20 type: "get", 21 dataType: "json", 22 success: function (data) { 23 $("#wrapper-modal").fadeOut(_azrAnimationSpeed); 24 if (typeof redirect !== "undefined") { 25 window.location.href = redirect; 26 } 27 }, 28 fail: function (jqxhr, textStatus, error) { 29 console.log(textStatus + ", " + error); 30 }, 31 }); 32} 33 34/* ON REFRESH */ 35function azrRefresh() { 36 var azrBannerWidth = $(window).width(); 37 azrBannerWidth *= 1; 38 39 $("#banner").height(Math.round((azrBannerWidth / 8) * 5)); 40 41 /* 42 if($('BODY').hasClass('home')){ 43 $('#banner').height(Math.round((azrBannerWidth/8)*5)); 44 }else{ 45 $('#banner').height(Math.round((azrBannerWidth/8)*5)).addClass('small'); 46 } 47 48 $('#banner').css('max-height',$(window).height()/6*5+'px'); 49*/ 50 51 if ($(window).width() > 1200) { 52 $("MAIN").css( 53 "margin-top", 54 $("#banner").height() + $("#menubar").height() 55 ); 56 } else { 57 $("MAIN").css("margin-top", $("#banner").height() + 55); 58 } 59 60 $(".square").each(function () { 61 $(this).height($(this).width()); 62 }); 63} 64 65/* ON SCROLL */ 66function azrScroll() { 67 if ($("A.load-more").length > 0) { 68 if (_azrLoader == 0) { 69 var t = $("A.load-more").offset().top - 100, 70 i = t + $("A.load-more").outerHeight(), 71 o = $(window).scrollTop(), 72 n = o + $(window).height(); 73 74 if (i > o && t < n) { 75 $("A.load-more").trigger("click"); 76 } 77 } 78 } 79} 80 81/* JQUERY AJAX BINDS */ 82function azrAJAXBinds() { 83 $("[data-background]").each(function (i) { 84 $(this).css( 85 "background-image", 86 "url(" + $(this).attr("data-background") + ")" 87 ); 88 $(this).removeAttr("data-background"); 89 }); 90} 91 92/* JQUERY BINDS */ 93function azrBinds() { 94 azrAJAXBinds(); 95 96 $("A.profile-delete").on("click", function (e) { 97 if ( 98 confirm( 99 "Profil und Unternehmen wirklich löschen? Dieser Eintrag wird sofort und unwiederruflich gelöscht!" 100 ) == true 101 ) { 102 return true; 103 } else { 104 return false; 105 } 106 }); 107 108 $("A.delete").on("click", function (e) { 109 if ( 110 confirm( 111 "Wirklich löschen? Dieser Eintrag wird sofort und unwiederruflich gelöscht!" 112 ) == true 113 ) { 114 return true; 115 } else { 116 return false; 117 } 118 }); 119 120 $("A.preview").on("click", function (e) { 121 if ( 122 confirm( 123 "Diese Seite wirklich verlassen? Daten die noch nicht gespeichert worden sind, gehen dabei verloren!" 124 ) == true 125 ) { 126 return true; 127 } else { 128 return false; 129 } 130 }); 131 132 $("UL.social_share_icons LI A").on("click", function (e) { 133 e.preventDefault(); 134 var objURL = $(this).attr("href"); 135 var w = 600; 136 var h = 480; 137 var left = screen.width / 2 - w / 2; 138 var top = screen.height / 2 - h / 2; 139 140 window.open( 141 objURL, 142 "azrShare", 143 "width=" + 144 w + 145 ",height=" + 146 h + 147 ",top=" + 148 top + 149 ",left=" + 150 left + 151 "resizable=yes,scrollbars=yes,location=no,menubar=no" 152 ); 153 }); 154 155 $("FORM#azrPaymentFormAgain").on("submit", function (e) { 156 e.preventDefault(); 157 158 Datatrans.startPayment({ 159 form: "#azrPaymentFormAgain", 160 }); 161 }); 162 163 $('SELECT[name="c"]').on("change", function () { 164 $(this).parents("FORM.search").submit(); 165 }); 166 167 $("#menubar .nav-burger").on("click touchend", function (e) { 168 e.preventDefault(); 169 $("#menubar").toggleClass("active"); 170 }); 171 172 $('UL.member-tabs A, A[data-action="message"]').click(function (e) { 173 e.preventDefault(); 174 $this = $(this); 175 $("UL.member-tabs LI").removeClass("active"); 176 $(".member-content .tab").slideUp(200).delay(200).removeClass("active"); 177 setTimeout(function () { 178 history.pushState( 179 "", 180 document.title, 181 window.location.href.split("?")[0] + 182 "?tab=" + 183 $this.data("tab").substr(4) + 184 "" 185 ); 186 $this.parent("LI").addClass("active"); 187 $(".member-content ." + $this.data("tab") + "") 188 .slideDown(200) 189 .delay(200) 190 .addClass("active"); 191 $("SECTION .articles").isotope("layout"); 192 setTimeout(function () { 193 azrRefresh(); 194 }, 500); 195 }, 500); 196 }); 197 198 $(".acf-map") 199 .not(".loaded") 200 .each(function () { 201 map = azrGoogleMapsInit($(this)); 202 }); 203 204 $("A.load-more").click(function (e) { 205 e.preventDefault(); 206 207 if (_azrLoader == 0) { 208 _azrLoader = 1; 209 $this = $(this); 210 211 $this.children("SPAN.loader").fadeIn(); 212 213 $.post(_azrTemplateDir + "/ajax/ajax.load.posts.php", { 214 offset: $this.attr("data-offset"), 215 posts_per_page: $this.attr("data-posts_per_page"), 216 post_type: $this.attr("data-post_type"), 217 q: $this.attr("data-q"), 218 c: $this.attr("data-c"),
219 }) 220 .done(function (data) { 221 var $content = $(data); 222 223 $($this.attr("data-append")).append($content); 224 225 setTimeout(function () { 226 azrRefresh(); 227 azrAJAXBinds(); 228 _azrLoader = 0; 229 230 var azrCountNewAjaxArticles = 231 $($this.attr("data-append") + " article").length - 232 1; 233 234 $($this.attr("data-append") + " article").each( 235 function (i) { 236 if (i == azrCountNewAjaxArticles) { 237 setTimeout(function () { 238 $($this.attr("data-append")).isotope( 239 "appended", 240 $content 241 ); 242 $this.children("SPAN.loader").fadeOut(); 243 244 $( 245 $this.attr("data-append") + 246 " article.ajaxload" 247 ).removeClass("ajaxload"); 248 249 if ( 250 $( 251 $this.attr("data-append") + 252 " article" 253 ).length < 254 parseInt($this.attr("data-offset")) 255 ) { 256 $this.slideUp(); 257 } 258 setTimeout(function () { 259 $( 260 $this.attr("data-append") 261 ).isotope("reloadItems"); 262 }, 200); 263 }, 200); 264 } 265 } 266 ); 267 }, 200); 268 $this.attr( 269 "data-offset", 270 parseInt($this.attr("data-offset")) + 271 parseInt($this.attr("data-posts_per_page")) 272 ); 273 }) 274 .fail(function (jqxhr, textStatus, error) { 275 $this.children("SPAN.loader").fadeOut(); 276 _azrLoader = 0; 277 console.log(textStatus + ", " + error); 278 }); 279 } 280 }); 281 282 $('A[href^="mailto:"]') 283 .unbind("click") 284 .click(function (e) { 285 var email = $(this).attr("href").replace("mailto:", ""); 286 beehiveDataLayer.push("event", "email", { 287 event_category: "Email", 288 event_label: email, 289 value: 1, 290 }); 291 }); 292 $('A[href^="tel:"]') 293 .unbind("click") 294 .click(function (e) { 295 var phone = $(this).attr("href").replace("tel:", ""); 296 beehiveDataLayer.push("event", "phone", { 297 event_category: "Phone", 298 event_label: phone, 299 value: 1, 300 }); 301 }); 302 $('A[href^="//"],A[href^="http"]') 303 .not('[href*="' + window.location.hostname + '"]') 304 .unbind("click") 305 .click(function (e) { 306 beehiveDataLayer.push("event","external",{ 307 event_category: "Click", 308 event_label: $(this).attr("href"), 309 }); 310 }); 311 312 $("A.popup.croptool") 313 .off("click") 314 .on("click", function (e) { 315 e.preventDefault(); 316 $this = $(this); 317 318 $.get(_azrTemplateDir + "/ajax/ajax.croptool.php", { 319 image: $this.attr("data-image"), 320 size: $this.attr("data-size"), 321 }) 322 .done(function (data) { 323 $("#azr-popup-content").html(data); 324 $("#azr-popup").fadeIn(function () { 325 if ($this.attr("data-size") == "azr-banner") { 326 $("#croptool-image").cropper({ 327 aspectRatio: 8 / 5, 328 viewMode: 1, 329 }); 330 } 331 if ($this.attr("data-size") == "preview-thumbn
331ail") { 332 $("#croptool-image").cropper({ 333 aspectRatio: 10 / 7, 334 viewMode: 1, 335 }); 336 } 337 338 $("A.cropping") 339 .off("click") 340 .on("click", function (e) { 341 e.preventDefault(); 342 var cropcanvas = 343 $("#croptool-image").cropper( 344 "getCroppedCanvas" 345 ); 346 var cropjpg = 347 cropcanvas.toDataURL("image/jpeg"); 348 349 $.post( 350 _azrTemplateDir + 351 "/ajax/ajax.croptool.generate.php", 352 { 353 image: $this.attr("data-image"), 354 size: $this.attr("data-size"), 355 newimage: cropjpg, 356 } 357 ) 358 .done(function (data) { 359 $("#azr-popup").fadeOut(function () { 360 alert( 361 "Das Bild wurde erfolgreich zugeschnitten und automatisch gespeichert. Es wird beim nächsten speichern/aktualisieren sichtbar. Beachte, dass das Bild von deinem Browser zwischengespeichert werden kann." 362 ); 363 $("#azr-popup-content").empty(); 364 }); 365 }) 366 .fail(function (jqxhr, textStatus, error) { 367 console.log(textStatus + ", " + error); 368 }); 369 }); 370 }); 371 }) 372 .fail(function (jqxhr, textStatus, error) { 373 console.log(textStatus + ", " + error); 374 }); 375 }); 376 377 $("#azr-popup") 378 .off("click") 379 .on("click", function (e) { 380 e.preventDefault(); 381 $(this).fadeOut(function () { 382 $("#azr-popup-content").empty(); 383 }); 384 }); 385 386 $("#azr-popup-content") 387 .off("click") 388 .on("click", function (e) { 389 e.stopPropagation(); 390 }); 391 392 if ($("FORM.hidden").length >= 1) { 393 $("FORM.hidden").trigger("submit"); 394 } 395 396 if ($("#wrapper-modal").length >= 1) { 397 setTimeout(function () { 398 $("#wrapper-modal").fadeIn(_azrAnimationSpeed); 399 }, 10000); 400 } 401 402 // setzt die postid bei der auswahl eines datalist feldes 403 $("#form-register #form_recommendation").on("change", function () { 404 let input_val = this.value; 405 $("#form-register #frauenunternehmen option").each(function () { 406 if (this.value === input_val) { 407 $("#form-register #form_recommendation_id").val( 408 $(this).attr("data-company_id") 409 ); 410 } 411 }); 412 }); 413 414 // more / less shortcode 415 $('.schortcode_more .more_tag').off().on('click', function() { 416 $(this).parent().toggleClass('open'); 417 }); 418} 419 420/* MAPS */ 421function azrGoogleMapsMarkerCluster(markers, map) { 422 var markerCluster = new MarkerClusterer(map, markers, { 423 imagePath: _azrURL + "/wp-content/themes/azureart/images/m", 424 }); 425} 426 427function azrGoogleMapsInit($el) { 428 $el.addClass("loaded"); 429 430 var $markers = $el.find(".marker"); 431 432 var args = { 433 zoom: 16, 434 center: new google.maps.LatLng(0, 0), 435 mapTypeId: google.maps.MapTypeId.ROADMAP, 436 styles: [ 437 { 438 featureType: "administrative", 439 elementType: "all", 440 stylers: [{ saturation: "-100" }], 441 }, 442 { 443 featureType: "administrative.province", 444 elementType: "all", 445 stylers: [{ visibility: "off" }], 446 }, 447 { 448 featureType: "landscape", 449 elementType: "all", 450 stylers: [ 451 { saturation: -100 }, 452 { lightness: 65 }, 453 { visibility: "on" }, 454 ], 455 }, 456 { 457 featureType: "poi", 458 elementType: "all", 459 stylers: [ 460 { saturation: -100 }, 461 { lightness: "50" }, 462 { visibility: "simplified" }, 463 ], 464 }, 465 { 466 featureType: "road", 467 elementType: "all", 468 stylers: [{ saturation: "-100" }], 469 }, 470 { 471 featureType: "road.highway", 472 elementType: "all", 473 stylers: [{ visibility: "simplified" }
473], 474 }, 475 { 476 featureType: "road.arterial", 477 elementType: "all", 478 stylers: [{ lightness: "30" }], 479 }, 480 { 481 featureType: "road.local", 482 elementType: "all", 483 stylers: [{ lightness: "40" }], 484 }, 485 { 486 featureType: "transit", 487 elementType: "all", 488 stylers: [{ saturation: -100 }, { visibility: "simplified" }], 489 }, 490 { 491 featureType: "water", 492 elementType: "geometry", 493 stylers: [{ color: "#b4b3af" }], 494 }, 495 { 496 featureType: "water", 497 elementType: "labels", 498 stylers: [{ lightness: -25 }, { saturation: -100 }], 499 }, 500 ], 501 }; 502 503 var map = new google.maps.Map($el[0], args); 504 505 map.markers = []; 506 507 $markers.each(function () { 508 azrGoogleMapsMarkers($(this), map); 509 }); 510 511 azrGoogleMapsCenterMap(map); 512 azrGoogleMapsMarkerCluster(map.markers, map); 513 514 return map; 515} 516 517function azrGoogleMapsMarkers($marker, map) { 518 var latlng = new google.maps.LatLng( 519 $marker.attr("data-lat"), 520 $marker.attr("data-lng") 521 ); 522 523 var marker = new google.maps.Marker({ 524 position: latlng, 525 map: map, 526 draggable: false, 527 optimized: false, 528 animation: google.maps.Animation.DROP, 529 title: $marker.attr("data-title"), 530 icon: _azrURL + "/wp-content/themes/azureart/images/diamant.gif", 531 }); 532 533 map.markers.push(marker); 534 535 if ($marker.html()) { 536 var infowindow = new google.maps.InfoWindow({ 537 content: $marker.html(), 538 }); 539 540 google.maps.event.addListener(marker, "click", function () { 541 infowindow.open(map, marker); 542 }); 543 544 google.maps.event.addListener(map, "click", function (event) { 545 if (infowindow) { 546 infowindow.close(); 547 } 548 }); 549 } 550} 551 552function azrGoogleMapsCenterMap(map) { 553 var bounds = new google.maps.LatLngBounds(); 554 $.each(map.markers, function (i, marker) { 555 var latlng = new google.maps.LatLng( 556 marker.position.lat(), 557 marker.position.lng() 558 ); 559 bounds.extend(latlng); 560 }); 561 562 if (map.markers.length == 1) { 563 map.setCenter(bounds.getCenter()); 564 map.setZoom(16); 565 } else { 566 map.fitBounds(bounds); 567 } 568} 569 570/* JQUERY ONLOAD */ 571(function ($) { 572 $(window).resize(function () { 573 azrRefresh(); 574 }); 575 576 $(window).scroll(function () { 577 azrScroll(); 578 }); 579 580 azrInitInterval = setInterval(function () { 581 if ($("BODY:visible").length > 0) { 582 azrRefresh(); 583 azrBinds(); 584 azrScroll(); 585 586 $("MAP").imageMapResize(); 587 588 $(".slideshow").slick(_azrSlickSettings); 589 590 $(document).swipebox({ 591 selector: ".swipebox", 592 useSVG: true, 593 hideBarsDelay: 300000000, 594 removeBarsOnMobile: false, 595 }); 596 597 setTimeout(function () { 598 $("SECTION#blogs .articles").isotope({ 599 itemSelector: "ARTICLE", 600 layoutMode: "fitRows", //masonry 601 masonry: { 602 horizontalOrder: true, 603 columnWidth: $("SECTION#blogs .articles").find( 604 "ARTICLE" 605 )[1], 606 gutter: 0, 607 }, 608 }); 609 610 $("SECTION#events .articles").isotope({ 611 itemSelector: "ARTICLE", 612 layoutMode: "fitRows", 613 masonry: { 614 columnWidth: $("SECTION#events .articles").find( 615 "ARTICLE" 616 )[0], 617 gutter: 0, 618 }, 619 }); 620 621 $("SECTION#offers .articles").isotope({ 622 itemSelector: "ARTICLE", 623 layoutMode: "fitRows", 624 masonry: { 625 columnWidth: $("SECTION#offers .articles").find( 626 "ARTICLE" 627 )[0], 628 gutter: 0, 629 }, 630 }); 631 632 $("SECTION#reviews .articles").isotope({ 633 itemSelector: "ARTICLE", 634 layoutMode: "masonry", 635 masonry: { 636 horizontalOrder: true, 637 columnWidth: $("SECTION#reviews .articles").find( 638 "ARTICLE" 639 )[0], 640 gutter: 0, 641 }, 642 }); 643 644 $("#womenlist.articles").isotope({ 645 itemSelector: "ARTICLE", 646 layoutMode: "fitRows", 647 fitRows: { 648 columnWidth: $("#womenlist.articles").find( 649 "ARTICLE" 650 )[0], 651 gutter: 0, 652 }, 653 }); 654 655 $("SECTION#toolbox .articles").isotope({ 656 itemSelector: "ARTICLE", 657 layoutMode: "fitRows", 658 masonry: { 659 columnWidth: $("SECTION#toolbox .articles").find( 660 "ARTICLE" 661 )[0], 662 gutter: 0, 663 }, 664 }); 665 }, 400); 666 667 $( 668 "BODY.single-frauenunternehmen UL.menu LI.frauenunternehmen, BODY.tax-unternehmenskategorie UL.menu LI.frauenunternehmen, BODY.category UL.menu LI.magazin, BODY.single-post UL.menu LI.magazin, BODY.single-event UL.menu LI.event" 669 ).addClass("current-menu-item"); 670 671 if (_azrJumpTo != "") { 672 $("html, body").animate( 673 { 674 scrollTop: $("#" + _azrJumpTo).offset().top - 75, 675 }, 676 _azrAnimationSpeed 677 ); 678 } 679 680 if ($("FORM#azrFormRedirect").length > 0) { 681 $("FORM#azrFormRedirect").submit(); 682 } 683 684 if ($("#azrPaymentFormInit").length > 0) { 685 Datatrans.startPayment({ 686 form: "#azrPaymentFormInit", 687 opened: function () { 688 $("#azrPaymentForm").slideUp(); 689 }, 690 closed: function () { 691 $("#azrPaymentForm").slideDown(); 692 }, 693 }); 694 } 695 696 if ($("TEXTAREA.wysiwyg").length > 0) { 697 tinymce.init({ 698 selector: "TEXTAREA.wysiwyg", 699 menubar: false, 700 branding: false, 701 block_formats: 702 "Paragraph=p;Ãberschrift=h2;Ãberschrift 2=h3;Zitat=blockquote", 703 toolbar:
704 "insertfile undo redo | formatselect | bold italic | bullist | link | removeformat code", 705 plugins: [ 706 "advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker", 707 "searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking", 708 "save table contextmenu directionality emoticons template paste textcolor", 709 ], 710 content_css: _azrTemplateDir + "/css/wysiwyg.css", 711 }); 712 } 713 714 if ($("#azr-gtag").length > 0) { 715 beehiveDataLayer.push("event", $("#azr-gtag").data("event"), { 716 event_category: $("#azr-gtag").data("category"), 717 event_label: $("#azr-gtag").data("label"), 718 value: $("#azr-gtag").data("value"), 719 }); 720 } 721 722 if ($("#content").length > 0 && $(".wp-block-table").length > 0) { 723 $(".wp-block-table").each(function () { 724 if (!$(this).hasClass("styled")) { 725 $(this).wrap('<div class="wrapper-table"></div>'); 726 727 $(this) 728 .find("tr:first-child td") 729 .each(function () { 730 $(this).replaceWith( 731 "<th>" + $(this).html() + "</th>" 732 ); 733 }); 734 735 $(this).addClass("styled"); 736 } 737 }); 738 } 739 740 clearInterval(azrInitInterval); 741 } 742 }, 100); 743})(jQuery);
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.