PageSourceSearch

https://waerbeke.be/wp-content/plugins/cf7-styler/public/js/cf7-customizer-public.js?ver=1.0.01790284433

js waerbeke.be collected 2026-09-24 21:14:53 UTC 2,574 bytes, 119 lines download raw bytes

1(function( $ ) {
2	'use strict';
3	$(document.body).on('click', '#cf7cstmzr_frontend_togler', function() {
4		var control = $(this);
5		var settings = $('#cf7cstmzr_frontend');
6
7		settings.toggleClass('active');
8		control.hide();
9	});
10
11	$(document.body).on('click', '.cf7cstmzr_form_frontend_link', function(e) {
12		event.preventDefault();
13
14		var url = $(this).attr('href');
15		var form = $(this).data('form');
16		var data = {
17			action: 'cf7cstmzr_cache_form',
18			form: form,
19			security: cf7cstmzrJsObj.security
20		};
21
22		$.ajax({
23			type: 'post',
24			url: cf7cstmzrJsObj.ajaxurl,
25			data: data,
26			success: function (response) {
27				var decoded;
28
29				try {
30					decoded = $.parseJSON(response);
31				} catch(err) {
32					console.log(err);
33					decoded = false;
34				}
35
36				if (decoded) {
37					if (decoded.success) {
38						window.open(url, '_blank');
39					} else {
40						if (decoded.message) {
41							alert(decoded.message);
42						}
43					}
44				} else {
45					alert('Something went wrong');
46				}
47			}
48		});
49	});
50
51	$(document.body).on('click', '#cf7cstmzr_form_frontend_togler', function() {
52		var control = $('#cf7cstmzr_frontend_togler');
53		var settings = $('#cf7cstmzr_frontend');
54
55		if (settings.hasClass('active')) {
56			settings.removeClass('active');
57			setTimeout(function() {
58				control.show();
59			}, 600);
60		} else {
61			settings.addClass('active');
62			control.hide();
63		}
64	});
65	$(document.body).on('click', '#cf7cstmzr_frontend_close', function() {
66		var control = $(this);
67		var open = $('#cf7cstmzr_frontend_togler');
68		var settings = $('#cf7cstmzr_frontend');
69
70		settings.toggleClass('active');
71
72		setTimeout(function() {
73			open.show();
74		}, 600);
75	});
76	$(document.body).on('click', '#cf7cstmzr_frontend_save', function() {
77		var control = $(this);
78		var loadBodyTag = $('#cf7cstmzr_frontend_load-body-tag').is(':checked');
79		var postId = control.data('post');
80		var data = {
81			action: 'cf7cstmzr_frontend_save',
82			loadBodyTag: loadBodyTag,
83			postId: postId,
84			security: cf7cstmzrJsObj.security
85		};
86
87		$.ajax({
88			type: 'post',
89			url: cf7cstmzrJsObj.ajaxurl,
90			data: data,
91			success: function (response) {
92				var decoded;
93
94				try {
95					decoded = $.parseJSON(response);
96				} catch(err) {
97					console.log(err);
98					decoded = false;
99				}
100
101				if (decoded) {
102					if (decoded.success) {
103						if (decoded.message) {
104							alert(decoded.message);
105						}
106
107						window.location.reload();
108					} else {
109						if (decoded.message) {
110							alert(decoded.message);
111						}
112					}
113				} else {
114					alert('Something went wrong');
115				}
116			}
117		});
118	});
119})( 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.