1/** 2 3 * User: kjh 4 * Date: 13. 6. 27 5 * Time: ì¤í 8:03 6 * ìëì ìì¤ë WEVENì ì ìê¶ì´ ìì¼ë¯ë¡ ë¬´ë¨ ì¬ì© ë° ì¬ ë°°í¬ë¥¼ ê¸í©ëë¤. 7 */ 8 9 10// í url 11bm.url = window.location.href; 12bm.__applicationUrl = ''; 13bm.__domain = ''; 14bm.__actionKey = ''; 15 16 // ì¤íì¤ì¸ ëë©ì¸ 17bm.getDomain = function(){ 18 if( this.__domain == '' ){ 19 var _url = this.url; 20 this.__domain = _url.substring( 0, _url.indexOf("/",_url.indexOf("/",_url.indexOf("/")+1)+1)+1 ); 21 } 22 return this.__domain; 23} 24 25 26 // ì¤íì¤ì¸ ê²½ë¡. 27bm.getApplicationUrl = function(){ 28 if( this.__applicationUrl == '' ){ 29 var _url = this.url; 30 if( _url.indexOf( "?" ) > 0 ) _url = _url.slice( 0, _url.indexOf("?") ); 31 this.__applicationUrl = _url.slice(0, _url.lastIndexOf("/")+1); 32 } 33 return this.__applicationUrl; 34} 35 36 37// ì¤íì¤ì¸ ì¡ì í¤ 38bm.getActionKey = function(){ 39 40 41 if( this.__actionKey == '' ){ 42 43 var endIndex = this.url.length; 44 var hashIndex = this.url.indexOf( "#" ); 45 46 if( hashIndex != -1 && hashIndex < endIndex ) endIndex = hashIndex; 47 48 var queryStringIndex = this.url.indexOf("?"); 49 if( queryStringIndex != -1 && queryStringIndex < endIndex ) endIndex = queryStringIndex; 50 51 this.__actionKey = this.url.slice( this.getApplicationUrl().length , endIndex ); 52 53 if( this.__actionKey == "" && this.url[endIndex-1] == "/" && this.url.lastIndexOf( "/" , this.url[endIndex-1] ) > 10 ){ 54 this.__actionKey = this.url.slice( this.url.lastIndexOf( "/" , endIndex-2 ) + 1 , endIndex-1 ); 55 } 56 } 57 58 return this.__actionKey; 59}
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.