PageSourceSearch

https://atasoyzeminmarket.com.tr/assets/js/ajax-mail.js?v=0.0.4

js atasoyzeminmarket.com.tr collected 2026-10-07 13:27:54 UTC 1,579 bytes, 57 lines download raw bytes

1$(function() {
2
3	// Get the form.
4	var form = $('#contact-form');
5
6	// Get the messages div.
7	var formMessages = $('.form-messege');
8
9	// Set up an event listener for the contact form.
10	$(form).submit(function(e) {
11		// Stop the browser from submitting the form.
12		e.preventDefault();
13
14		// Serialize the form data.
15		var formData = $(form).serialize();
16
17		// Submit the form using AJAX.
18		$.ajax({
19			type: 'POST',
20			url: $(form).attr('action'),
21			data: formData
22		})
23		.done(function(response) {
24			var responseJson = JSON.parse(response);
25			// Make sure that the formMessages div has the 'success' class.
26			if(responseJson.Response == 'Success'){
27				$(formMessages).addClass('alert-success');
28				$(formMessages).removeClass('alert-danger');
29			}
30			else{
31				// Make sure that the formMessages div has the 'error' class.
32				$(formMessages).addClass('alert-danger');
33				$(formMessages).removeClass('alert-success');
34			}
35			
36
37			// Set the message text.
38			$(formMessages).text(responseJson.Message);
39
40			// Clear the form.
41			$('#contact-form input,#contact-form textarea').val('');
42		})
43		.fail(function(data) {
44			// Make sure that the formMessages div has the 'error' class.
45			$(formMessages).removeClass('success');
46			$(formMessages).addClass('error');
47
48			// Set the message text.
49			if (data.responseText !== '') {
50				$(formMessages).text(data.responseText);
51			} else {
52				$(formMessages).text('Üzgünüz! Mesajınızı gönderirken bir hata oluştu. Lütfen tekrar deneyin.');
53			}
54		});
55	});
56
57});

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.