1(function($){ 2 "use strict"; 3 4 5 $(window).on('elementor/frontend/init', function () { 6 7 /* Menu Shrink */ 8 elementorFrontend.hooks.addAction('frontend/element_ready/ova_menu.default', function(){ 9 10 $( '.ova_menu_clasic .ova_openNav' ).on( 'click', function(){ 11 $( this ).closest('.ova_wrap_nav').find( '.ova_nav' ).removeClass( 'hide' ); 12 $( this ).closest('.ova_wrap_nav').find( '.ova_nav' ).addClass( 'show' ); 13 $( '.ova_menu_clasic .ova_closeCanvas' ).css( 'width', '100%' ); 14 15 16 $( 'body' ).css( 'background-color', 'rgba(0,0,0,0.4)' ); 17 18 }); 19 20 $( '.ova_menu_clasic .ova_closeNav' ).on( 'click', function(){ 21 $( this ).closest('.ova_wrap_nav').find( '.ova_nav' ).removeClass( 'show' ); 22 $( this ).closest('.ova_wrap_nav').find( '.ova_nav' ).addClass( 'hide' ); 23 $( '.ova_closeCanvas' ).css( 'width', '0' ); 24 25 26 27 $( 'body' ).css( 'background-color', 'transparent' ); 28 29 }); 30 31 // Display in mobile 32 $( '.ova_menu_clasic li.menu-item button.dropdown-toggle').off('click').on( 'click', function() { 33 $(this).parent().toggleClass('active_sub'); 34 }); 35 36 // Header desktop 37 if ( $('.ovamenu_shrink').length > 0 && $('body').data('elementor-device-mode') == 'desktop' ) { 38 $( '<div class="mask_header_shrink" style="position: relative; height: 0;"></div>' ).insertAfter('.ovamenu_shrink.elementor-hidden-phone'); 39 40 // Get header 41 var header = $('.ovamenu_shrink.elementor-hidden-phone'); 42 if ( !header.length ) { 43 header = $('.ovamenu_shrink.elementor-hidden-mobile'); 44 } 45 46 if ( header.length > 0 ) { 47 // Header height 48 var headerHeight = header.height(); 49 50 $(window).scroll(function () { 51 var scroll = $(this).scrollTop(); 52 53 if (scroll >= headerHeight+150 ) { 54 header.addClass( 'active_fixed' ); 55 $('.mask_header_shrink').css( 'height', headerHeight ); 56 } else { 57 header.removeClass('active_fixed'); 58 $('.mask_header_shrink').css( 'height', '0' ); 59 } 60 }); 61 } 62 } 63 64 // Header mobile 65 if ( $('.ovamenu_shrink').length > 0 && $('body').data('elementor-device-mode') != 'desktop' ) { 66 if ( !$('.show_mask_header_mobile').hasClass( 'mask_header_shrink_mobile' ) ) { 67 $( '<div class="show_mask_header_mobile mask_header_shrink_mobile" style="position: relative; height: 0;"></div>' ).insertAfter('.ovamenu_shrink_mobile'); 68 } 69 70 var header = $('.ovamenu_shrink.elementor-hidden-desktop'); 71 72 if ( header.length > 0 ) { 73 var headerHeight = header.outerHeight(true); 74 75 $(window).scroll(function () { 76 var scroll = $(this).scrollTop(); 77 78 if ( scroll >= headerHeight+150 ) { 79 header.addClass( 'active_fixed' ); 80 $('.mask_header_shrink_mobile').css( 'height', headerHeight ); 81 } else { 82 header.removeClass('active_fixed'); 83 $('.mask_header_shrink_mobile').css( 'height', '0' ); 84 } 85 }); 86 } 87 } 88 }); 89 90 /* ova_muzze_according */ 91 elementorFrontend.hooks.addAction('frontend/element_ready/ova_muzze_according.default', function(){ 92 // $( ".accor-muzze-content .icon-accor i" ).on( "click", function() { 93 // $(".accor-muzze-content .icon-accor .fa-angle-up").not(this).removeClass('fa-angle-up').addClass('fa-angle-down'); 94 // $(this).toggleClass("fa-angle-up fa-angle-down"); 95 96 // }); 97 }); 98 99 100 /* Menu Henbergar */ 101 elementorFrontend.hooks.addAction('frontend/element_ready/henbergar_menu.default', function(){ 102 103 $( '.ova_menu_canvas .ova_openNav' ).on( 'click', function(){ 104 // $( this ).closest('.ova_wrap_nav').find( '.ova_nav_canvas' ).removeClass( 'hide' ); 105 $( this ).closest('.ova_wrap_nav').find( '.ova_nav_canvas' ).addClass( 'show' ); 106 $( '.ova_menu_canvas .ova_closeCanvas' ).css( 'width', '100%' ); 107 108 $( this ).closest('.ova_wrap_nav').find( '.ova_nav_canvas' ).addClass('active'); 109 110 111 $( 'body' ).css( 'background-color', 'rgba(0,0,0,0.2)' ); 112 113 }); 114 115 $( '.ova_menu_canvas .ova_closeNav' ).on( 'click', function(){ 116 $( this ).closest('.ova_wrap_nav').find( '.ova_nav_canvas' ).removeClass( 'show' ); 117 // $( this ).closest('.ova_wrap_nav').find( '.ova_nav_canvas' ).addClass( 'hide' ); 118 $( '.ova_menu_canvas .ova_closeCanvas' ).css( 'width', '0' ); 119 120 // $( this ).closest('.ova_wrap_nav').find( '.ova_nav_canvas' ).removeClass('active'); 121 122 123 124 $( 'body' ).css( 'background-color', 'transparent' ); 125 126 }); 127 128 // Display in mobile 129 $( '.ova_menu_canvas li.menu-item button.dropdown-toggle').off('click').on( 'click', function() { 130 $(this).parent().toggleClass('active_sub'); 131 }); 132 133 134 135 }); 136 137 /* Header Search */ 138 elementorFrontend.hooks.addAction('frontend/element_ready/ova_search.default', function(){ 139 $( '.wrap_search_muzze_popup .icon-search' ).on( 'click', function(){ 140 $( this ).closest( '.wrap_search_muzze_popup' ).addClass( 'show' ); 141 }); 142 143 $( '.btn_close' ).on( 'click', function(){ 144 $( this ).closest( '.wrap_search_muzze_popup' ).removeClass( 'show' ); 145 146 }); 147 }); 148 149 /* End Header Search */ 150 151 /* Slide Show */ 152 elementorFrontend.hooks.addAction('frontend/element_ready/ova_slideshow.default', function(){ 153 154 function fadeInReset(element) { 155 $(element).find('*[data-animation]').each(function(){ 156 var animation = $(this).data( 'animation' ); 157 $(this).removeClass( 'animated' ); 158 $(this).removeClass( animation ); 159 $(this).css({ opacity: 0 }); 160 }); 161 } 162 163 function fadeIn(element) { 164 165 // Sub Title 166 var $title = $(element).find( '.active .elementor-slide-subtitle' ) 167 var animation_title = $title.data( 'animation' ); 168 var duration_title = parseInt( $title.data( 'animation_dur' ) ); 169 170 171 setTimeout(function(){ 172 $title.addClass(animation_title).addClass('animated').css({ opacity: 1 }); 173 }, duration_title); 174 175 176 /* Title */ 177 var $sub_title = $(element).find( '.active .elementor-slide-title' ); 178 var animation_sub_title = $sub_title.data( 'animation' ); 179 var duration_sub_title = parseInt( $sub_title.data( 'animation_dur' ) ); 180 181 182 setTimeout(function(){ 183 $sub_title.addClass(animation_sub_title).addClass('animated').css({ opacity: 1 }); 184 }, duration_sub_title); 185 186 /* Description */ 187 var $desc = $(element).find( '.active .elementor-slide-description' );
188 var animation_desc = $desc.data( 'animation' ); 189 var duration_desc = parseInt( $desc.data( 'animation_dur' ) ); 190 191 192 setTimeout(function(){ 193 $desc.addClass(animation_desc).addClass('animated').css({ opacity: 1 }); 194 }, duration_desc); 195 196 /* Button */ 197 var $button = $(element).find( '.active .elementor-slide-button' ); 198 var animation_button = $button.data( 'animation' ); 199 var duration_button = parseInt( $button.data( 'animation_dur' ) ); 200 201 setTimeout(function(){ 202 $button.addClass(animation_button).addClass('animated').css({ opacity: 1 }); 203 }, duration_button); 204 205 206 } 207 208 $(document).ready(function(){ 209 $('.elementor-slides').each(function(){ 210 211 var owl = $(this); 212 var data = owl.data("owl_carousel"); 213 214 owl.on('initialized.owl.carousel', function(event) { 215 216 fadeIn(event.target); 217 }); 218 219 owl.owlCarousel( 220 data 221 ); 222 223 owl.on('translate.owl.carousel', function(event){ 224 fadeInReset(event.target); 225 owl.trigger('stop.owl.autoplay'); 226 owl.trigger('play.owl.autoplay'); 227 }); 228 229 owl.on('translated.owl.carousel', function(event) { 230 fadeIn(event.target); 231 owl.trigger('stop.owl.autoplay'); 232 owl.trigger('play.owl.autoplay'); 233 }); 234 }); 235 }); 236 237 }); 238 /* End Slide Show */ 239 240 241 /* Slide Testimonial */ 242 elementorFrontend.hooks.addAction('frontend/element_ready/ova_testimonial.default', function(){ 243 $(".testimonial-slider-ver-1").each(function(){ 244 var owlsl = $(this) ; 245 var owlsl_df = { 246 margin: 0, 247 responsive: false, 248 smartSpeed:500, 249 autoplay:false, 250 autoplayTimeout: 6000, 251 items:1, 252 loop:true, 253 nav: true, 254 dots: true, 255 center:false, 256 autoWidth:false, 257 thumbs:false, 258 autoplayHoverPause: true, 259 slideBy: 1, 260 prev:'<i class="arrow_carrot-left"></i>', 261 next:'<i class="arrow_carrot-right"></i>', 262 }; 263 var owlsl_ops = owlsl.data('options') ? owlsl.data('options') : {}; 264 owlsl_ops = $.extend({}, owlsl_df, owlsl_ops); 265 owlsl.owlCarousel({ 266 autoWidth: owlsl_ops.autoWidth, 267 margin: owlsl_ops.margin, 268 items: owlsl_ops.items, 269 loop: owlsl_ops.loop, 270 autoplay: owlsl_ops.autoplay, 271 autoplayTimeout: owlsl_ops.autoplayTimeout, 272 center: owlsl_ops.center, 273 nav: owlsl_ops.nav, 274 dots: owlsl_ops.dots, 275 thumbs: owlsl_ops.thumbs, 276 autoplayHoverPause: owlsl_ops.autoplayHoverPause, 277 slideBy: owlsl_ops.slideBy, 278 smartSpeed: owlsl_ops.smartSpeed, 279 // animateIn: 'fadeIn', // add this 280 // animateOut: 'fadeOut', // and this 281 navText:[owlsl_ops.prev,owlsl_ops.next], 282 }); 283 284 }); 285 //testimonial ver 1 286 287 $(".testimonial-slider-ver-2").each(function(){ 288 var owlsl = $(this) ; 289 var owlsl_df = { 290 margin: 0, 291 responsive: false, 292 smartSpeed:500, 293 autoplay:false, 294 autoplayTimeout: 6000, 295 items:1, 296 loop:true, 297 nav: true, 298 dots: true, 299 center:false, 300 autoWidth:false, 301 thumbs:false, 302 autoplayHoverPause: true, 303 slideBy: 1, 304 prev:'<i class="arrow_carrot-left"></i>', 305 next:'<i class="arrow_carrot-right"></i>', 306 }; 307 var owlsl_ops = owlsl.data('options') ? owlsl.data('options') : {}; 308 owlsl_ops = $.extend({}, owlsl_df, owlsl_ops); 309 owlsl.owlCarousel({ 310 autoWidth: owlsl_ops.autoWidth, 311 margin: owlsl_ops.margin, 312 items: owlsl_ops.items, 313 loop: owlsl_ops.loop, 314 autoplay: owlsl_ops.autoplay, 315 autoplayTimeout: owlsl_ops.autoplayTimeout, 316 center: owlsl_ops.center, 317 nav: owlsl_ops.nav, 318 dots: owlsl_ops.dots, 319 thumbs: owlsl_ops.thumbs, 320 autoplayHoverPause: owlsl_ops.autoplayHoverPause, 321 slideBy: owlsl_ops.slideBy, 322 smartSpeed: owlsl_ops.smartSpeed, 323 navText:[owlsl_ops.prev,owlsl_ops.next], 324 lazyLoad:true, 325 responsive: { 326 0: { 327 items: 1, 328 }, 329 768: { 330 items: 2, 331 }, 332 333 } 334 }); 335 336 }); 337 //testimonial ver 2 338 339 340 }); 341 // end Slide testimonial 342 343 344 /**** Slide Instagram ****/ 345 elementorFrontend.hooks.addAction('frontend/element_ready/ova_instagram.default', function(){ 346 $('.instagram .slide').each(function(){ 347 var owl = $(this); 348 var data = owl.data('instagram_slide'); 349 owl.owlCarousel( 350 data 351 ); 352 }); 353 }); 354 // end slide Instagram 355 356 357 /* Time Coundown */ 358 elementorFrontend.hooks.addAction('frontend/element_ready/ova_time_countdown.default', function(){ 359 360 var date = $('.due_date').data('day').split(' '); 361 var day = date[0].split('-'); 362 var time = date[1].split(':'); 363 var date_countdown = new Date( day[0], day[1]-1, day[2], time[0], time[1] ); 364 $('.due_date').countdown({until: date_countdown, format: 'DHMS'}); 365 366 }); 367 // end time countdown 368 369 370 /* Slide Testimonial */ 371 elementorFrontend.hooks.addAction('frontend/element_ready/ova_slider.default', function(){ 372 $(".ova-slider-carousel").each(function(){ 373 var owlsl = $(this) ; 374 var owlsl_df = { 375 margin: 0, 376 responsive: false, 377 smartSpeed:500, 378 autoplay:false, 379 autoplayTimeout: 6000, 380 items:1, 381 loop:true, 382 nav: true, 383 dots: true, 384 center:false, 385 autoWidth:false, 386 thumbs:false, 387 autoplayHoverPause: true, 388 slideBy: 1, 389 prev:'<i class="arrow_carrot-left"></i>', 390 next:'<i class="arrow_carrot-right"></i>', 391 }; 392 var owlsl_ops = owlsl.data('options') ? owlsl.data('options') : {}; 393 owlsl_ops = $.extend({}, owlsl_df, owlsl_ops); 394 owlsl.owlCarousel({
395 autoWidth: owlsl_ops.autoWidth, 396 margin: owlsl_ops.margin, 397 items: owlsl_ops.items, 398 loop: owlsl_ops.loop, 399 autoplay: owlsl_ops.autoplay, 400 autoplayTimeout: owlsl_ops.autoplayTimeout, 401 center: owlsl_ops.center, 402 nav: owlsl_ops.nav, 403 dots: owlsl_ops.dots, 404 thumbs: owlsl_ops.thumbs, 405 autoplayHoverPause: owlsl_ops.autoplayHoverPause, 406 slideBy: owlsl_ops.slideBy, 407 smartSpeed: owlsl_ops.smartSpeed, 408 navText:[owlsl_ops.prev,owlsl_ops.next], 409 }); 410 411 }); 412 413 414 }); 415 // end Slider 416 417 // Custom Post Type Slide 418 419 elementorFrontend.hooks.addAction('frontend/element_ready/ova_home_fullscreen.default', function(){ 420 421 $(document).ready(function($) { 422 if (typeof $.fn.fullpage.destroy == 'function') { 423 $.fn.fullpage.destroy('all'); 424 } 425 $('#fullpage').fullpage({ 426 //options here 427 scrollingSpeed: 1000, 428 navigation: true, 429 }); 430 }); 431 432 }); 433 434 435 /* exhibitions slide */ 436 elementorFrontend.hooks.addAction('frontend/element_ready/ova_exhibitions_slide.default', function(){ 437 438 function fadeInReset(element) { 439 $(element).find('*[data-animation]').each(function(){ 440 var animation = $(this).data( 'animation' ); 441 $(this).removeClass( 'animated' ); 442 $(this).removeClass( animation ); 443 $(this).css({ opacity: 0 }); 444 }); 445 } 446 447 function fadeIn(element) { 448 449 // Sub Title 450 var $date = $(element).find( '.active .elementor-slide-subtitle' ); 451 var animation_title = $date.data( 'animation' ); 452 var duration_title = parseInt( $date.data( 'animation_dur' ) ); 453 454 setTimeout(function(){ 455 $date.addClass(animation_title).addClass('animated').css({ opacity: 1 }); 456 }, duration_title); 457 458 // Sub Title 2 459 var $title = $(element).find( '.active .elementor-slide-sub-title-2' ) 460 var animation_title = $title.data( 'animation' ); 461 var duration_title = parseInt( $title.data( 'animation_dur' ) ); 462 463 464 setTimeout(function(){ 465 $title.addClass(animation_title).addClass('animated').css({ opacity: 1 }); 466 }, duration_title); 467 468 469 // Title 470 var $sub_title = $(element).find( '.active .elementor-slide-title' ); 471 var animation_sub_title = $sub_title.data( 'animation' ); 472 var duration_sub_title = parseInt( $sub_title.data( 'animation_dur' ) ); 473 474 475 setTimeout(function(){ 476 $sub_title.addClass(animation_sub_title).addClass('animated').css({ opacity: 1 }); 477 }, duration_sub_title); 478 479 // Description 480 var $desc = $(element).find( '.active .elementor-slide-description' ); 481 var animation_desc = $desc.data( 'animation' ); 482 var duration_desc = parseInt( $desc.data( 'animation_dur' ) ); 483 484 485 setTimeout(function(){ 486 $desc.addClass(animation_desc).addClass('animated').css({ opacity: 1 }); 487 }, duration_desc); 488 489 // Button 490 var $button = $(element).find( '.active .elementor-slide-button' ); 491 var animation_button = $button.data( 'animation' ); 492 var duration_button = parseInt( $button.data( 'animation_dur' ) ); 493 494 setTimeout(function(){ 495 $button.addClass(animation_button).addClass('animated').css({ opacity: 1 }); 496 }, duration_button); 497 498 499 } 500 501 $(document).ready(function(){ 502 $('.elementor-slides').each(function(){ 503 504 var owl = $(this); 505 var data = owl.data("owl_carousel"); 506 507 508 owl.on('initialized.owl.carousel', function(event) { 509 510 fadeIn(event.target); 511 }); 512 513 owl.owlCarousel( 514 data 515 ); 516 517 518 owl.on('translate.owl.carousel', function(event){ 519 fadeInReset(event.target); 520 owl.trigger('stop.owl.autoplay'); 521 owl.trigger('play.owl.autoplay'); 522 }); 523 524 525 owl.on('translated.owl.carousel', function(event) { 526 fadeIn(event.target); 527 owl.trigger('stop.owl.autoplay'); 528 owl.trigger('play.owl.autoplay'); 529 }); 530 531 532 }); 533 534 535 }); 536 537 538 539 var window_size = $(window).height(); 540 var height_slide = window_size - 137; 541 height_slide = (height_slide > 780) ? height_slide : 780; 542 $('.ova-exhibitions-slide').css('height',height_slide + 'px'); 543 544 }); 545 // end exhibitions slide 546 547 /* exhibitions creactive */ 548 elementorFrontend.hooks.addAction('frontend/element_ready/ova_exhibitions_creactive.default', function(){ 549 550 hideObjects(); 551 checkObjectsVisibility(); 552 553 $(window).scroll( function() { 554 hideObjects(); 555 checkObjectsVisibility(); 556 }); 557 558 function hideObjects() { 559 $('.fadeInUp-scroll').css({ 560 'opacity': 0, 561 'transform': 'translateY(150px)' 562 }); 563 } 564 565 function checkObjectsVisibility() { 566 $('.fadeInUp-scroll').each( function(i) { 567 var objectTop = $(this).offset().top; 568 var windowBottom = $(window).scrollTop() + $(window).outerHeight(); 569 570 if( windowBottom > objectTop + 100){ 571 $(this).addClass('visible'); 572 } else { 573 $(this).removeClass('visible'); 574 } 575 }); 576 } 577 }); 578 // end exhibitions creactive 579 580 581 582 583 }); 584 585})(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.