PageSourceSearch

https://croinvest.eu/wp-content/plugins/wp-crowdfunding-pro/addons/wallet/assets/js/wallet.js?ver=1790958205

js croinvest.eu collected 2026-10-02 16:25:13 UTC 3,596 bytes, 100 lines download raw bytes

1/*========================================================================
2 * Neo Crowdfunding Wallet
3 *======================================================================== */
4jQuery(document).ready(function($){
5    //Add More Campaign Update Field
6    $(document).on('click', 'button.wpcf-message', function(){
7        $(this).next('.wpcf-message-content').show();
8        $('#wpneo-fade').show();
9
10        document.addEventListener('keydown', function(event) {
11            if (event.keyCode == 27){
12                $('.wpcf-message-content').hide();
13                $('#wpneo-fade').hide();
14            }
15        });
16
17    });
18
19    $(document).on('click', '.wpcf-message-close', function(){
20        $(this).parents('.wpcf-message-content').hide();
21        $('#wpneo-fade').hide();
22    });
23
24    //wpneo-request-paid
25    $(document).on('click', '.wpneo-request-paid', function(){
26        var that = $(this);
27        var post_id = that.data('post-id');
28        $.ajax({
29            type : 'POST',
30            url : ajaxurl,
31            data : { action : 'request_paid', 'postid' : post_id },
32            success : function(data){
33                console.log('Data Send!');
34                that.addClass('label-success wpneo-request-pending').removeClass('label-warning wpneo-request-paid').text('Paid');;
35            },
36            error: function(jqXHR, textStatus, errorThrown){
37                console.log('Data Not Send!');
38            }
39        });
40    });
41
42    //wpneo-request-pending
43    $(document).on('click', '.wpneo-request-pending', function(){
44        var that = $(this);
45        var post_id = that.data('post-id');
46        $.ajax({
47            type : 'POST',
48            url : ajaxurl,
49            data : { action : 'request_pending' , 'postid' : post_id },
50            success : function(data){
51                console.log('Data Send2!');
52                that.addClass('label-warning wpneo-request-paid').removeClass('label-success wpneo-request-pending').text('Pending');
53            },
54            error: function(jqXHR, textStatus, errorThrown){
55                console.log('Data Not Send!');
56            }
57        });
58    });
59
60    $(document).on('click', '[name="wpneo_wallet_withdraw_type"]', function (e) {
61        var radio_value = $(this).val();
62        if (radio_value === 'after_certain_period'){
63            $('#wpneo_wallet_withdraw_period_wrap').slideDown();
64        }else {
65            $('#wpneo_wallet_withdraw_period_wrap').slideUp();
66        }
67    });
68
69    $(document).on('click', '.wpcf-withdraw-button', function(e){
70        e.preventDefault();
71        $that = $(this);
72        var campaign_id = $('input[name="wpneo_wallet_withdraw_amount"]').data('campaign-id');
73        var withdraw_amount = $('input[name="wpneo_wallet_withdraw_amount"]').val();
74        var withdraw_message = $('[name="wpcf-wallet-withdraw-message"]').val();
75
76
77        $.ajax({
78            type : 'POST',
79            url : wpcf_ajax_object.ajax_url,
80            data : { action : 'wpneo_crowdfunding_wallet_withdraw' , 'campaign_id' : campaign_id, withdraw_amount : withdraw_amount, withdraw_message : withdraw_message },
81            success : function(data){
82                var response = JSON.parse(data);
83                if (response.success == 1){
84                    $('.wpcf-message-content').hide();
85                    $('#wpneo-fade').hide();
86                    window.location.reload(true);
87                }
88            },
89            error: function(jqXHR, textStatus, errorThrown){
90                console.log('Data Not Send!');
91            }
92        });
93
94    });
95
96
97
98
99
100});

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.