PageSourceSearch

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

js couchsoup.com collected 2026-10-02 16:33:33 UTC 1,178 bytes, 35 lines download raw bytes

1jQuery(document).ready(function ($) {
2
3  $(".mpgft-force-signup-checked").on("click", function (e) {
4    let checkbox = $(this);
5    if (!checkbox.is(":checked")) {
6      e.preventDefault();
7      return false;
8    }
9  });
10
11  // $("body").on("change", "input[name='mpgft-signup-gift-checkbox']", function() {
12  //   let form = $(this).closest(".mepr-signup-form");
13  //   let settings = {
14  //     data: {
15  //       gift: $(this).is(':checked')
16  //     }
17  //   }
18  //   window.meprUpdatePriceTerms(form, settings);
19  // })
20
21  // Hide Price, "Is this a gift?" checkbox and payment details if product is a gift
22  var form = $(".mepr-signup-form");
23  form.on("meprPriceStringUpdated", function(event, response) {
24    if(response.is_gift){
25      $(this).find('.mepr_price').hide();
26      $(this).find('.mepr-payment-methods-wrapper').hide();
27      $(this).find('.mepr-transaction-invoice-wrapper').hide();
28      $(this).append('<input type="hidden" name="mepr_payment_methods_hidden" value="1">');
29      $(this).find('input[name="mpgft-signup-gift-checkbox"]').closest('.mp-form-row').remove();
30      if($('.mpgft_notice').length)  $('.mpgft_notice').remove();
31    }
32  });
33
34
35});

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.