PageSourceSearch

https://livingingodspresence.org/wp-content/plugins/send-link-to-friend/send-link-to-friend.js?ver=2.2

js livingingodspresence.org collected 2026-10-02 15:46:10 UTC 2,138 bytes, 80 lines download raw bytes

1(function ($) {
2	'use strict';
3	
4	function prepareFormPostData_sltf(form, formData) {
5		jQuery.each((form.serializeArray() || {}), function (i, field) {
6			formData['sltf_' + field.name] = field.value;
7		});
8		return formData;
9	}
10
11	function loadResponse_sltf(response, form) {
12		var status = response.status;
13
14		var message_class = 'success';
15		if(status === 'ERROR') {
16			message_class = 'error';
17		}
18
19		var responseText = response['message_text'];
20		var messageContainer = $(form).next('.sltf_form_message');
21		messageContainer.attr('class', 'sltf_form_message ' + message_class);
22		messageContainer.html(responseText);
23		var esSuccessEvent = { 
24			detail: { 
25						sltf_response : message_class, 
26						msg: responseText
27					}, 
28			bubbles: true, 
29			cancelable: true 
30		};
31
32		jQuery(form).trigger('sltf_response', [ esSuccessEvent ]);
33	}
34
35	function SendLinkToFriendFun(form){
36		var formData = {};
37		formData = prepareFormPostData_sltf(form, formData);
38		formData['sltf_submit'] = 'submitted';
39		formData['action'] = 'send_link_to_friend';
40		//alert(formData.toSource());
41		var actionUrl = sltf_data.sltf_ajax_url;
42		jQuery(form).find('#sltf-loading-image').show();
43		$.ajax({
44			type: 'POST',
45			url: actionUrl,
46			data: formData,
47			dataType: 'json',
48			success: function (response) {
49				if( response && typeof response.status !== 'undefined' && response.status === "SUCCESS" ) {
50					jQuery(form).slideUp('slow');
51					jQuery(form).hide();
52				} else {
53					jQuery(form).find('#sltf-loading-image').hide();
54				}
55				jQuery(window).trigger('sltf_submit.send_response', [jQuery(form) , response]);
56				loadResponse_sltf(response, form);
57			},
58			error: function (err) {
59				//alert(err.toSource());
60				//alert(JSON.stringify(err, null, 4));
61				jQuery(form).find('#sltf-loading-image').hide();
62				console.log(err, 'error');
63			},
64		});
65
66		return false;
67	}
68
69	$(document).ready(function () {
70		$(document).on('submit', '.sltf_form', function (e) {
71			e.preventDefault();
72			var form = $(this);
73			SendLinkToFriendFun(form);
74		});
75
76	});
77
78})(jQuery);
79
80

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.