PageSourceSearch

https://kurskcity.ru/media/js/ajaxform.js?512805529

js kurskcity.ru collected 2026-10-02 07:34:17 UTC 5,244 bytes, 202 lines download raw bytes

1function ajax() { //Ajax отправка формы
2	$('#results').empty();
3	$('#loader').show();
4	var msg = $("#addgubform").serialize();
5	$.ajax({
6		type: "POST",
7		url: "./ajaxfunc/addgubquest",
8		data: msg,
9		success: function(data) {
10			$('#loader').hide();
11			$('#results').show();
12			$("#results").html(data.mes);
13			if(data.res){
14				$('#captcha').replaceWith(data.hash);
15				$('#primer').text(data.primer);
16				$('#results').css('color', '#006600');
17				$(':input','#addgubform')
18				 .not(':button, :submit, :reset, :hidden')
19				 .val('')
20				 .removeAttr('checked')
21				 .removeAttr('selected');
22			}
23			else{
24				$('#results').css('color', '#c00');
25			}
26			setTimeout(function(){
27				$('#results').hide();
28			},
29			6000
30			);
31		},
32		dataType:"json",
33		error:  function(xhr, str){
34			alert("Возникла ошибка!");
35		}
36	});
37}
38
39function addpravo() { //Ajax отправка формы
40	$('#results').empty();
41	$('#loader').show();
42	var msg = $("#addpravoform").serialize();
43	$.ajax({
44		type: "POST",
45		url: "/ajaxfunc/addpravo",
46		data: msg,
47		success: function(data) {
48			$('#loader').hide();
49			$('#results').show();
50			$("#results").html(data.mes);
51			if(data.res){
52				$('#captcha').replaceWith(data.hash);
53				$('#primer').text(data.primer);
54				$('#results').css('color', '#006600');
55				$(':input','#addpravoform')
56				 .not(':button, :submit, :reset, :hidden')
57				 .val('')
58				 .removeAttr('checked')
59				 .removeAttr('selected');
60			}
61			else{
62				$('#results').css('color', '#c00');
63			}
64			setTimeout(function(){
65				$('#results').hide();
66			},
67			8000
68			);
69		},
70		dataType:"json",
71		error:  function(xhr, str){
72			alert("Возникла ошибка!");
73		}
74	});
75}
76
77function sendpcimg(form) { //Ajax отправка формы
78	$('#results').empty();
79	$('#loader').show();
80    formData = new FormData(form); // создаем новый экземпляр объекта и передаем ему нашу форму (*)
81	$.ajax({
82		type: "POST",
83		url: "/ajaxfunc/addpcimg",
84		contentType: false, // важно - убираем форматирование данных по умолчанию
85     	processData: false, // важно - убираем форматирование данных по умолчанию
86		data: formData,
87		success: function(data) {
88			$('#loader').hide();
89			$('#results').show();
90			$("#results").html(data.mes);
91			if(data.res){
92				$('#captcha').replaceWith(data.hash);
93				$('#primer').text(data.primer);
94				$('#results').css('color', '#006600');
95				$(':input','#partake')
96				 .not(':button, :submit, :reset, :hidden')
97				 .val('')
98				 .removeAttr('checked')
99				 .removeAttr('selected');
100			}
101			else{
102				$('#results').css('color', '#c00');
103			}
104			setTimeout(function(){
105				$('#results').hide();
106			},
107			6000
108			);
109		},
110		dataType:"json",
111		error:  function(xhr, str){
112			alert("Возникла ошибка!");
113		}
114	});
115}
116
117function voiting(){
118	var msg = $("#zdesdolhnabitvashaperemennayadlinnoenazavnieforminevrotkompot").serialize();
119	$.ajax({
120		type: "POST",
121		url: "/ajaxfunc/voiting",
122		data: msg,
123		success: function(data) {
124        	$("#poll_block").html(data);
125		},
126		dataType:"json",
127		error:  function(xhr, str){
128			alert("Возникла ошибка!");
129		}
130	});
131}
132
133jQuery.fn.notExists = function() { //Проверка на существование элемента
134	return $(this).length==0;
135}
136/*
137$(document).ready(function(){ //Валидация формы
138	$(".send").validation(
139		$(".name").validate({
140			test: "blank letters",
141			invalid: function(){
142				if($(this).nextAll(".error").notExists()) {
143					$(this).after('<div class="error">Введите корректное имя</div>');
144					$(this).nextAll(".error").delay(2000).fadeOut("slow");
145					setTimeout(function () {
146						$(".name").next(".error").remove();
147					}, 2600);
148				}
149			},
150			valid: function(){
151				$(this).nextAll(".error").remove();
152			}
153		}),
154		$(".email").validate({
155			test: "blank email",
156			invalid: function(){
157				if($(this).nextAll(".error").notExists()) {
158					$(this).after('<div class="error">Введите корректный email</div>');
159					$(this).nextAll(".error").delay(2000).fadeOut("slow");
160					setTimeout(function () {
161						$(".email").next(".error").remove();
162					}, 2600);
163				}
164			},
165			valid: function(){
166				$(this).nextAll(".error").remove();
167			}
168		}),
169		$(".subject").validate({
170			test: "blank",
171			invalid: function(){
172				if($(this).nextAll(".error").notExists()) {
173					$(this).after('<div class="error">Введите тему</div>');
174					$(this).nextAll(".error").delay(2000).fadeOut("slow");
175					setTimeout(function () {
176						$(".subject").next(".error").remove();
177					}, 2600);
178				}
179			},
180			valid: function(){
181				$(this).nextAll(".error").remove();
182			}
183		}),
184		$(".message").validate({
185			test: "blank",
186			invalid: function(){
187				if($(this).nextAll(".error").notExists()) {
188					$(this).after('<div class="error">Введите сообщение</div>');
189					$(this).nextAll(".error").delay(2000).fadeOut("slow");
190					setTimeout(function () {
191						$(".message").next(".error").remove();
192					}, 2600);
193				}
194			},
195			valid: function(){
196				$(this).nextAll(".error").remove();
197			}
198		})
199	);
200});
201
202*/

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.