PageSourceSearch

https://pilatesology.com/wp-content/plugins/memberpress-gifting/public/js/account.js?ver=1.2.0

js pilatesology.com collected 2026-10-01 13:14:30 UTC 2,117 bytes, 76 lines download raw bytes

1jQuery(document).ready(function ($) {
2
3  var getUrlParameter = function getUrlParameter(sParam) {
4    var sPageURL = window.location.search.substring(1),
5        sURLVariables = sPageURL.split('&'),
6        sParameterName,
7        i;
8
9    for (i = 0; i < sURLVariables.length; i++) {
10        sParameterName = sURLVariables[i].split('=');
11
12        if (sParameterName[0] === sParam) {
13            return sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]);
14        }
15    }
16  };
17
18  var openSendGiftEmail = function openSendGiftEmail() {
19    var action = getUrlParameter('action');
20    var transaction = getUrlParameter('txn');
21
22    if(action == "gifts" && $.isNumeric(transaction) && transaction > 0){
23      var $gift = $("#mpgft-send-gift-"+transaction);
24      if($gift.length > 0){
25        $gift.parent().find('.mpgft-open-send-gift').click();
26      }
27    }
28  };
29
30  mepr_setup_clipboard();
31
32  $('.mpgft-open-send-gift').magnificPopup({
33    type: 'inline',
34    preloader: false,
35  });
36
37  openSendGiftEmail()
38
39  //Resend TXN Email JS
40  $('.mpgft-send-gift-submit').click(function(event) {
41
42    event.preventDefault();
43
44    var $form = $(this).closest('.mpgft-send-gift-form');
45    $form.find('img.mpgft-loader').show();
46
47    var data = {
48      action: 'mpgft_send_gift_email',
49      gifter_name: $form.find('input[name="mpgft_gifter_name"]').val(),
50      giftee_name: $form.find('input[name="mpgft_giftee_name"]').val(),
51      giftee_email: $form.find('input[name="mpgft_giftee_email"]').val(),
52      gift_note: $form.find('textarea[name="mpgft_gift_note"]').val(),
53      txn_id: $form.find('input[name="mpgft_transaction_id"]').val(),
54      security: $form.find('input[name="_wpnonce"]').val()
55    };
56
57    jQuery.post(MeprI18n.ajaxurl, data, function(response) {
58      $('.cc-error').hide();
59      $form.find('img.mpgft-loader').hide();
60
61      if(response.success == true){
62        $form.html(response.data);
63      }
64      else{
65        $.each( response.data, function(key, value) {
66          $('.mpgft_'+value+' .cc-error').show()
67        });
68      }
69    });
70
71    return false;
72  });
73
74
75
76});

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.