<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">// (2024.11.19, 李⑥옱蹂�, Cha Jae Bok, cjbword@gmailcom)

// load �대깽�� 由ъ뒪��
window.addEventListener('load', function(event) {
     
    // 遺꾨쪟 menutype 吏���, �쒕툕硫붾돱 �좏깮 泥섎━
    let pathDivs = document.getElementsByClassName('treeDiv');
    for(let i=0; i&lt;pathDivs.length; i++) {
        // menutype�� �곕씪, div蹂꾨줈 泥섎━
        chooseSubMenu(pathDivs[i]);          
    }

});


// dropdown 硫붾돱 �댁쇅 吏���뿉�� click �섍굅��, Escape �ㅻ� �꾨��뚯뿉, �대깽�� 由ъ뒪�� (dropdown 硫붾돱)
document.body.addEventListener('click', function(evt) {

    if(!evt.target.closest('.treeDiv')) {
        let childDiv = document.querySelectorAll('div.treeDiv span.subMenu &gt; div');
        if(childDiv) {
            for(let i=0;i&lt;childDiv.length;i++) {
                childDiv[i].style.display = 'none';
                normalMenu(childDiv[i].parentNode);
            }
        }
    }

}, false);   

document.onkeydown = function(evt) {
    evt = evt || window.event;
    if (evt.keyCode == 27) {
//        alert('Esc key pressed.');
        let childDiv = document.querySelectorAll('div.treeDiv span.subMenu &gt; div');
        if(childDiv) {
            for(let i=0;i&lt;childDiv.length;i++) {
                childDiv[i].style.display = 'none';
                normalMenu(childDiv[i].parentNode);
            }
        }
    }
};


// 湲곕뒫 : 臾몄꽌 濡쒕뵫 吏곹썑 �ㅽ뻾 (遺꾨쪟, 遺꾨쪟 寃���, �뚯뒪 肄붾뱶, �뚯뒪 寃��� �쇱퀜 蹂댁씠湲�)
// �몄텧 : [index.php] window 'load'

window.addEventListener('load', function() {   

    // �⑹뼱�댁꽕 遺꾨쪟 : `�쇱퀜 蹂댁씠湲�`
    const wordSpan = document.getElementById('wordBunryuTarget');
    if(wordSpan) collapseSpanHandle(wordSpan);                                      // navi_source.js

    // �⑹뼱�댁꽕 遺꾨쪟 : `寃���' �좏깮 �몄텧
    const bunryuSrchInput = document.getElementById('bunryuSrchInput'); // �낅젰�꾨뱶
        if(bunryuSrchInput) bunryuSrchInput.addEventListener('keypress', (e) =&gt;
                                { if(e.key === 'Enter') searchAction(e); }          // navi_search.js
                            );
    const bunryuSrchBtn = document.getElementById('bunryuSrchBtn'); // 踰꾪듉�꾨뱶
        if(bunryuSrchBtn) bunryuSrchBtn.addEventListener('click', searchAction);    // navi_search.js


/*
    // �⑹뼱�댁꽕 �ㅼ쨷 �좏깮 �대룞 (�몄쭛�먯슜)
    const multis = document.getElementById('multis');
    if(multis) {
        multis.style.cursor = 'pointer';
        multis.addEventListener('click', createMultiMoveWin);                       // navi_edit_multi.js
    }

    // �뚯뒪肄붾뱶 遺꾨쪟 : `�쇱퀜 蹂댁씠湲�`
    const sourceSpan = document.getElementById('sourceBunryuTarget');
    if(sourceSpan) collapseSpanHandle(sourceSpan);                                  // navi_source.js

    // �뚯뒪肄붾뱶 寃��� : `�쇱퀜 蹂댁씠湲�`
    const srcSearchBtn = document.getElementById('srcSearchBtn');
        if(srcSearchBtn) srcSearchBtn.addEventListener('click', searchAction);      // navi_search.js
    const srcSearchInput = document.getElementById('srcSearchInput');
        if(srcSearchInput) srcSearchInput.addEventListener('keypress', (e) =&gt;
                                { if(e.key === 'Enter') searchAction(e); }          // navi_search.js
                            );

    // �뚯뒪肄붾뱶 �붾젆�좊━ scan (�몄쭛�먯슜)
    if(glob_var.user_type == '醫낇빀愿�由ъ옄') {
        const srcDirScan = document.getElementById('srcDirScan');
        if(srcDirScan) srcDirScanHandle(srcDirScan);                                // navi_source.js
    }
*/

});


// 湲곕뒫 : �묒냽 �듦퀎 �깅줉
// �몄텧 : [navi_source.js] collapseSpanHandle()
/*
function stat_enroll(reqType,find='') {

        let xhr = new XMLHttpRequest();
        let method = 'get';
        let url = '/test/base_utils/stat_utils.php?reqType='+reqType+'&amp;find='+find;
        xhr.open(method, url);
        xhr.onreadystatechange = function() {  
            if (xhr.readyState === 4 &amp;&amp; xhr.status === 200) {
alert(xhr.responseText);
    				console.log(xhr.responseText);
//                    document.getElementById('tesstDiv').innerHTML = xhr.responseText;
            }
        };
        xhr.send();
}

*/</pre></body></html>