PageSourceSearch

https://antares-edu.ru/nassets/7bc22803/text.js?v=1765633899

js antares-edu.ru collected 2026-09-28 09:06:06 UTC 1,328 bytes, 42 lines download raw bytes

1jQuery.widget( 'gc.textField', $.gc.abstractField, {
2
3	build: function() {
4		this.input = $('<textarea/>');
5        if ( this.field.id ) {
6            this.input.attr('id', 'field-input-' + this.field.id);
7        }
8		this.input.appendTo( this.inputBlock );
9	},
10
11	initEditor: function( settingsEl ) {
12		$.gc.abstractField.prototype.initEditor.call(this, settingsEl );
13
14		this.placeholderInput = this.makeInputTextarea( 'placeholder', Yii.t( "common", "Placeholder" ) )
15		this.colsInput = this.makeInputField( 'cols', Yii.t( "common", "Symbols (width)" ), 3 )
16		this.rowsInput = this.makeInputField( 'rows', Yii.t( "common", "Rows" ), 3 )
17	},
18
19	getField: function() {
20		var result = $.gc.abstractField.prototype.getField.call(this);
21		result.settings = {};
22		result.settings.placeholder = this.placeholderInput.val();
23		result.settings.cols = this.colsInput.val();
24		result.settings.rows = this.rowsInput.val();
25		return result;
26	},
27
28	rebuild: function() {
29		$.gc.abstractField.prototype.rebuild.call(this);
30		this.input.attr( 'placeholder', this.field.settings.placeholder )
31		if ( this.field.settings.cols ) {
32			this.input.attr( 'cols', this.field.settings.cols )
33		}
34		if ( this.field.settings.rows ) {
35			this.input.attr( 'rows', this.field.settings.rows )
36		}
37	},
38
39	getValue: function() {
40		return this.input.val();
41	}
42} );

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.