1$(document).ready(function() { 2 initTwbs($(document)); 3}); 4 5function initTwbs(context) { 6 context.find(".twb input").on("focus", function() { 7 $(this).parent().find("label").addClass("focused"); 8 }); 9 10 context.find(".twb input").on("blur", function() { 11 $(this).parent().find("label").removeClass("focused"); 12 if ( $(this).val() == "" ) 13 { 14 $(this).parent().find("label").show(); 15 } 16 else 17 { 18 $(this).parent().find("label").hide(); 19 } 20 }); 21 22 context.find(".twb input").on("keydown keyup change", function() { 23 if ( $(this).val() == "" ) 24 { 25 $(this).parent().find("label").show(); 26 } 27 else 28 { 29 $(this).parent().find("label").hide(); 30 } 31 }); 32}
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.