PageSourceSearch

https://www.istu.edu/ecp/js/ecp.js?17096115272048

js istu.edu collected 2026-10-02 07:40:17 UTC 2,048 bytes, 93 lines download raw bytes

1signatures = [];
2
3$( document ).ready( function () {
4	$( '.doc-signed' ).each( function () {
5		arr_id = signatures.length;
6		signatures[ arr_id ] = new SignatureItem({
7			'obj': this,
8			'arr_id': arr_id
9		});
10	});
11});
12
13
14function SignatureItem ( params )
15{
16	obj_params = $( params.obj ).data( 'params' );
17	this.arr_id = params.arr_id;
18	this.id = obj_params.sig_id;
19	this.file = obj_params.sig_file;
20	this.ta = null;
21
22	this.obj = $( '<a>', {
23		'class': 'doc-sign-item',
24		'text': 'sig',
25		'download': '',
26		'href':	this.file,
27		'onmouseover': 'showSig( '+this.arr_id+' )',
28		'onmouseout': 'hideSig( '+this.arr_id+' )'
29	});
30	$( params.obj ).after( this.obj );
31	this.obj[ 0 ].sig_obj = this;
32/*
33	this.obj
34	.on( 'mouseover', $.proxy( function () { this.showSig(); }, this ) )
35	.on( 'mouseout', $.proxy( function () { this.hideSig(); }, this ) );
36*/
37
38	this.showSig = function ()
39	{
40
41		if ( this.info == undefined ) {
42			this.getInfo();
43		}
44		else if ( this.info.make_time != undefined ) {
45			if ( this.infobox == undefined ) {
46				tempobj = $( '.doc-sign-info' );
47				if ( tempobj.length == 0 ) {
48					this.infobox = $( '<div>',{
49						'class': 'doc-sign-info'
50					});
51					$( 'body' ).append( this.infobox );
52				}
53				else {
54					this.infobox = $( tempobj[ 0 ] );
55				}
56			}
57			this.infobox.html( 'Электронная подпись<br>'+this.info.make_time+'<br>'+this.info.name+'<br>'+this.info.user_info ).addClass( 'active' );
58		}
59	}
60
61	this.hideSig = function ()
62	{
63		if ( this.infobox != undefined ) {
64			this.infobox.removeClass( 'active' );
65		}
66	}
67
68	this.getInfo = function ()
69	{
70		$.ajax({
71		  'url': '//www.istu.edu/ecp/?data={"version":"0.9","action":"signatureInfo","params":{"id":"'+this.id+'"}}',
72		  'context': this
73		})
74		.done( function( sigdata ) {
75			if ( sigdata.data.make_time != undefined ) {
76				this.info = sigdata.data;
77				this.showSig();
78			}
79			else {
80				this.info = {};
81			}
82		});		
83	}
84}
85
86function showSig( arr_id ) 
87{
88	signatures[ arr_id ].showSig();
89}
90function hideSig( arr_id ) 
91{
92	signatures[ arr_id ].hideSig();
93}

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.