PageSourceSearch

https://micekorea.or.kr/weven_service/asset/js/bm2/control/ApplicationDomain.js

js micekorea.or.kr collected 2026-10-06 09:07:25 UTC 1,707 bytes, 59 lines download raw bytes

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.