PageSourceSearch

https://brena.or.kr/_res/brena/_share/js/cms-common.js?1620806009000

js brena.or.kr collected 2026-10-08 22:18:47 UTC 892 bytes, 38 lines download raw bytes

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.