1// í´ìíê·¸ 2App.hashTag = function() { 3 var self; 4 return { 5 init: function() { 6 self = this; 7 self.replaceHash(); 8 }, 9 replaceHash: function() { 10 $('#cms-content').contents().each(function() { 11 self.traceNode( this ); 12 }); 13 }, 14 traceNode: function( node ) { 15 16 if(node.nodeType === 3) { 17 if(/\S/.test(node.nodeValue)) { 18 if(/#[\w\-|ã±-ã |ã -ã £|ê°-í£]+/g.test(node.nodeValue)) { 19 var newText = node.nodeValue.replace(/#[\w\-|ã±-ã |ã -ã £|ê°-í£]+/g,function( match ) { 20 return '<a href="/iesf/searchAll.do?key='+ encodeURIComponent(match.substring(1)) +'" target="_new"><span class="keyw">'+match+'</span></a>'; 21 }); 22 $(node).replaceWith(newText); 23 } 24 } 25 } else { 26 $(node).contents().each(function() { 27 self.traceNode( this ); 28 }); 29 } 30 } 31 } 32}(); 33 34 35$(function() { 36 // í´ìíê·¸ 37 //App.hashTag.init(); 38});
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.