1function StringFieldWidget() { 2 3 this.stringEl = null; 4 5 this.initEl = function( $el, field, value ) { 6 var widget = this; 7 var id = Math.round( Math.random() * 10000 ); 8 var name = "r" + id; 9 10 this.stringEl = $("<input type='type'>"); 11 this.stringEl.attr( 'name', name ); 12 this.stringEl.attr( 'id', name ); 13 this.stringEl.on( 'change', function() { widget.changed() } ); 14 if(window.isPageRedesigned) { 15 $controlEl = $("<div class='flex-column-4'></div>") 16 this.stringEl.appendTo( $controlEl ) 17 if (field.hint) { 18 $controlEl.append('<div class="input-hint rd-caption-s-second">'+field.hint+'</div>') 19 } 20 } else { 21 $controlEl = $("<div></div>") 22 this.stringEl.appendTo( $controlEl ) 23 if (field.hint) { 24 $controlEl.append('<div class="input-hint" style="font-size: 12px; color: #808080;">'+field.hint+'</div>') 25 } 26 } 27 28 this.initFieldEl( $el, $controlEl, field ) 29 this.setValue( value ) 30 } 31 32 this.getValue = function() { 33 return this.stringEl.val(); 34 }; 35 36 this.setValue = function( value ) { 37 this.stringEl.val( value ); 38 } 39} 40 41extend( StringFieldWidget, FieldWidget ) 42StringFieldWidget.prototype = new FieldWidget() 43window.logicFieldWidgets["string"] = StringFieldWidget
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.