PageSourceSearch

https://esstu.ru/uportal/js/main.js

js esstu.ru collected 2026-10-02 10:07:55 UTC 3,359 bytes, 118 lines download raw bytes

1$(document).ready(function() {
2	$('.jqueryTable').dataTable({
3			"paging":   false,
4		    "info":     false		
5	});
6} );
7jQuery.fn.dataTableExt.aTypes.unshift(
8		function ( sData )
9		{
10			var sValidChars = "0123456789-,._";
11			var Char;
12			var bDecimal = false;
13			sData=sData.trim();
14			/* Check the numeric part */
15			for ( i=0 ; i<sData.length ; i++ )
16			{
17				Char = sData.charAt(i);
18				if (sValidChars.indexOf(Char) == -1)
19				{
20					return null;
21				}
22				
23				/* Only allowed one decimal place... */
24				if ( Char == "," )
25				{
26					if ( bDecimal )
27					{
28						return null;
29					}
30					bDecimal = true;
31				}
32			}
33			
34			return 'numeric-comma';
35		}
36	);
37
38	jQuery.fn.dataTableExt.oSort['numeric-comma-asc']  = function(a,b) {
39		var x = (a == "-") ? 0 : a.replace( /,/, "." );
40		var y = (b == "-") ? 0 : b.replace( /,/, "." );
41		x = parseFloat( x );
42		y = parseFloat( y );
43		return ((x < y) ? -1 : ((x > y) ?  1 : 0));
44	};
45
46	jQuery.fn.dataTableExt.oSort['numeric-comma-desc'] = function(a,b) {
47		var x = (a == "-") ? 0 : a.replace( /,/, "." );
48		var y = (b == "-") ? 0 : b.replace( /,/, "." );
49		x = parseFloat( x );
50		y = parseFloat( y );
51		return ((x < y) ?  1 : ((x > y) ? -1 : 0));
52	};
53	/*mainmenu*/
54	$(document).ready(function() {
55		var $mainmenu=$(".mainMenuJq");
56		var $arrow=$(".arrow");
57		$(".arrowLine").on("click",function(){
58			$arrow.toggleClass("bgposition");
59			$mainmenu.toggleClass("mainMenuTurn");
60			});
61	});
62	$(document).ready(function(){
63		var $sup=$(".supItem");
64		var $supA=$(".mainMenuJq li");
65		$sup.on("click",function(event){
66			event.preventDefault();
67			if ($(this).parent().parent().hasClass("chosenItem")){
68			$supA.removeClass("chosenItem");
69			$(this).parents("li").addClass("chosenItem");
70			$(this).parent().parent().removeClass("chosenItem");
71			} else{
72				$supA.removeClass("chosenItem");
73				$(this).parents("li").addClass("chosenItem");
74				}
75			});
76		  $(document).click(function(event) {
77		    if ($(event.target).closest(".mainMenuJq").length) return;
78		    event.stopPropagation();
79		    $supA.removeClass("chosenItem");
80		  });
81		});
82
83$(document).ready(function() {
84	$.each($(".side-menu a"),function(){
85		var path = window.location.pathname + window.location.search;
86		/*if ($(this).attr("href").split('?',1)[0] == path){*/
87		if ($(this).attr("href") == path){
88			$(this).parent().addClass('active-department-menu');
89			return false;
90		}
91	});
92});
93
94/*image maximize*/	
95	$(function(){
96		  $('.department-body .news img').click(function(event) {
97		    var i_path = $(this).attr('src');
98		    $('body').append('<div id="overlay"></div><div id="magnify"><img src="'+i_path+'"><div id="close-popup"><i></i></div></div>');
99		    $('#magnify').css({
100			    left: ($(document).width() - $('#magnify').outerWidth())/2,
101		        top: ($(window).height() - $('#magnify').outerHeight())/2
102			  });
103		    $('#overlay, #magnify').fadeIn('fast');
104		  });
105		  
106		  $('body').on('click', '#close-popup, #overlay, #magnify', function(event) {
107		    event.preventDefault();
108		 
109		    $('#overlay, #magnify').fadeOut('fast', function() {
110		      $('#close-popup, #magnify, #overlay').remove();
111		    });
112		  });
113		});
114	
115	/*$(function(){
116		  $("#lightBox a[rel^='prettyPhoto']").prettyPhoto({
117		   });
118		});*/

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.