1 /* 2 * Quick view 3 */ 4 5 ;(function($){ 6 "use strict"; 7 8 $(document).on('click', '.exadquickview', function (event) { 9 event.preventDefault(); 10 11 var $this = $(this); 12 var productID = $this.data('product-id'); 13 //var tmpl_id = $('.elementor-widget-exad-woo-products .exad-woo-products').data('quickview-tmp-id'); 14 15 $('.exad-modal-quickview-body').html(''); /*clear content*/ 16 $('#exad-viewmodal').addClass('exadquickview-open wlloading'); 17 $('#exad-viewmodal .exad-close-btn').hide(); 18 $('.exad-modal-quickview-body').html('<div class="exad-loading"><div class="wlds-css"><div style="width:100%;height:100%" class="wlds-ripple"><div></div><div></div></div>'); 19 20 var data = { 21 id: productID, 22 action: "exad_quickview", 23 }; 24 $.ajax({ 25 url: exad_ajax_object.ajax_url, 26 data: data, 27 method: 'POST', 28 success: function (response) { 29 setTimeout(function () { 30 $('.exad-modal-quickview-body').html(response); 31 $('#exad-viewmodal .exad-close-btn').show(); 32 }, 300 ); 33 34 }, 35 complete: function () { 36 $('#exad-viewmodal').removeClass('wlloading'); 37 $('.exad-modal-quickview-dialog').css("background-color","#ffffff"); 38 }, 39 error: function () { 40 console.log("Quick View Not Loaded"); 41 }, 42 43 }); 44 45}); 46$('.exad-close-btn').on('click', function(event){ 47 $('#exad-viewmodal').removeClass('exadquickview-open'); 48 $('body').removeClass('exadquickview'); 49 $('.exad-modal-quickview-dialog').css("background-color","transparent"); 50}); 51 52})(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.