PageSourceSearch

https://www.alexcampos.com.co/wp-content/plugins/elementor-for-sonaar/assets/js/mailchimp.js?ver=1.0

js alexcampos.com.co collected 2026-10-02 21:03:35 UTC 969 bytes, 33 lines download raw bytes

1(function($) {
2	'use strict';
3	window.sr_mailchimp_subscribe = function( formId, apiKey, listId, buttonText, successMsg, loadingText ) {
4
5		$( '#'+formId ).on('submit', function(e) {
6			e.preventDefault();
7
8			var self = $(this);
9			
10			self.find('.sr-mailchimp-subscribe').addClass( 'button--loading' );
11			self.find('.sr-mailchimp-subscribe span').html( loadingText );
12			$.ajax({
13				url: sonaarMailchimp.ajax_url,
14				type: 'POST',
15				data: {
16					action: 'sr_mailchimp_subscribe',
17					fields: self.serialize(),
18					apiKey: apiKey,
19					listId: listId
20				},
21				success: function(data) {
22					self.find('.sr-mailchimp-fields-wrapper').after( '<div class="sr-mailchimp-message"><p>'+successMsg+'</p></div>' );
23					self.find('input[type=text], input[type=email], textarea').val('');
24
25					self.find('.sr-mailchimp-subscribe').removeClass( 'button--loading' );
26					self.find('.sr-mailchimp-subscribe span').html( buttonText );
27				}
28			});
29		})
30	}
31
32})(jQuery);
33

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.