1(function($){ 2 "use strict"; 3 4 5 $(window).on('elementor/frontend/init', function () { 6 7 8 /* Masonry Element */ 9 elementorFrontend.hooks.addAction('frontend/element_ready/ovaex_exhibition_ajax.default', function(){ 10 11 jQuery('.ova_more_post, .exhibition_tab_item a').on( "click", function() { 12 13 var $type_action = jQuery(this).attr('data-type_action'); 14 var $behav = jQuery(this).attr('data-behav'); 15 16 var $upcoming_day = jQuery(this).attr('data-upcoming'); 17 18 var $pageid = jQuery(this).attr('data-paged'); 19 var $ovaex_perpage = jQuery(this).attr('data-perpage'); 20 var $ovaex_oder = jQuery(this).attr('data-order'); 21 var $ovaex_order_by = jQuery(this).attr('data-order-by'); 22 var $ovaex_data_post = jQuery(this).attr('data-post'); 23 var $data_columns = jQuery(this).attr('data-columns'); 24 var $categories = jQuery(this).attr('data-categories'); 25 var $artist = jQuery(this).attr('data-artist'); 26 27 if ( $categories ) { 28 $categories = JSON.parse( $categories ); 29 } 30 31 if( $behav == 'tab' ){ 32 jQuery('.tab-content').html(''); 33 jQuery('.ova_more_post').attr('data-paged','1'); 34 jQuery('.ova_more_post').show(); 35 jQuery('.ova-nodata').hide(); 36 jQuery('.image-loadmore').css('display','none'); 37 jQuery( '.ova_more_post' ).attr( 'data-type_action', $type_action ); 38 } 39 40 jQuery('.load-more').hide(); 41 jQuery('.image-loadmore').css('display','inline-block'); 42 jQuery.ajax({ 43 url: load_more.url, 44 type: 'POST', 45 data: ({ 46 type_action: $type_action, 47 upcoming_day: $upcoming_day, 48 action: 'ovaex_loadmore', 49 pageid: $pageid, 50 ovaex_perpage: $ovaex_perpage, 51 ovaex_order_by: $ovaex_order_by, 52 ovaex_oder: $ovaex_oder, 53 ovaex_data_post : $ovaex_data_post, 54 ovaex_data_columns : $data_columns, 55 ovaex_categories : $categories, 56 ovaex_artist : $artist, 57 }), 58 success: function(data){ 59 if (data){ 60 jQuery('.tab-content').append(data); 61 }else{ 62 jQuery('.ova_more_post').hide(); 63 jQuery('.ova-nodata').show(); 64 jQuery('.ova-noload').show(); 65 } 66 67 var $new_paged = parseInt($pageid) + 1; 68 jQuery('.ova_more_post').attr('data-paged',$new_paged); 69 70 jQuery('.load-more').show(); 71 jQuery('.image-loadmore').css('display','none'); 72 } 73 }); 74 }); 75 }); 76 77 78 /***** Exhibition Slide *****/ 79 elementorFrontend.hooks.addAction('frontend/element_ready/ovaex_exhibition_type.default', function(){ 80 81 if( $('.slide-owl').length > 0 ){ 82 $('.slide-owl').each(function(){ 83 var owl_slide = $(this); 84 var ovaex_sl = $(this).data('options'); 85 var rtl = false; 86 87 if( $('body').hasClass('rtl') ){ 88 rtl = true; 89 } 90 91 owl_slide.owlCarousel({ 92 margin: ovaex_sl.margin, 93 smartSpeed: ovaex_sl.smartSpeed, 94 loop: ovaex_sl.loop, 95 autoplay: ovaex_sl.autoplay, 96 autoplayTimeout: ovaex_sl.autoplayTimeout, 97 autoplayHoverPause: ovaex_sl.autoplayHoverPause, 98 dots: ovaex_sl.dots, 99 nav: ovaex_sl.nav, 100 slideBy: ovaex_sl.slideBy, 101 navText:[ovaex_sl.prev,ovaex_sl.next], 102 rtl: rtl, 103 responsive:{ 104 0:{ 105 items: ovaex_sl.items_mobile 106 }, 107 768:{ 108 items: ovaex_sl.items_ipad 109 }, 110 1170:{ 111 items: ovaex_sl.total_columns_slide, 112 } 113 } 114 }); 115 116 // alert('x'); 117 118 // if( $(this).find('.post-items a img').height() > 0 ){ 119 // var h_total = $(this).find('.post-items').outerHeight(); 120 // var h_content = $(this).find('.post-items .content').outerHeight(); 121 // var result = (h_total - h_content)/2; 122 // $(this).find('.owl-next, .owl-prev').css({"top": result}); 123 // console.log(h_total); 124 // console.log(h_content); 125 // console.log(result); 126 // } 127 128 }); 129 } 130 131 }); 132 133 }); 134})(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.