PageSourceSearch

https://www.developer.com/wp-content/plugins/mailchimp/assets/js/mailchimp.js?ver=1.6.1

js developer.com collected 2026-10-01 10:14:13 UTC 1,060 bytes, 43 lines download raw bytes

1/* Form submission functions for the Mailchimp Widget */
2(function ($) {
3	function mc_beforeForm() {
4		// Disable the submit button
5		$('#mc_signup_submit').attr('disabled', 'disabled');
6	}
7
8	function mc_success(data) {
9		// Re-enable the submit button
10		$('#mc_signup_submit').removeAttr('disabled');
11
12		// Put the response in the message div
13		$('#mc_message').html(data);
14
15		// See if we're successful, if so, wipe the fields
16		const reg = /class="|'mc_success_msg"|'/i;
17
18		if (reg.test(data)) {
19			$('#mc_signup_form').each(function () {
20				this.reset();
21			});
22			$('#mc_submit_type').val('js');
23		}
24		window.scrollTo({
25			top: document.getElementById('mc_signup').offsetTop - 28,
26			behavior: 'smooth',
27		});
28	}
29
30	$(function ($) {
31		// Change our submit type from HTML (default) to JS
32		$('#mc_submit_type').val('js');
33
34		// Attach our form submitter action
35		$('#mc_signup_form').ajaxForm({
36			url: window.mailchimpSF.ajax_url,
37			type: 'POST',
38			dataType: 'text',
39			beforeSubmit: mc_beforeForm,
40			success: mc_success,
41		});
42	});
43})(window.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.