https://www.imaltaboattrips.com/wp-content/plugins/travila-core/assets/js/wishlist.js?ver=1788517637
1;(function ($) { 2 $('.btn-wishlish').on('click', function (e) { 3 e.preventDefault(); 4 5 var postID = $(this).data('post-id'); 6 7 $.ajax({ 8 url: travilaAjax.ajax_url, 9 type: 'POST', 10 data: { 11 action: 'travila_add_to_wishlist', 12 post_id: postID 13 }, 14 success: function (response) { 15 if (response.success) { 16 alert('Added to wishlist!'); 17 } 18 } 19 }); 20 }); 21 22 23 // Remove from wishlist 24 $(document).on('click', '.remove-from-wishlist', function (e) { 25 e.preventDefault(); 26 console.log('ok'); 27 28 var postID = $(this).data('post-id'); 29 30 $.ajax({ 31 url: travilaAjax.ajax_url, 32 type: 'POST', 33 data: { 34 action: 'travila_remove_from_wishlist', 35 post_id: postID 36 }, 37 success: function (response) { 38 if (response.success) { 39 alert('Removed from wishlist!'); 40 location.reload(); // Refresh the page to update the wishlist 41 } 42 } 43 }); 44 }); 45})(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.