1jQuery(function ($) { 2 3 4$(window).load(function() { 5 6 $('.werbung').removeClass("werbung"); 7 8}); 9 10$(document).ready(function(y) { 11 12 if (window.location.href.indexOf("weihnachtskarten") > -1) 13 { 14 var divLoc = $('#weihnachtskarten').offset(); 15 console.log(divLoc); 16 $('html, body').animate({scrollTop: divLoc.top}, "slow"); 17 } 18 19 20 $(document).on("click", '.prx-weihnachtskarten .fusion-image-wrapper' , function(event) { 21 $(".weihnachtskarten-vollbild-img").remove(); 22 var src = $(this).children("img").attr('src'); 23 var image = new Image(); 24 image.src = src; 25 $('#weihnachtskarten-bildwrapper').append(image); 26 $('#weihnachtskarten-bildwrapper img').addClass("weihnachtskarten-vollbild-img"); 27 $('#weihnachtskarten-bild').fadeIn(); 28 console.log(image.src); 29 }); 30 31 $('#weihnachtskarten-bild').click(function(){ 32 $(this).fadeOut(); 33 }); 34 35 $('.ls-nav-sideright').click(function(e) { 36 e.preventDefault(); 37 console.log('clicked!'); 38 $(this).parent().parent('.ls-nav-next').trigger('click'); 39 }); 40 41 //Mehrfachauswahl Kontakt 42 $('.chosen-select').chosen(); 43 44 //Fix height of first image/slider on homepage 45 updateHeight(); 46 $(window).resize(function() { 47 updateHeight(); 48 }); 49 50 51 $(".webseiten-shops").on("click", ".fusion-portfolio-content-wrapper" , function() { 52 window.open($(".fusion-post-content a", this).attr("href"), '_blank'); 53 }); 54 55 56 //Kontaktformular Dropdown Icon 57 jQuery(".wpcf7-select:not([multiple])").wrap('<div class="wpcf7-select-parent"></div>'); 58 jQuery('<div class="select-arrow prx-arrow"><img src="/wp-content/themes/Avada-Child-Theme/img/arrow-down.png" /></div>').appendTo(".wpcf7-select-parent"); 59 60 //Bullets Layerslider Startseite 61 function bullets() { 62 $('#layerslider_1 .ls-gui-element.ls-nav-next').css('left', $('#layerslider_1 .ls-bottom-slidebuttons').width() + 30 ); 63 $('#layerslider_2 .ls-gui-element.ls-nav-next').css('left', $('#layerslider_2 .ls-bottom-slidebuttons').width() + 30 ); 64 65 //Uebersetzen "Load More Posts" 66 $('.fusion-portfolio-element .fusion-load-more-button.fusion-portfolio-button').text('Mehr Referenzen ansehen'); 67 $(".prx-weihnachtskarten").children(".fusion-load-more-button").text("Mehr Karten ansehen"); 68 } 69 70 setTimeout(bullets, 1000); 71 72 function lowspeed() { 73 $('.chosen-select').chosen(); 74 } 75 76 setTimeout(lowspeed, 5000); 77 78 79 //add lightbox link on mobile button 80 $('a.prx-mob-gallery').on('click', function(e) { 81 e.preventDefault(); 82 document.querySelector('.fusion-lightbox').click(); 83 }); 84 85 86 $(document).bind("ajaxComplete", function() { 87 88 //Link ueber Portfolioelement (Referenzen-Internet) 89 $('.prx-internet .fusion-portfolio-wrapper').each(function() { 90 $('.fusion-portfolio-post', this).each(function() { 91 console.log('inet triggered'); 92 var img_wrapper = $('.fusion-image-wrapper', this); 93 var content_wrapper = $('.fusion-portfolio-content', this); 94 var href = $('.fusion-portfolio-content .fusion-post-content a', this).attr('href'); 95 96 if(href != undefined) 97 { 98 img_wrapper.append('<a class="prx-portfolio-lightbox" target="_blank" href="' + href + '"> </a>'); 99 content_wrapper.append('<a class="prx-portfolio-lightbox" target="_blank" href="' + href + '"> </a>'); 100 } 101 }); 102 }); 103 104 window.avadaLightBox.refresh_lightbox(); 105 }); 106 107 function updateHeight() { 108 $('.prx-100').show(); 109 $('.prx-100').css('visibility', 'visible'); 110 $('.prx-100').css('display', 'block'); 111 $('.prx-100').parent().parent().css('height', $('.prx-100').height() + 'px'); 112 $('.prx-100').hide(); 113 } 114 115 }); //Ende Document Ready 116})
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.