PageSourceSearch

https://gangsterreport.com/wp-content/plugins/memberpress/js/account.js?ver=1.14.1

js gangsterreport.com collected 2026-09-24 19:06:02 UTC 2,024 bytes, 69 lines download raw bytes

1jQuery(document).ready(function ($) {
2  const body = $('body');
3
4  $('.mepr-open-resume-confirm, .mepr-open-cancel-confirm').magnificPopup({
5    type: 'inline',
6    closeBtnInside: false
7  });
8
9  body.on('click', '.mepr-confirm-no', function() {
10    $.magnificPopup.close();
11  });
12
13  body.on('click', '.mepr-confirm-yes', function(){
14    location.href = $(this).data('url');
15  });
16
17  $('.mepr-open-upgrade-popup').magnificPopup({
18    type: 'inline',
19    closeBtnInside: false
20  });
21
22  body.on('click', '.mepr-upgrade-cancel', function() {
23    $.magnificPopup.close();
24  });
25
26  body.on('click', '.mepr-upgrade-buy-now', function(){
27    var id = $(this).data('id');
28    var selector = 'select#mepr-upgrade-dropdown-' + id;
29    location.href = $(selector).val();
30  });
31
32  var meprValidateAccountInput = function (obj) {
33    $(obj).removeClass('invalid');
34
35    if ($(obj).attr('required') !== undefined) {
36      var notBlank = mpValidateFieldNotBlank($(obj));
37      mpToggleFieldValidation($(obj), notBlank);
38    }
39
40    // Validate actual email only if it's not empty otherwise let the required/un-required logic hold
41    if ($(obj).attr('type')==='email' && $(obj).val().length > 0) {
42      var validEmail = mpValidateEmail($(obj).val());
43      mpToggleFieldValidation($(obj), validEmail);
44    }
45  };
46
47  body.on('click', '.mepr-account-form .mepr-submit', function (e) {
48    e.preventDefault();
49    var form = $(this).closest('.mepr-account-form');
50    var submittedTelInputs = document.querySelectorAll(".mepr-tel-input");
51    for (var i = 0; i < submittedTelInputs.length; i++) {
52      var iti = window.intlTelInputGlobals.getInstance(submittedTelInputs[i]);
53      submittedTelInputs[i].value = iti.getNumber();
54    }
55
56    // Loop through each field and validate if it's required.
57    $.each(form.find('.mepr-form-input:visible'), function(i,obj) {
58      meprValidateAccountInput(obj);
59    });
60
61    // Validation failed? Bailout.
62    if (0 < form.find('.invalid').length) {
63      return;
64    }
65
66    form.submit();
67  });
68
69});

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.