1(function($){ 2 "use strict"; 3 4 5 $(window).on('elementor/frontend/init', function () { 6 7 8 /* Menu Shrink */ 9 elementorFrontend.hooks.addAction('frontend/element_ready/ova_menu.default', function(){ 10 11 $( '.ova_menu_clasic .ova_openNav' ).on( 'click', function(){ 12 $( this ).closest('.ova_wrap_nav').find( '.ova_nav' ).removeClass( 'hide' ); 13 $( this ).closest('.ova_wrap_nav').find( '.ova_nav' ).addClass( 'show' ); 14 $( '.ova_menu_clasic .ova_closeCanvas' ).css( 'width', '100%' ); 15 16 17 $( 'body' ).css( 'background-color', 'rgba(0,0,0,0.4)' ); 18 19 }); 20 21 $( '.ova_menu_clasic .ova_closeNav' ).on( 'click', function(){ 22 $( this ).closest('.ova_wrap_nav').find( '.ova_nav' ).removeClass( 'show' ); 23 $( this ).closest('.ova_wrap_nav').find( '.ova_nav' ).addClass( 'hide' ); 24 $( '.ova_closeCanvas' ).css( 'width', '0' ); 25 26 27 28 $( 'body' ).css( 'background-color', 'transparent' ); 29 30 }); 31 32 // Display in mobile 33 $( '.ova_menu_clasic li.menu-item button.dropdown-toggle').off('click').on( 'click', function() { 34 $(this).parent().toggleClass('active_sub'); 35 }); 36 37 if( $('.ovamenu_shrink').length > 0 && $( 'body' ).data('elementor-device-mode') == 'desktop' ){ 38 39 if( !$('.show_mask_header').hasClass( 'mask_header_shrink' ) ){ 40 $( '<div class="show_mask_header mask_header_shrink" style="position: relative; height: 0;"></div>' ).insertAfter('.ovamenu_shrink'); 41 } 42 43 44 var header = $('.ovamenu_shrink'); 45 var header_shrink_height = header.height(); 46 47 48 $(window).scroll(function () { 49 50 var scroll = $(this).scrollTop(); 51 52 if (scroll >= header_shrink_height+150 ) { 53 header.addClass( 'active_fixed' ); 54 $('.mask_header_shrink').css('height',header_shrink_height); 55 } else { 56 header.removeClass('active_fixed'); 57 $('.mask_header_shrink').css('height','0'); 58 } 59 }); 60 } 61 62 if( $('.ovamenu_shrink_mobile').length > 0 && $( 'body' ).data('elementor-device-mode') != 'desktop' ){ 63 64 if( !$('.show_mask_header_mobile').hasClass( 'mask_header_shrink_mobile' ) ){ 65 $( '<div class="show_mask_header_mobile mask_header_shrink_mobile" style="position: relative; height: 0;"></div>' ).insertAfter('.ovamenu_shrink_mobile'); 66 67 } 68 69 var header = $('.ovamenu_shrink_mobile'); 70 var header_shrink_height = header.height(); 71 72 73 $(window).scroll(function () { 74 75 var scroll = $(this).scrollTop(); 76 77 if (scroll >= header_shrink_height+150 ) { 78 header.addClass( 'active_fixed' ); 79 $('.mask_header_shrink_mobile').css('height',header_shrink_height); 80 } else { 81 header.removeClass('active_fixed'); 82 $('.mask_header_shrink_mobile').css('height','0'); 83 } 84 }); 85 } 86 87 }); 88 89 90 //blog slider 91 elementorFrontend.hooks.addAction('frontend/element_ready/ova_blog_slider.default', function(){ 92 93 var responsive_value = { 94 0: { 95 items: 1, 96 }, 97 768: { 98 items: 2, 99 }, 100 991: { 101 items: 3, 102 }, 103 104 }; 105 var navText = [ 106 '<i class="fa fa-angle-left"></i>', 107 '<i class="fa fa-angle-right"></i>' 108 ]; 109 110 $(".blog-slider").each(function(){ 111 var owlsl = $(this) ; 112 var owlsl_df = { 113 margin: 0, 114 responsive: false, 115 smartSpeed:500, 116 autoplay:false, 117 autoplayTimeout: 6000, 118 items:3, 119 loop:true, 120 nav: true, 121 dots: true, 122 center:false, 123 autoWidth:false, 124 thumbs:false, 125 autoplayHoverPause: true, 126 slideBy: 1, 127 }; 128 var owlsl_ops = owlsl.data('options') ? owlsl.data('options') : {}; 129 owlsl_ops = $.extend({}, owlsl_df, owlsl_ops); 130 owlsl.owlCarousel({ 131 autoWidth: owlsl_ops.autoWidth, 132 margin: owlsl_ops.margin, 133 items: owlsl_ops.items, 134 loop: owlsl_ops.loop, 135 autoplay: owlsl_ops.autoplay, 136 autoplayTimeout: owlsl_ops.autoplayTimeout, 137 center: owlsl_ops.center, 138 nav: owlsl_ops.nav, 139 dots: owlsl_ops.dots, 140 thumbs: owlsl_ops.thumbs, 141 autoplayHoverPause: owlsl_ops.autoplayHoverPause, 142 slideBy: owlsl_ops.slideBy, 143 smartSpeed: owlsl_ops.smartSpeed, 144 navText: navText, 145 rtl: owlsl_ops.rtl, 146 responsive: { 147 0: { 148 items: owlsl_ops.response_mobile, 149 }, 150 768: { 151 items: owlsl_ops.response_tablet, 152 }, 153 991: { 154 items: owlsl_ops.response_desk, 155 }, 156 157 }, 158 }); 159 160 }); 161 162 }); 163 // end blog slider 164 165 166 elementorFrontend.hooks.addAction('frontend/element_ready/ova_testimonial.default', function(){ 167 168 var responsive_value = { 169 0: { 170 items: 1, 171 }, 172 }; 173 var navText = [ 174 '<i class="arrow_left"></i>', 175 '<i class="arrow_right"></i>' 176 ]; 177 178 $(".wp-testimonial").each(function(){ 179 var owlsl = $(this) ; 180 var owlsl_df = { 181 margin: 0, 182 responsive: false, 183 smartSpeed:500, 184 autoplay:false, 185 autoplayTimeout: 6000, 186 items:3, 187 loop:true, 188 nav: true, 189 dots: true, 190 center:false, 191 autoWidth:false, 192 thumbs:false, 193 autoplayHoverPause: true, 194 slideBy: 1, 195 }; 196 var owlsl_ops = owlsl.data('options') ? owlsl.data('options') : {}; 197 owlsl_ops = $.extend({}, owlsl_df, owlsl_ops); 198 owlsl.owlCarousel({
199 autoWidth: owlsl_ops.autoWidth, 200 margin: owlsl_ops.margin, 201 items: owlsl_ops.items, 202 loop: owlsl_ops.loop, 203 autoplay: owlsl_ops.autoplay, 204 autoplayTimeout: owlsl_ops.autoplayTimeout, 205 center: owlsl_ops.center, 206 nav: owlsl_ops.nav, 207 dots: owlsl_ops.dots, 208 thumbs: owlsl_ops.thumbs, 209 autoplayHoverPause: owlsl_ops.autoplayHoverPause, 210 slideBy: owlsl_ops.slideBy, 211 smartSpeed: owlsl_ops.smartSpeed, 212 rtl: owlsl_ops.rtl, 213 navText: navText, 214 responsive: responsive_value, 215 }); 216 217 }); 218 219 }); 220 // end tesimonial 221 222 /* Skill bar */ 223 elementorFrontend.hooks.addAction('frontend/element_ready/ova_skill_bar.default', function(){ 224 225 226 $('.skillbar').appear(); 227 228 $(document.body).on( 'appear', '.skillbar', function(){ 229 230 231 jQuery(this).find('.skillbar-bar').animate({ 232 width:jQuery(this).attr('data-percent'), 233 },3000); 234 235 jQuery(this).find('.percent').animate({ 236 left: jQuery(this).attr('data-percent') 237 },{ 238 duration: 3000, 239 step: function( now, fx ){ 240 var data = Math.round(now); 241 $(this).find('.relative span').html(data + '%'); 242 } 243 244 }); 245 246 247 }); 248 249 }); 250 /* end skill bar */ 251 252 253 254 }); 255 256})(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.