PageSourceSearch

http://dshi.center/js/custom.js

js dshi.center collected 2026-10-04 22:28:16 UTC 2,186 bytes, 58 lines download raw bytes

1jQuery(document).ready(function($){
2
3	//в этой функции отслеживается изменение чекбокса "я не робот"
4	$(document).on('change', '.fofm input:checkbox', function() {
5		if($(this).is(':checked')){
6			$(".fofm input[type=submit]").removeAttr('disabled');
7			$('.fofm input[type=hidden].valTrFal').val('valTrFal_true');
8		}
9		else {
10			$(".fofm input[type=submit]").attr('disabled','disabled');
11			$('.fofm input[type=hidden].valTrFal').val('valTrFal_disabled');
12		}
13	});
14
15	//закрытие модального окна
16	$('.close_modal, .overlay').click(function (){
17		$('.popup, .popup2, .overlay').css({'opacity':'0', 'visibility':'hidden'});
18		$('.popup > .fofm textarea').val('');
19		//сброс всех полей формы обраной связи
20		$(':input','.fofm').not(':button, :submit, :reset, :hidden').val('').removeAttr('checked').removeAttr('selected');
21		$(".fofm input[type=submit]").attr('disabled','disabled');
22	});
23
24	//показ модального окна
25	$('.open_modal').click(function (e){
26		e.preventDefault();
27		$('.popup, .overlay').css({'opacity':'1', 'visibility':'visible'});
28	});
29
30	//аякс форма обратной связи
31	//проверяет какой ответ был получен
32	//и в зависимости от ответа
33	//выводит информацию о статусе
34	//отправки письма
35	$(".fofm").submit(function() {
36		var str = $(this).serialize();
37		$.ajax({
38			type: "POST",
39			url: "contact.php",
40			data: str,
41			success: function(msg) {
42				if(msg == 'ok') {
43					$('.popup2, .overlay').css('opacity','1');
44					$('.popup2, .overlay').css('visibility','visible');
45					$('.popup').css({'opacity':'0','visibility':'hidden'});
46				}
47				else {
48					$('.popup2 .window').html('<h5>Ошибка</h5><p>Сообщение не отправлено, убедитесь в правильности заполнение полей</p>');
49					$('.popup2, .overlay').css('opacity','1');
50					$('.popup2, .overlay').css('visibility','visible');
51					$('.popup').css({'opacity':'0','visibility':'hidden'});
52				}
53			}
54		});
55		return false;
56	});
57
58});

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.