PageSourceSearch

https://honeydew-gnu-302055.hostingersite.com/wp-content/themes/fl…/assets/js/frontend/wishlist.js?ver=1.0.1

js honeydew-gnu-302055.hostingersite.com collected 2026-10-03 04:27:14 UTC 2,471 bytes, 77 lines download raw bytes

1(function ($) {
2    'use strict';
3
4    $( document ).on( 'click', '.floaty_add_to_wishlist.add-wishlist', function( event ) {
5
6        event.preventDefault();
7
8        var $button = $( this );
9        var bookId = $button.data( 'book-id' );
10
11        if ( bookId ) {
12            $.ajax({
13                url: floatyAjax.ajaxurl,
14                type: 'post',
15                data: {
16                    action: 'ba_ajax_update_wishlist',
17                    bookId: bookId
18                },
19                beforeSend: function () {
20                    $button.addClass('loading');
21                },
22                success: function (data) {
23                    setTimeout(function() {$button.removeClass('loading');}, 1000);
24                    if(data.result){
25                        $button.addClass('in-wishlist').removeClass('add-wishlist');
26                        $button.prop('href', data.wishlist_link);
27                        $('#content .babe_shortcode_block').append('<div id="showNotice">'+ data.added_text+ '</div>');
28                        setTimeout(function() { $('#showNotice').remove();}, 2000);
29                        $button.tooltipster('content', data.wishlist_text);
30                    }
31                },
32            });
33        }
34    });
35
36    $( document ).on( 'click', '.floaty_add_to_wishlist.in-wishlist', function( event ) {
37
38        event.preventDefault();
39        var page_wishlist = $(this).attr('href');
40        $(location).attr('href', page_wishlist);
41    });
42
43    $(document).ready(function () {
44        $('.floaty_add_to_wishlist.login-acount').magnificPopup({
45            type: 'inline',
46            midClick: true
47        });
48    });
49
50
51    $( document ).on( 'click', '.floaty-wishlist-remove', function( event ) {
52
53        event.preventDefault();
54
55        var $button = $( this );
56        var bookId = $button.data( 'book-id' );
57
58        if ( bookId ) {
59            $.ajax({
60                url: floatyAjax.ajaxurl,
61                type: 'post',
62                data: {
63                    action: 'ba_ajax_remove_wishlist',
64                    bookId: bookId
65                },
66                beforeSend: function () {
67                    $button.addClass('loading');
68                },
69                success: function (data) {
70                    setTimeout(function() {$button.removeClass('loading');}, 1500);
71                    location.reload(true);
72                },
73            });
74        }
75    });
76
77})(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.