1( function( $ ) { 2 3 function orritech_css_inline_js(){ 4 var _inline_css = "<style>"; 5 $(document).find('.pxl-inline-css').each(function () { 6 var _this = $(this); 7 _inline_css += _this.attr("data-css") + " "; 8 _this.remove(); 9 }); 10 _inline_css += "</style>"; 11 $('head').append(_inline_css); 12 } 13 14 function orritech_zoom_point(){ 15 var elements = document.querySelectorAll('.pxl-zoom-point'); 16 const observer = new IntersectionObserver(function(entries, observer) { 17 entries.forEach(function(entry) { 18 if (entry.isIntersecting) { 19 var offset = $(entry.target).offset(); 20 var offset_top = offset.top; 21 var scroll_top = $(window).scrollTop(); 22 observer.unobserve(entry.target); 23 } 24 }); 25 }, { 26 rootMargin: '-100px 0px 0px 0px', 27 threshold: 0 28 }); 29 30 elements.forEach(function(element) { 31 observer.observe(element); 32 }); 33 } 34 35 // 36 function orritech_section_before_render(){ 37 var _elementor = typeof elementor != 'undefined' ? elementor : elementorFrontend; 38 _elementor.hooks.addFilter( 'pxl-custom-section/before-render', function( html, settings, el ) { 39 if (typeof settings['row_divider'] !== 'undefined') { 40 if(settings['row_divider'] == 'angle-top' || settings['row_divider'] == 'angle-bottom' || settings['row_divider'] == 'angle-top-right' || settings['row_divider'] == 'angle-bottom-left') { 41 html = '<svg class="pxl-row-angle" style="fill:#ffffff" xmlns="http://www.w3.org/2000/svg" width="100%" viewBox="0 0 100 100" version="1.1" preserveAspectRatio="none" height="130px"><path stroke="" stroke-width="0" d="M0 100 L100 0 L200 100"></path></svg>'; 42 return html; 43 } 44 if(settings['row_divider'] == 'angle-top-bottom' || settings['row_divider'] == 'angle-top-bottom-left') { 45 html = '<svg class="pxl-row-angle pxl-row-angle-top" style="fill:#ffffff" xmlns="http://www.w3.org/2000/svg" width="100%" viewBox="0 0 100 100" version="1.1" preserveAspectRatio="none" height="130px"><path stroke="" stroke-width="0" d="M0 100 L100 0 L200 100"></path></svg><svg class="pxl-row-angle pxl-row-angle-bottom" style="fill:#ffffff" xmlns="http://www.w3.org/2000/svg" width="100%" viewBox="0 0 100 100" version="1.1" preserveAspectRatio="none" height="130px"><path stroke="" stroke-width="0" d="M0 100 L100 0 L200 100"></path></svg>'; 46 return html; 47 } 48 if(settings['row_divider'] == 'wave-animation-top' || settings['row_divider'] == 'wave-animation-bottom') { 49 html = '<svg class="pxl-row-angle" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none" viewBox="0 0 1440 150" fill="#fff">
49<path d="M 0 26.1978 C 275.76 83.8152 430.707 65.0509 716.279 25.6386 C 930.422 -3.86123 1210.32 -3.98357 1439 9.18045 C 2072.34 45.9691 2201.93 62.4429 2560 26.198 V 172.199 L 0 172.199 V 26.1978 Z"><animate repeatCount="indefinite" fill="freeze" attributeName="d" dur="10s" values="M0 25.9086C277 84.5821 433 65.736 720 25.9086C934.818 -3.9019 1214.06 -5.23669 1442 8.06597C2079 45.2421 2208 63.5007 2560 25.9088V171.91L0 171.91V25.9086Z; M0 86.3149C316 86.315 444 159.155 884 51.1554C1324 -56.8446 1320.29 34.1214 1538 70.4063C1814 116.407 2156 188.408 2560 86.315V232.317L0 232.316V86.3149Z; M0 53.6584C158 11.0001 213 0 363 0C513 0 855.555 115.001 1154 115.001C1440 115.001 1626 -38.0004 2560 53.6585V199.66L0 199.66V53.6584Z; M0 25.9086C277 84.5821 433 65.736 720 25.9086C934.818 -3.9019 1214.06 -5.23669 1442 8.06597C2079 45.2421 2208 63.5007 2560 25.9088V171.91L0 171.91V25.9086Z"></animate></path></svg>'; 50 return html; 51 } 52 if(settings['row_divider'] == 'curved-top' || settings['row_divider'] == 'curved-bottom') { 53 html = '<svg class="pxl-row-angle" xmlns="http://www.w3.org/2000/svg" width="100%" viewBox="0 0 1920 128" version="1.1" preserveAspectRatio="none" style="fill:#ffffff"><path stroke-width="0" d="M-1,126a3693.886,3693.886,0,0,1,1921,2.125V-192H-7Z"></path></svg>'; 54 return html; 55 } 56 } 57 } ); 58 } 59 60 var PXL_Icon_Contact_Form = function( $scope, $ ) { 61 62 setTimeout(function () { 63 $('.pxl--item').each(function () { 64 var icon_input = $(this).find(".pxl--form-icon"), 65 control_wrap = $(this).find('.wpcf7-form-control'); 66 control_wrap.before(icon_input.clone()); 67 icon_input.remove(); 68 }); 69 }, 50); 70 71 }; 72 73 $( window ).on( 'elementor/frontend/init', function() { 74 orritech_css_inline_js(); 75 orritech_zoom_point(); 76 orritech_section_before_render(); 77 elementorFrontend.hooks.addAction( 'frontend/element_ready/pxl_contact_form.default', PXL_Icon_Contact_Form ); 78 } ); 79 80} )( 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.