PageSourceSearch

https://ozerova.school/nassets/7bc22803/numeric.js?v=1765633899

js ozerova.school collected 2026-09-27 15:08:47 UTC 1,284 bytes, 48 lines download raw bytes

1jQuery.widget( 'gc.numericField', $.gc.stringField, {
2
3	initEditor: function( settingsEl ) {
4		$.gc.stringField.prototype.initEditor.call(this, settingsEl );
5
6		this.unitsInput = this.makeInputField( 'units', Yii.t( "common", 'Units' ) )
7
8		if ( this.options.chartEnabled ) {
9			this.showOnChartInput = this.makeInputCheckbox( 'show_on_chart', Yii.t( "common", "Show on chart" ) )
10			this.hideOnChartByDefaultInput = this.makeInputCheckbox( 'hide_on_chart_by_default', Yii.t( "common", "Hidden by default on chart" ) )
11		}
12
13	},
14
15	build: function() {
16		$.gc.stringField.prototype.build.call(this);
17
18		this.unitsEl = $(' <span class="units"></span>');
19
20		this.unitsEl.insertAfter( this.input )
21	},
22
23	rebuild: function() {
24		$.gc.stringField.prototype.rebuild.call(this);
25
26		if ( this.field.settings.units ) {
27			this.unitsEl.html( " " + this.field.settings.units )
28		}
29	},
30
31	getField: function() {
32		var field = $.gc.stringField.prototype.getField.call(this);
33
34		field.settings.units = this.unitsInput.val();
35		if ( this.showOnChartInput ) {
36			field.settings.show_on_chart = this.showOnChartInput.prop('checked');
37		}
38
39		if ( this.hideOnChartByDefaultInput ) {
40			field.settings.hide_on_chart_by_default = this.hideOnChartByDefaultInput.prop('checked');
41		}
42
43
44		return field;
45	}
46
47
48} );

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.