PageSourceSearch

https://www.entredeuxvagues.com/wp-content/plugins/wt-gift-cards-w…ommerce-gift-cards-free-public.js?ver=1.3.1

js entredeuxvagues.com collected 2026-10-04 13:10:07 UTC 1,421 bytes, 48 lines download raw bytes

1(function($) {
2    'use strict';
3
4    $(document).ready(function() {
5		/**
6		 * Gift card balance check form actions
7		 */
8		if($('.wbte_gc_check_balance_form').length > 0){
9			$('.wbte_gc_check_balance_form').on('submit', function(e) {
10
11				e.preventDefault();
12				var form = $(this);
13				var resultDiv = $('.wbte_gc_balance_result');
14				var data = {
15					'action'		  : 'wbte_gc_check_balance',
16					'_wpnonce'		 	  : wt_gc_params.nonce,
17					'coupon_code'	  : form.find('.wbte_gc_coupon_code').val(),
18					'restricted_email': form.find('.wbte_gc_restricted_email').val()
19				}
20				$.ajax({
21					url: wt_gc_params.ajax_url,
22					type: 'POST',
23					dataType: 'json',
24					data: data,
25					beforeSend: function() {
26						form.find('button[type="submit"]').prop('disabled', true);
27						resultDiv.html('').removeClass('wbte_gc_balance_success wbte_gc_balance_error');
28					},
29					success: function(response) {
30						console.log(response)
31						
32						if (response.success) {
33							resultDiv.html(response.data.message).addClass('wbte_gc_balance_success');
34						} else {
35							resultDiv.html(response.data.message).addClass('wbte_gc_balance_error');
36						}
37					},
38					error: function() {
39						resultDiv.html(wt_gc_params.ajax_error).addClass('wbte_gc_balance_error');
40					},
41					complete: function() {
42						form.find('button[type="submit"]').prop('disabled', false);
43					}
44				});
45			});
46		}
47    });
48})(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.