/* resources.views.js.SLO_screen_lock_y2112 */ /* ** 기존에 선언되지 않은 경우만 */ if (typeof(SLO_defined) == "undefined") { /* ** 함수가 선언됨을 표시 */ var SLO_defined = 1; /* ** 상태를 저장하는 변수 */ var SLO_screen_lock_status = 0; /* ** 레이어 이름 */ var SLO_screen_lock_layer = "SLO_divOzLock"; function SLO_init() { /* ** 필요한 파일 include */ if (typeof(CDO_defined) == "undefined") { var jsContent = document.createElement("script"); jsContent.type = "text/javascript"; jsContent.language = "javascript"; jsContent.src = "/js/CDO_create_div.js"; document.getElementsByTagName("HEAD")[0].appendChild(jsContent); } } /* ** 화면을 잠근다 (팝업은 가리지 않는다.) */ function SLO_screen_lock() { /* ** div 생성 */ CDO_create_div(SLO_screen_lock_layer); SLO_screen_lock_act(); } /* ** 화면을 잠근다(팝업도 가린다) */ function SLO_screen_lock_exp() { /* ** div 생성 */ CDO_create_div_exp(SLO_screen_lock_layer, 17); SLO_screen_lock_act(); } function SLO_screen_lock_act() { /* ** 상태값 변경 */ SLO_screen_lock_status = 1; /* ** 잠금용 레이어의 위치와 형태를 잡는다 */ document.getElementById(SLO_screen_lock_layer).style.left = 0; document.getElementById(SLO_screen_lock_layer).style.top = 0; document.getElementById(SLO_screen_lock_layer).style.width = "100%"; document.getElementById(SLO_screen_lock_layer).style.height = "100%"; document.getElementById(SLO_screen_lock_layer).style.position = "fixed"; document.getElementById(SLO_screen_lock_layer).style.opacity = "0.7"; document.getElementById(SLO_screen_lock_layer).style.backgroundColor = "#000000"; /* ** 화면에 표시 */ document.getElementById(SLO_screen_lock_layer).style.display = "block"; } /* ** 잠긴 화면을 푼다 */ function SLO_screen_unlock() { CDO_create_div(SLO_screen_lock_layer); SLO_screen_lock_status = 0; document.getElementById(SLO_screen_lock_layer).style.width = "0px"; document.getElementById(SLO_screen_lock_layer).style.height = "0px"; document.getElementById(SLO_screen_lock_layer).style.display = "none"; } document.addEventListener("DOMContentLoaded", SLO_init, false); }