1Flatsome.behavior('wishlist',{attach:function(context){jQuery('.wishlist-button',context).each(function(index,element){'use strict' 2jQuery(element).on('click',function(e){var $this=jQuery(this) 3if($this.parent().find('.yith-wcwl-wishlistexistsbrowse, .yith-wcwl-wishlistaddedbrowse').length){window.location.href=$this.parent().find('.yith-wcwl-wishlistexistsbrowse a, .yith-wcwl-wishlistaddedbrowse a').attr('href') 4return} 5$this.addClass('loading') 6$this.parent().find('.delete_item').click() 7$this.parent().find('.add_to_wishlist').click() 8e.preventDefault()})}) 9markAdded()}}) 10jQuery(document).ready(function(){var flatsomeAddToWishlist=function(){jQuery('.wishlist-button').removeClass('loading') 11markAdded() 12jQuery.ajax({beforeSend:function(){},complete:function(){},data:{action:'flatsome_update_wishlist_count',},success:function(data){var $icon=jQuery('i.wishlist-icon') 13$icon.addClass('added') 14if(data==0){$icon.removeAttr('data-icon-label')}else if(data==1){$icon.attr('data-icon-label','1')}else{$icon.attr('data-icon-label',data)} 15setTimeout(function(){$icon.removeClass('added')},500)},url:yith_wcwl_l10n.ajax_url,})} 16jQuery('body').on('added_to_wishlist removed_from_wishlist',flatsomeAddToWishlist)}) 17function markAdded(){jQuery('.wishlist-icon').each(function(){var $this=jQuery(this) 18if($this.find('.yith-wcwl-wishlistexistsbrowse, .yith-wcwl-wishlistaddedbrowse').length){$this.find('.wishlist-button').addClass('wishlist-added')}})}
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.