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