PageSourceSearch

https://pizzakingniederrad.de/assets/js/script-42.js

js pizzakingniederrad.de collected 2026-10-09 22:41:06 UTC 4,948 bytes, 104 lines download raw bytes

1   ( function() {
2     var youtube = document.querySelectorAll( ".youtube" );
3     for (var i = 0; i < youtube.length; i++) {
4       var source = "https://img.youtube.com/vi/"+ youtube[i].dataset.embed +"/sddefault_1x.jpg";
5       var datasource = "https://img.youtube.com/vi/"+ youtube[i].dataset.embed +"/sddefault.jpg";
6       var image = new Image();
7       image.src = source;
8       image.setAttribute("data-src", datasource);
9       image.classList.add("swiper-lazy");
10       image.addEventListener( "load", function() {
11         youtube[ i ].appendChild( image );
12       }( i ) );
13       youtube[i].addEventListener( "click", function() {
14         var iframe = document.createElement( "iframe" );
15         iframe.setAttribute( "width", "480" );
16         iframe.setAttribute( "height", "480" );
17         iframe.setAttribute( "frameborder", "0" );
18         iframe.setAttribute( "allowfullscreen", "" );
19         iframe.setAttribute( "src", "https://www.youtube.com/embed/"+ this.dataset.embed +"?rel=0&showinfo=0&autoplay=1" );
20         this.innerHTML = "";
21         this.appendChild( iframe );
22       } );
23     };
24 
25   } )();
26 
27   /* Lazy Load */
28   const mainLazyLoad = new LazyLoad({threshold:400});
29   $(document).ready(function(){
30 
31     $("selectxxx").addClass("needsclick");
32     FastClick.attach(document.body);
33     
34     var $customSelects = $('.select-search');
35     $customSelects.select2({
36       templateResult: function(result, container) {
37         if (!result.id) {
38           return result.text;
39         }
40         container.className += ' needsclick';
41         return result.text;
42       }
43     });
44     $customSelects.each(function(index, el){$(el).data('select2').$container.find('*').addClass('needsclick');});
45     $(document).on('select2:open', () => {
46       document.querySelector('.select2-search__field').focus();
47     });
48     
49 
50     $(".overlay").click(function(){
51       $(".js-drawer-close").click();
52     });
53     $(".site-nav--mobile .js-drawer-open-left, #NavDrawer .icon-close, .overlay-nav").click(function(){
54       $("html").toggleClass("nav_open");
55     });
56     
57     $('.swatch-element label').on('click', function(){
58       var srcImg = $(this).data('src');
59       $('#thumb-image-product .product-single__thumbnail').each(function(){
60         if ($(this).attr("href") == srcImg) {
61           $(this).trigger('click');
62         }
63       });
64     });
65     var defaultValue = $(".swatch input:checked").val()
66     
67     $('#purchaseProduct .swatch [type=radio]').change(function() {
68       var optionIndex = $(this).closest('.swatch').attr('data-option-index');
69       var optionValue = $(this).val();
70       console.log(optionIndex, optionValue)
71       var value = parseInt(optionValue.split(' ')[0])
72       $(this)
73       .closest('#purchaseProduct')
74       .find('.single-option-selector')
75       .eq(optionIndex)
76       .val(optionValue)
77       .trigger('change');
78       
79     });
80     
81   });
82   $(document).ready(function(){
83     $(".nav-search a").click(function(e){
84       e.preventDefault();
85       $(".icon-navsearch").toggle();
86       $(".icon-navclose").toggle();
87       $(".site-nav__item > .site-nav__link").toggle();
88       $(".open-search").toggle();
89       $(".open-search input").focus();
90     });
91     $(".best-price-guarantee").html("<img src='//outerbloom.com/cdn/shop/t/138/assets/logo-best-price-guarantee-grid_75x.png?v=72489032173169839651752652420' alt='Logo Best Price Guarantee'>");
92     if ($(window).width() < 768) {
93       $(".bg-products .label-tag.valentine").html("<img src='//outerbloom.com/cdn/shop/t/138/assets/icon-valentine_75x.png?v=82732945490105366961752652419' alt='Icon Valentine'>");
94       $(".bg-products .label-tag.cny").html("<img src='//outerbloom.com/cdn/shop/t/138/assets/icon-cny_45x.png?v=101884295148001743851752652418' alt='Icon CNY'>");
95       $(".bg-products .label-tag.free-valentine").html("<img src='//outerbloom.com/cdn/shop/t/138/assets/free-valentine_150x.png?v=171641187769238175351752652421' alt='Icon Free Valentine'>");
96     } else {
97       $(".bg-products .label-tag.valentine").html("<img src='//outerbloom.com/cdn/shop/t/138/assets/icon-valentine_60x.png?v=82732945490105366961752652419' alt='Icon Valentine'>");
98       $(".bg-products .label-tag.cny").html("<img src='//outerbloom.com/cdn/shop/t/138/assets/icon-cny_60x.png?v=101884295148001743851752652418' alt='Icon CNY'>");
99       $(".bg-products .label-tag.free-valentine").html("<img src='//outerbloom.com/cdn/shop/t/138/assets/free-valentine_200x.png?v=171641187769238175351752652421' alt='Icon Free Valentine'>");
100     }
101     $(".bg-products .label-tag.free-cookies").html("<img src='//outerbloom.com/cdn/shop/t/138/assets/free-cookies_80x.png?51468' alt='Icon Free Cookies'>");
102     $(".bg-products .label-tag.mothersday").html("<img src='//outerbloom.com/cdn/shop/t/138/assets/mothers-day_70x.png?v=171373711354766377891752652419' alt='Icon Mothers day'>");
103   });
104 

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.