PageSourceSearch

https://etckhv.ru/js/auth.js

js etckhv.ru collected 2026-10-05 00:09:46 UTC 2,211 bytes, 102 lines download raw bytes

1$(function()
2	{
3	
4	$('#auth_enter').on('click', function()
5		{
6		var	location = document.location.pathname + document.location.search;
7		var pass = $('input[name=pass]').val();
8		var login = $('input[name=login]').val();
9		pass = md5(pass);
10		
11		$("#authstatus").empty();
12		$.ajax(
13			{
14			url: "/ajax/auth.php",
15			type: "GET",
16			data: {"pass": pass, "login": login, "location": location},
17			cache: false,			
18			success: function(response)
19				{
20				$("#authstatus").append(response);
21				}
22			});
23		});
24	
25	$('#auth_eml').on('keypress', function(e)
26		{
27		if (e.keyCode == 13)
28			{
29			var	location = document.location.pathname + document.location.search;
30			var pass = $('input[name=pass]').val();
31			var login = $('input[name=login]').val();
32			pass = md5(pass);
33			
34			$("#authstatus").empty();
35			$.ajax(
36				{
37				url: "/ajax/auth.php",
38				type: "GET",
39				data: {"pass": pass, "login": login, "location": location},
40				cache: false,			
41				success: function(response)
42					{
43					$("#authstatus").append(response);
44					}
45				});
46			}
47		});
48		
49	$('#user_enter, #box_warning_auth').on('click', function()
50		{
51		$('body').css('overflow', 'hidden');
52		$('.bl_box').width($(document).width()).height($(document).height());
53		$('.container').css('filter', 'blur(10px)');
54		$('.bl_box').show();
55		top_size = '20px';
56		left_size = '50%';
57		transform = 'translateX(-50%)';
58		if (screen.width < 651) {
59			top_size = 0;
60			left_size = 0;
61			transform = 'none';
62		};
63		var cssObj = 
64			{
65			'display' : 'block',
66			'top' : top_size,
67			'left' : left_size,
68			'transform' : transform
69			};
70		$('#auth').css(cssObj);
71		});
72	
73	$(window).on('resize', function(e) 
74		{
75		$('.bl_box').width($(document).width()).height($(document).height()); 
76		});
77	
78	$('.bl_box').on('click', function(e)
79		{
80		authhide();
81		});
82		
83	$('#auth').on('click', function(e)
84		{
85		if ($(e.target).attr('id')=='auth') authhide();
86		if ($(e.target).attr('id')=='auth_close') authhide();
87		});
88				
89	$(document).on('keypress', function(e)
90		{
91		if (e.keyCode == 27) authhide();
92		});
93		
94	function authhide()
95		{
96		$('body').css('overflow', 'auto');
97		$('.container').css('filter', 'none');
98		$('#auth').hide();
99		$('.bl_box').hide();
100		}
101		
102	});

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.