CINXE.COM
ezPDF WebViewer
<!DOCTYPE html> <html lang="ko"> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta content="width=device-width initial-scale=1.0 minimum-scale=1.0 maximum-scale=1.0 user-scalable=no" name="viewport" /> <meta charset="UTF-8"> <meta http-equiv="cache-control" content="max-age=0"/> <meta http-equiv="cache-control" content="no-cache"/> <meta http-equiv="expires" content="0"/> <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT"/> <meta http-equiv="pragma" content="no-cache"/> <link type="text/css" rel="stylesheet" href="/wv/ezpdf/css/common.css" /> <link type="text/css" rel="stylesheet" href="/wv/ezpdf/css/layout.css" /> <link type="text/css" rel="stylesheet" href="/wv/ezpdf/css/nanumgothic.css" /> <link rel="shortcut icon" href="/wv/ezpdf/images/wv_favicon.ico"> <script type="text/javascript" src="/wv/ezpdf/js/jquery-1.6.4.min.js"></script> <script type="text/javascript" src="/wv/ezpdf/js/jquery-2.1.0.min.js" ></script> <script type="text/javascript" src="/wv/ezpdf/js/jquery.min.js"></script> <script type="text/javascript" src="/wv/ezpdf/js/jsDynamicLoader.js"></script> <link rel="prefetch" type="application/l10n" href="/wv/ezpdf/l10n/locales.ini" /> <script type="text/javascript" src="/wv/ezpdf/js/l10n.js"></script> <script type="text/javascript" src="/wv/ezpdf/print/js/json2.js"></script> <title>ezPDF WebViewer</title> <script type="text/javascript"> var checkLicense = true; var redirectURL = ""; if (checkLicense != true) { if (redirectURL != "") { alert("허용된 접속이 아닙니다."); location.href = redirectURL; } } //크로스도메인 이슈를 피하기 위해 뷰어와 컨테이너의 도메인을 동일하게 설정해야 합니다. try { document.domain = document.domain.substring( document.domain.indexOf( '.' ) + 1 ); } catch( e ) { if (window.console) { console.error(e); } } //모바일여부 체크 //해당 Agent를 구한다. var agent = navigator.userAgent.toLowerCase(); if ( -1< agent.indexOf( 'trident' ) || -1< agent.indexOf( 'msie' ) ) { //IE의 경우, if ( navigator.appVersion.indexOf( 'MSIE 7.') > 0 || navigator.userAgent.match(/Trident\/(\d.\d)/i)[1] == '4.0' || navigator.appVersion.indexOf( 'MSIE 8' ) > 0 ) { //IE7 이거나 IE8인 경우, //alert("웹뷰어는 HTML5 지원되는 브라우저(Internet Explorer 9 이상)에서만 사용이 가능합니다."); location.href = "/wv/ezpdf/lowIEMsg.html"; } } // 모바일 판단 변수 var isMobile = false ; if ( agent.indexOf( 'opera' ) != -1 ) { isMobile = true; } else if ( agent.indexOf( 'iphone' ) != -1 ) { isMobile = true; } else if ( agent.indexOf( 'ipod' ) != -1 ) { isMobile = true; } else if ( agent.indexOf( 'ipad' ) != -1 ) { isMobile = true; } else if ( agent.indexOf( 'android' ) != -1 ) { isMobile = true; } else if ( agent.indexOf( 'iemobile' ) != -1 ) { isMobile = true; } else if ( agent.indexOf( 'lgtelecom' ) != -1 ) { isMobile = false; } else if ( agent.indexOf( 'safari' ) != -1 ) { isMobile = false; } else if ( agent.indexOf( 'chrome' ) != -1 ) { isMobile = false; } else if ( agent.indexOf( 'firefox' ) != -1 ) { isMobile = false; } else if ( agent.indexOf( 'netscape' ) != -1 ) { isMobile = false; } else { isMobile = false; } //다국어처리 //15.09.04. 사용할 언어 셋팅 //en : english , ko : 한국어 var language = "ko"; //15.10.06. 사용자탭(샘플리스트/로그인) 활성화 여부 var optUser = "N"; var userEnable = false; var contentId = "L0RBVEEvbmZhL25mYS53YXIvdXBsb2FkLy9ib2FyZC8vYmJzXzAwMDAwMDAwMDAwMDAwMDQvMjAxODA4MjIvMjAxODA4MjIwNjEzMzU2MDI2OS5wZGY="; var waterMarkYn = ""; var waterMarkText = "null"; var launchPdfURL = ""; //15.09.10. 다국어처리. 사용할 변수 var menu_view; var menu_search; var menu_comment; var menu_tool; var menu_user; var search_case_sensitive; var search_all_highlight; var user_sample_list; var user_login; var user_help; var user_program_info; var page_scale_auto; var page_scale_fit; var page_scale_width; //배율 옵션 var zoom_in; var zoom_out; //보기 옵션 var thumnail_list; //팝업 옵션 var popup_close; // 검색 결과 메시지창 var alert_search_no_result; function setCenterWaterMarkText() { if (waterMarkYn == 'Y') { if (waterMarkText != '') { var divWaterMark = document.getElementById( 'watermark' ); divWaterMark.className = "watermarkTxt"; var h = (window.innerHeight / 2) - 20; divWaterMark.style.paddingTop = h + 'px'; //divWaterMark.appendChild(document.createTextNode(waterMarkText)); } } } $(document).ready(function() { document.webL10n.setLanguage( language ); document.webL10n.ready(function() { menu_view = _( 'menu_view' ); menu_search = _( 'menu_search' ); if (false ) { menu_comment = _( 'menu_comment' ); } menu_tool = _( 'menu_tool' ); search_case_sensitive = _( 'search_case_sensitive' ); search_all_highlight = _( 'search_all_highlight' ); menu_user = _( 'menu_user' ); user_sample_list = _( 'user_sample_list' ); user_login = _( 'user_login' ); user_help = _( 'user_help' ); user_program_info = _( 'user_program_info' ); page_scale_auto =_( 'page_scale_auto' ); page_scale_fit = _( 'page_scale_fit' ); page_scale_width = _( 'page_scale_width' ); //배율 옵션. zoom_out = _( 'zoom_out' ); zoom_in = _( 'zoom_in' ); popup_close = _( 'popup_close' ); if ( !isMobile ) { //PC인 경우만 툴팁되도록 document.getElementById( 'btnToggleSideBarThumnailList' ).title = _( 'view_thumnail_list' ); document.getElementById( 'btnPageLayoutDocumentOnePage' ).title = _( 'view_one' ); document.getElementById( 'btnPageLayoutDocumentTwoPage' ).title = _( 'view_two' ); document.getElementById( 'btnPageLayoutDocumentThreePage' ).title = _( 'view_three' ); document.getElementById( 'btnPageLayoutBook' ).title = _( 'view_book_mode' ); document.getElementById( 'btnPageLayoutScrollMode' ).title = _( 'view_scroll_mode' ); document.getElementById( 'btnPageLayoutPresentationMode' ).title = _( 'view_presentation_mode' ); //tab_ document.getElementById( 'tab_btnToggleSideBarThumnailList' ).title = _( 'view_thumnail_list' ); document.getElementById( 'tab_btnPageLayoutDocumentOnePage' ).title = _( 'view_one' ); document.getElementById( 'tab_btnPageLayoutDocumentTwoPage' ).title = _( 'view_two' ); document.getElementById( 'tab_btnPageLayoutDocumentThreePage' ).title = _( 'view_three' ); document.getElementById( 'tab_btnPageLayoutBook' ).title = _( 'view_book_mode' ); document.getElementById( 'tab_btnPageLayoutScrollMode' ).title = _( 'view_scroll_mode' ); document.getElementById( 'tab_btnPageLayoutPresentationMode' ).title = _( 'view_presentation_mode' ); //프리젠테이션모드(전체화면) 닫기 document.getElementById( 'presentationModeOff' ).title = _( 'hide_presentation_mode' ); //검색 옵션 툴바. document.getElementById( 'tbSearchKeyword' ).title = _( 'search_text' ); document.getElementById( 'btnSearchPrev' ).title = _( 'search_previous_move' ); document.getElementById( 'btnSearchNext' ).title = _( 'search_next_move' ); //tab_ document.getElementById( 'tab_tbSearchKeyword' ).title = _( 'search_text' ); document.getElementById( 'tab_btnSearchPrev' ).title = _( 'search_previous_move' ); document.getElementById( 'tab_btnSearchNext' ).title = _( 'search_next_move' ); //tab_ 대소문자 구분 document.getElementById( 'tab_cbSearchCaseSensitive' ).title = _( 'search_case_sensitive' ); //tab_ 모두 강조 document.getElementById( 'tab_cbSearchHighlightAll' ).title = _( 'search_all_highlight' ); //주석 옵션 툴바. if (false ) { document.getElementById( 'btnToggleSideBarAnnotationList').title = _( 'annotation_list' ); document.getElementById( 'btnAnnotTextBox').title = _( 'annotation_textbox' ); document.getElementById( 'btnAnnotInk').title = _( 'annotation_ink' ); document.getElementById( 'btnAnnotLine').title = _( 'annotation_line' ); document.getElementById( 'btnAnnotCircle').title = _( 'annotation_circle' ); document.getElementById( 'btnAnnotSquare').title = _( 'annotation_square' ); document.getElementById( 'btnAnnotHighlight').title = _( 'annotation_highlight' ); document.getElementById( 'btnAnnotStrikeOut').title = _( 'annotation_strike_out' ); document.getElementById( 'btnAnnotUnderline').title = _( 'annotation_under_line' ); document.getElementById( 'btnAnnotStickyNote').title = _( 'annotation_sticky_note' ); //tab_ document.getElementById( 'tab_btnToggleSideBarAnnotationList' ).title = _( 'annotation_list' ); document.getElementById( 'tab_btnAnnotTextBox' ).title = _( 'annotation_textbox'); document.getElementById( 'tab_btnAnnotInk' ).title = _( 'annotation_ink' ); document.getElementById( 'tab_btnAnnotLine' ).title = _( 'annotation_line' ); document.getElementById( 'tab_btnAnnotCircle' ).title = _( 'annotation_circle' ); document.getElementById( 'tab_btnAnnotSquare' ).title = _( 'annotation_square' ); document.getElementById( 'tab_btnAnnotHighlight' ).title = _( 'annotation_highlight' ); document.getElementById( 'tab_btnAnnotStrikeOut' ).title = _( 'annotation_strike_out' ); document.getElementById( 'tab_btnAnnotUnderline' ).title = _( 'annotation_under_line' ); document.getElementById( 'tab_btnAnnotStickyNote' ).title = _( 'annotation_sticky_note' ); } //도구 옵션 툴바. document.getElementById( 'btnHandTool' ).title = _( 'tool_hand' ); document.getElementById( 'btnRotateCW' ).title = _( 'tool_rotate_right' ); document.getElementById( 'btnRotateCCW' ).title = _( 'tool_rotate_left' ); if (false ) { document.getElementById( 'btnPrint' ).title = _( 'tool_print' ); } if (false ) { document.getElementById( 'btnDownload' ).title = _( 'tool_download' ); } document.getElementById( 'btnToggleSideBarOutlineList' ).title = _( 'tool_outline_list' ); document.getElementById( 'btnToggleSideBarAttachmentList' ).title = _( 'tool_attachment_list' ); //tab_ document.getElementById( 'tab_btnHandTool' ).title = _( 'tool_hand' ); document.getElementById( 'tab_btnRotateCW' ).title = _( 'tool_rotate_right' ); document.getElementById( 'tab_btnRotateCCW' ).title = _( 'tool_rotate_left' ); if (false ){ document.getElementById( 'tab_btnPrint' ).title = _( 'tool_print' ); } if (false ) { document.getElementById( 'tab_btnDownload' ).title = _( 'tool_download' ); } document.getElementById( 'tab_btnToggleSideBarOutlineList' ).title = _( 'tool_outline_list' ); document.getElementById( 'tab_btnToggleSideBarAttachmentList' ).title = _( 'tool_attachment_list' ); //페이지 옵션. document.getElementById( 'btnGotoPagePrev' ).title = _( 'previous_page_move' ); document.getElementById( 'btnGotoPageNext' ).title = _( 'next_page_move' ); document.getElementById( 'btnGotoPagePrevMobile' ).title = _( 'previous_page_move' ); document.getElementById( 'btnGotoPageNextMobile' ).title = _( 'next_page_move' ); //배율 옵션. document.getElementById( 'btnZoomOut' ).title = _( 'zoom_out' ); document.getElementById( 'btnZoomIn' ).title = _( 'zoom_in' ); //즐겨찾기 툴팁. if (false ) { document.getElementById( 'nav_btnAnnotInk' ).title = _( 'annotation_ink' ); document.getElementById( 'nav_btnAnnotHighlight' ).title = _( 'annotation_highlight' ); document.getElementById( 'nav_btnAnnotSquare' ).title = _( 'annotation_square' ); document.getElementById( 'nav_btnAnnotStickyNote' ).title = _( 'annotation_sticky_note' ); document.getElementById( 'nav_btnToggleSideBarAnnotationList' ).title = _( 'annotation_list' ); } } alert_search_no_result = _( 'alert_search_no_result' ); }); }); if ( language == "ko" ) { popup_close = "닫기"; } else { popup_close = "Close"; } var pageLayout = 1; //페이지레이아웃 표시 function getPage() { //alert(pageLayout); if ( pageLayout == 1 ) { btnPageLayoutDocumentOnePage.style.opacity = 0.5; tab_btnPageLayoutDocumentOnePage.style.opacity = 0.5; } else if ( pageLayout == 2 ) { btnPageLayoutDocumentTwoPage.style.opacity = 0.5; tab_btnPageLayoutDocumentTwoPage.style.opacity = 0.5; } else if ( pageLayout == 3 ) { btnPageLayoutDocumentThreePage.style.opacity = 0.5; tab_btnPageLayoutDocumentThreePage.style.opacity = 0.5; } else if ( pageLayout == "bookMode" ){ btnPageLayoutBook.style.opacity = 0.5; tab_btnPageLayoutBook.style.opacity = 0.5; } } //15.09.10. 프리젠테이션 모드 var presentationMode = false; <!--메뉴--> jQuery( function($) { var tab = $( '.tab_face' ); tab.removeClass( 'js_off' ); function onSelectTab() { var t = $( this ); var myclass = []; t.parentsUntil( '.tab_face:first' ).filter( 'li' ).each( function() { myclass.push( $( this ).attr( 'class' ) ); }); myclass = myclass.join(' '); if ( !tab.hasClass( myclass ) ) tab.attr( 'class','tab_face').addClass( myclass ); } tab.find( 'li>a' ).click( onSelectTab ).focus( onSelectTab ); }); $(function(){ $( '.zoom select' ).change( function() { $( 'div.select_box' ).text( $( 'option:selected' , this ).text() ); }).trigger( 'change' ); }); $(function(){ $( '.nav_s select' ).change( function() { $( 'div.nav_s_box' ).text( $( 'option:selected' , this ).text() ); }).trigger( 'change' ); }); function getStyle(el, styleProp) { var value, defaultView = (el.ownerDocument || document).defaultView; // W3C standard way: if (defaultView && defaultView.getComputedStyle) { // sanitize property name to css notation // (hypen separated words eg. font-Size) styleProp = styleProp.replace(/([A-Z])/g, "-$1").toLowerCase(); return defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); } else if (el.currentStyle) { // IE // sanitize property name to camelCase styleProp = styleProp.replace(/\-(\w)/g, function(str, letter) { return letter.toUpperCase(); }); value = el.currentStyle[styleProp]; // convert other units to pixels on IE if (/^\d+(em|pt|%|ex)?$/i.test(value)) { return (function(value) { var oldLeft = el.style.left, oldRsLeft = el.runtimeStyle.left; el.runtimeStyle.left = el.currentStyle.left; el.style.left = value || 0; value = el.style.pixelLeft + "px"; el.style.left = oldLeft; el.runtimeStyle.left = oldRsLeft; return value; })(value); } return value; } } window.addEventListener( 'load', function() { //다국어 처리 document.webL10n.setLanguage( language ); //화면구성요소 정의 if (waterMarkYn == 'Y') { var divWaterMark = document.getElementById( 'watermark' ); if (waterMarkText != '') { divWaterMark.appendChild(document.createTextNode(waterMarkText)); setCenterWaterMarkText(); } else { divWaterMark.className = "watermark"; } divWaterMark.style.display = "block"; } var viewerFrame = document.getElementById( 'viewerFrame' ); // TODO webViewerURL var viewerUrl = '/wv/ezpdfwebviewer/viewer.jsp?optNoUi=true&optLang=' + language; if ( contentId ) { if ( contentId != "" ) { viewerUrl += "&contentId=" + contentId; } } if ( "" != "" && "" == "true") { viewerUrl += "&optWebtoonMode=" + ""; } //16.10.11. 라임소다 파라미터 추가 if ( "" != "" ) { viewerUrl += "&limeRoomNo=" + ""; } if ( "" != "" ) { viewerUrl += "&limeUserNo=" + ""; } if ( "" != "" ) { viewerUrl += "&limeDocNo=" + ""; } if ( "" != "" ) { viewerUrl += "&limeToken=" + ""; } // #옵션 if ( "0" != "0" ) { viewerUrl += "#page=" +0; //로딩시 고정 배율 줄 경우, if ( "auto" != "" ) { viewerUrl += "&zoom=" + "auto"; } } else { //로딩시 고정 배율 줄 경우, if ( "auto" != "" ) { viewerUrl += "#zoom=" + "auto"; } } var topArea = document.getElementById( 'topArea' ); viewerFrame.style.height = ( window.innerHeight - topArea.getBoundingClientRect().height - 78) + 'px'; viewerFrame.src = viewerUrl; if ( !userEnable ) { document.getElementById( 'mobilenav_user' ).style.display = "none"; document.getElementById( 'userMenu' ).style.display = "none"; } if ( !false ) { document.getElementById( 'mobilenav_comment' ).style.display = "none"; document.getElementById( 'menu_annot' ).style.display = "none"; document.getElementById( 'nav_menu' ).style.display = "none"; document.getElementById( 'tab03' ).style.display = "none"; } }); //화면크기가 변경되는 경우. window.addEventListener( 'resize', function( e ) { setCenterWaterMarkText(); var viewerFrame = document.getElementById( 'viewerFrame' ); //높이조절 var topArea = document.getElementById( 'header' ); viewerFrame.style.height = ( window.innerHeight - topArea.getBoundingClientRect().height ) + 'px'; popup.style.display = 'none'; mobile_popup.style.display = 'none'; } ); //480 메뉴 $( document ).ready( function() { $( '.icon' ).click( function() { $( '.mobilenav' ).fadeToggle( 500 ); $( '.top-menu' ).toggleClass( 'top-animate' ); $( '.mid-menu' ).toggleClass( 'mid-animate' ); $( '.bottom-menu' ).toggleClass( 'bottom-animate' ); }); $( '.mobilenav li a' ).click(function() { $( '.mobilenav' ).fadeToggle( 500 ); $( '.top-menu' ).toggleClass( 'top-animate' ); $( '.mid-menu' ).toggleClass( 'mid-animate' ); $( '.bottom-menu' ).toggleClass( 'bottom-animate' ); }); }); function change( obj ) { var viewerFrame = document.getElementById( 'viewerFrame' ); var viewer = viewerFrame.contentWindow || viewerFrame.contentDocument; var menu_select = document.getElementById( 'menu_select' ); tab01.style.display = 'none'; tab02.style.display = 'none'; if (false ) { tab03.style.display = 'none'; } tab04.style.display = 'none'; tab05.style.display = 'none'; obj.style.display = 'block'; if ( obj == tab01 ){ menu_select.innerHTML = menu_view; //보기 document.getElementById( 'tab_btnToggleSideBarThumnailList' ).addEventListener( 'click', function( e ) { if ( !viewer.yex.api.isSideBarOpenedAsThumbnailList() ) { viewer.yex.api.openSideBarThumbnailList(); } else { viewer.yex.api.closeSideBar(); } } ); document.getElementById( 'tab_btnPageLayoutDocumentOnePage' ).addEventListener( 'click', function( e ) { viewer.yex.api.setPageLayoutDocumentNPage( 1 ); changePageLayout( 1 ); } ); document.getElementById( 'tab_btnPageLayoutDocumentTwoPage' ).addEventListener( 'click', function( e ) { viewer.yex.api.setPageLayoutDocumentNPage( 2 ); changePageLayout( 2 ); } ); document.getElementById( 'tab_btnPageLayoutDocumentThreePage' ).addEventListener( 'click', function( e ) { viewer.yex.api.setPageLayoutDocumentNPage( 3 ); changePageLayout( 3 ); } ); document.getElementById( 'tab_btnPageLayoutBook' ).addEventListener( 'click', function( e ) { viewer.yex.api.setPageLayoutBook(); changePageLayout( 'bookMode' ); } ); document.getElementById( 'tab_btnPageLayoutScrollMode' ).addEventListener( 'click', function( e ) { btnPageLayoutScrollMode.style.opacity = 1; tab_btnPageLayoutScrollMode.style.opacity = 1; viewer.yex.api.togglePageLayoutScrollMode(); } ); //15.09.11.프리젠테이션 모드 추가. document.getElementById( 'tab_btnPageLayoutPresentationMode' ).addEventListener( 'click', function( e ) { presentationMode = true; $( '#topArea' ).addClass( 'hidden' ); //프리젠테이션 모드의 경우, with tool 화면으로 돌아갈수 있는 버튼 활성화 시키기 presentationModeOff.style.display = 'block'; container.style.padding = '0px'; //16.03.24. 모바일의 경우, 안드로이드에서 스크롤모드 안되므로 페이지 이동버튼 필요 $('#page').addClass('hidden'); if ( isMobile ) { page_pt.style.display='block'; } var viewerFrame = document.getElementById( 'viewerFrame' ); var topArea = document.getElementById( 'header' ); viewerFrame.style.height = ( window.innerHeight - topArea.getBoundingClientRect().height ) + 'px'; btnPageLayoutPresentationMode.style.opacity = 1; tab_btnPageLayoutPresentationMode.style.opacity = 1; } ); } else if ( obj == tab02 ) { menu_select.innerHTML = menu_search; document.getElementById( 'tab_tbSearchKeyword' ).addEventListener( 'input', function( e ) { //alert("검색"); if ( this.value == "" ) { var keyword = fuTxtValidation(this.value); viewer.yex.api.searchSetKeyword( keyword ); } } ); document.getElementById( 'tab_tbSearchKeyword' ).addEventListener( 'keypress', function( e ) { if ( e.keyCode == 13) { //Enter 친 경우, var keyword = fuTxtValidation(this.value); viewer.yex.api.searchSetKeyword( keyword ); viewer.yex.api.callback.onSearchNotFound = function() { viewer.yex.api.alert( alert_search_no_result + " : " + keyword ); }; } } ); document.getElementById( 'tab_cbSearchCaseSensitive' ).addEventListener( 'change', function( e ) { viewer.yex.api.searchSetCaseSensitive( this.checked ); } ); document.getElementById( 'tab_cbSearchHighlightAll' ).addEventListener( 'change', function( e ) { viewer.yex.api.searchSetHighlightAll( this.checked ); } ); document.getElementById( 'tab_btnSearchPrev' ).addEventListener( 'click', function( e ) { viewer.yex.api.searchPrev(); } ); document.getElementById( 'tab_btnSearchNext' ).addEventListener( 'click', function( e ) { viewer.yex.api.searchNext(); } ); } else if ( obj == tab03 ) { if (false ) { menu_select.innerHTML = menu_comment; //15.07.22.주석 document.getElementById( 'tab_btnToggleSideBarAnnotationList' ).addEventListener( 'click', function( e ) { if( !viewer.yex.api.isSideBarOpenedAsAnnotationList() ) { viewer.yex.api.openSideBarAnnotationList(); } else { viewer.yex.api.closeSideBar(); } } ); document.getElementById( 'tab_btnAnnotInk' ).addEventListener( 'click', function( e ) { viewer.yex.api.activateAnnotationModeFreehand(); } ); document.getElementById( 'tab_btnAnnotLine' ).addEventListener( 'click', function( e ) { viewer.yex.api.activateAnnotationModeLine(); } ); document.getElementById( 'tab_btnAnnotCircle' ).addEventListener( 'click', function( e ) { viewer.yex.api.activateAnnotationModeCircle(); } ); document.getElementById( 'tab_btnAnnotSquare' ).addEventListener( 'click', function( e ) { viewer.yex.api.activateAnnotationModeSquare(); } ); document.getElementById( 'tab_btnAnnotHighlight' ).addEventListener( 'click', function( e ) { viewer.yex.api.activateAnnotationModeHighlight(); } ); document.getElementById( 'tab_btnAnnotStrikeOut' ).addEventListener( 'click', function( e ) { viewer.yex.api.activateAnnotationModeStrikeOut(); } ); document.getElementById( 'tab_btnAnnotUnderline' ).addEventListener( 'click', function( e ) { viewer.yex.api.activateAnnotationModeUnderline(); } ); document.getElementById( 'tab_btnAnnotStickyNote' ).addEventListener( 'click', function( e ) { viewer.yex.api.activateAnnotationModeStickyNote(); } ); //15.09.10. 텍스트 박스 추가. document.getElementById( 'tab_btnAnnotTextBox' ).addEventListener( 'click', function( e ) { viewer.yex.api.activateAnnotationModeTextBox(); } ); } } else if ( obj == tab04 ) { menu_select.innerHTML = menu_tool; //15.07.22.도구 if ( !isMobile ) { document.getElementById( 'tab_btnHandTool' ).addEventListener( 'click', function( e ) { btnHandTool.style.opacity = 1; tab_btnHandTool.style.opacity = 1; viewer.yex.api.toggleHandTool(); } ); } document.getElementById( 'tab_btnRotateCW' ).addEventListener( 'click', function( e ) { viewer.yex.api.rotatePageCW(); } ); document.getElementById( 'tab_btnRotateCCW' ).addEventListener( 'click', function( e ) { viewer.yex.api.rotatePageCCW(); } ); if (false ) { document.getElementById( 'tab_btnPrint' ).addEventListener( 'click', function( e ) { //15.09.25. 뷰어쪽만 인쇄되도록 포커스 잡기 viewer.focus(); viewer.yex.api.print(); } ); } if (false ) { document.getElementById( 'tab_btnDownload' ).addEventListener( 'click', function( e ) { viewer.yex.api.download(); //viewer.yex.api.downloadPDFWithAnnot(); } ); } document.getElementById( 'tab_btnToggleSideBarOutlineList' ).addEventListener( 'click', function( e ) { if ( !viewer.yex.api.isSideBarOpenedAsOutlineList() ) { viewer.yex.api.openSideBarOutlineList(); } else { viewer.yex.api.closeSideBar(); } } ); document.getElementById( 'tab_btnToggleSideBarAttachmentList' ).addEventListener( 'click', function( e ) { if( !viewer.yex.api.isSideBarOpenedAsAttachmentList() ){ viewer.yex.api.openSideBarAttachmentList(); } else { viewer.yex.api.closeSideBar(); } } ); } else if ( obj==tab05 ) { menu_select.innerHTML = menu_user; //사용자 document.getElementById( 'tab_btnContentsList' ).addEventListener( 'click', function( e ) { btnContentsList.style.opacity = 1; tab_btnContentsList.style.opacity = 1; viewer.yex.api.uiDefaultContentsList(); changePageLayout(1); } ); document.getElementById( 'tab_btnUserAction' ).addEventListener( 'click', function( e ) { btnUserAction.style.opacity = 1; tab_btnUserAction.style.opacity = 1; viewer.yex.api.uiDefaultUserAction( function( userName ) { var btn = document.getElementById( 'tab_btnUserAction' ); while( btn.firstChild ) { btn.removeChild( btn.firstChild ); } btn.appendChild( document.createTextNode( userName ? userName : user_login ) ); } ); } ); document.getElementById( 'tab_help' ).addEventListener( 'click', function( e ) { //웹뷰어 사용설명서 PDF 새창으로 띄어주기 help.style.opacity = 1; tab_help.style.opacity = 1; //페이지위에 뜨는거... 수정해야함.. window.open('./help.jsp?contentId=657a504446205765627669657765725f55736572204d616e75616c5f32303135313031355f76312e302e706466&lang='+language, '웹뷰어 사용자 설명서', 'width=800, height=800, toolbar=no, menubar=no, scrollbars=no, resizable=yes' ); //window.open('../ezpdfwebviewer/viewer.jsp?contentId=657a504446205765627669657765725f55736572204d616e75616c5f32303135313031355f76312e302e706466&optNoUi=true', '웹뷰어 사용자 설명서', 'width=800, height=800, toolbar=no, menubar=no, scrollbars=no, resizable=yes' ); //window.open('./customLayout.jsp?contentId=sample2.pdf&optNoUi=true', '웹뷰어 사용 설명서', 'width=800, height=800, toolbar=no, menubar=no, scrollbars=no, resizable=yes' ); } ); document.getElementById( 'tab_programInfo' ).addEventListener( 'click', function( e ) { //프로그램 정보 alert창으로 띄어주기. tab_programInfo.style.opacity = 1; mobile_popup.style.display = 'block'; } ); } } function changePageLayout( page ) { //alert(page); var viewerFrame = document.getElementById( 'viewerFrame' ); var viewer = viewerFrame.contentWindow || viewerFrame.contentDocument; btnPageLayoutDocumentOnePage.style.opacity = 1; btnPageLayoutDocumentTwoPage.style.opacity = 1; btnPageLayoutDocumentThreePage.style.opacity = 1; btnPageLayoutBook.style.opacity = 1; tab_btnPageLayoutDocumentOnePage.style.opacity = 1; tab_btnPageLayoutDocumentTwoPage.style.opacity = 1; tab_btnPageLayoutDocumentThreePage.style.opacity = 1; tab_btnPageLayoutBook.style.opacity = 1; if ( page == 'bookMode' ) { //alert('bookMode'); viewer.yex.api.setPageLayoutBook(); btnPageLayoutBook.style.opacity = 0.5; tab_btnPageLayoutBook.style.opacity = 0.5; btnPageLayoutScrollMode.style.display = 'none'; tab_btnPageLayoutScrollMode.style.display = 'none'; //15.10.14. 보기타입이 책보기인 경우, 확대/축소비율 나타내는 부분 비활성화. $( '#zoom' ).addClass( 'hidden' ); } else { //alert("bookMode no"); //15.10.14. 보기타입이 책보기가 아닌 경우, 확대/축소비율 나타내는 부분 활성화. $( '#zoom' ).removeClass( 'hidden' ); document.getElementById( 'btnZoomOut' ).title = zoom_out; document.getElementById( 'btnZoomIn' ).title = zoom_in; btnPageLayoutScrollMode.style.display = 'block'; tab_btnPageLayoutScrollMode.style.display = 'block'; if ( page == 1 ){ btnPageLayoutDocumentOnePage.style.opacity = 0.5; tab_btnPageLayoutDocumentOnePage.style.opacity = 0.5; } else if ( page == 2 ){ btnPageLayoutDocumentTwoPage.style.opacity = 0.5; tab_btnPageLayoutDocumentTwoPage.style.opacity = 0.5; } else if ( page == 3 ) { btnPageLayoutDocumentThreePage.style.opacity = 0.5; tab_btnPageLayoutDocumentThreePage.style.opacity = 0.5; } viewer.yex.api.setPageLayoutDocumentNPage( page ); } } function exPrint() { if (launchPdfURL.indexOf('https') > -1) { this.ezpdf = new ezPDFWFLauncher(ezPDFWSPrinter, ezPDFData, 1); } else { this.ezpdf = new ezPDFWFLauncher(ezPDFWSPrinter, ezPDFData, 0); } setTimeout(function(){checkAndPrint();}, 100); } function checkAndPrint(tryCount) { /* if (!this.ezpdf.isReadyLaunch()) { if (tryCount == undefined) { tryCount = 1; } if (tryCount < 3) { setTimeout(function(){checkAndPrint(++tryCount);}, 3000); return; } } else { */ // var pdf = encodeURIComponent(launchPdfURL); var pdf = launchPdfURL; if (webviewer.yex.libConfig.CHECK_PERMISSION) { webviewer.yex.api.isPrintable(function () { webviewer.yex.api.addPrintCount(function(){ //ezpdfPrint.SetPrintRange(5,7); this.ezpdf.SetPDF(pdf, false); this.ezpdf.SetSecData( 1 ); this.ezpdf.Launch(true); }) }, function() { webviewer.yex.uis.alert(webviewer.yex.msg.get('문서인쇄권한이없습니다')); }); } else { //ezpdfPrint.SetPrintRange(5,7); this.ezpdf.SetSecData( 1 ); this.ezpdf.SetPDF(pdf, false); this.ezpdf.Launch(true); } /*}*/ } var ezpdfPrint; function readyPrintEx() { ezpdfPrint = new ezPDFPrinterLauncher(ezPDFPrintEx, ezPDFData); setTimeout(function(){runPrintEx();}, 100); } function runPrintEx() { var pdf = launchPdfURL; ezpdfPrint._ezpdfmodule._installPage = "/wv/ezpdf/print/ezPDFSetupNonax.html"; // console.log('ezpdfPrint._installPage:' + ezpdfPrint._ezpdfmodule._installPage); // console.log('printRange:' + webviewer.yex.api.getCurrentPage() + '~' + (webviewer.yex.api.getCurrentPage() + 2)); if (webviewer.yex.libConfig.CHECK_PERMISSION) { webviewer.yex.api.isPrintable(function () { webviewer.yex.api.addPrintCount(function(){ //ezpdfPrint.SetPrintRange(webviewer.yex.api.getCurrentPage(), webviewer.yex.api.getCurrentPage() + 2); ezpdfPrint.SetPrintPDF(pdf); ezpdfPrint.Launch(true); }) }, function() { webviewer.yex.uis.alert(webviewer.yex.msg.get('문서인쇄권한이없습니다')); }); } else { ezpdfPrint.SetPrintPDF(pdf); ezpdfPrint.Launch(true); } } var webviewer; //뷰어 콜백 처리. window.onWebViewerReady = function( viewer ) { webviewer = viewer; //if (contentId == '') { launchPdfURL = viewer.yex.libConfig.getLaunchPdfURL(); //} btnPageLayoutDocumentOnePage.style.opacity = 0.5; tab_btnPageLayoutDocumentOnePage.style.opacity = 0.5; /*체크박스 이미지*/ //페이지 열리때 checkbox초기화 $( 'input[type=checkbox]' ).prop( 'checked', false ); /* CheckBox image */ $('.chkbox img').click( function() { //체크 박스의 체크 유무를 확인하기 위해 checked값을 얻어옴. var isChecked = $( this ).parent().find( 'input[type=checkbox]' ).prop( 'checked' ); //console.log(isChecked); //boolean값으로 true, false //현재의 체크 상태의 반대값을 저장( true이면 false로 ) isChecked = !isChecked; //체크박스의 체크상태와 체크박스 이미지 변경 $( this ).parent().find( 'input[type=checkbox]' ).prop( 'checked', isChecked ); $( this ).attr( 'src', '/wv/ezpdf/images/chkbox_' + isChecked + '.png' ); var checkbox_id = $( this ).parent().find( 'input[type=checkbox]' ).attr( 'id' ); if ( checkbox_id == 'cbSearchCaseSensitive' || checkbox_id == 'tab_cbSearchCaseSensitive' ) { viewer.yex.api.searchSetCaseSensitive( isChecked ); } if ( checkbox_id == 'cbSearchHighlightAll' || checkbox_id == 'tab_cbSearchHighlightAll' ) { viewer.yex.api.searchSetHighlightAll( isChecked ); } }); //기본메뉴는 '보기'로 설정. tab01.style.display = 'block'; //보기 document.getElementById( 'tab_btnToggleSideBarThumnailList' ).addEventListener( 'click', function( e ) { if ( !viewer.yex.api.isSideBarOpenedAsThumbnailList() ) { viewer.yex.api.openSideBarThumbnailList(); } else { viewer.yex.api.closeSideBar(); } } ); document.getElementById( 'tab_btnPageLayoutDocumentOnePage' ).addEventListener( 'click', function( e ) { viewer.yex.api.setPageLayoutDocumentNPage( 1 ); changePageLayout( 1 ); } ); document.getElementById( 'tab_btnPageLayoutDocumentTwoPage' ).addEventListener( 'click', function( e ) { viewer.yex.api.setPageLayoutDocumentNPage( 2 ); changePageLayout( 2 ); } ); document.getElementById( 'tab_btnPageLayoutDocumentThreePage' ).addEventListener( 'click', function( e ) { viewer.yex.api.setPageLayoutDocumentNPage( 3 ); changePageLayout( 3 ); } ); document.getElementById( 'tab_btnPageLayoutBook' ).addEventListener( 'click', function( e ) { viewer.yex.api.setPageLayoutBook(); changePageLayout( 'bookMode' ); } ); document.getElementById( 'tab_btnPageLayoutScrollMode' ).addEventListener( 'click', function( e ) { tab_btnPageLayoutScrollMode.style.opacity = 1; viewer.yex.api.togglePageLayoutScrollMode(); } ); //15.09.11.프리젠테이션 모드 추가. document.getElementById( 'tab_btnPageLayoutPresentationMode' ).addEventListener( 'click', function( e ) { presentationMode = true; $( '#topArea' ).addClass( 'hidden' ); //프리젠테이션 모드의 경우, with tool 화면으로 돌아갈수 있는 버튼 활성화 시키기 presentationModeOff.style.display = 'block'; container.style.padding = '0px'; //16.03.24. 모바일의 경우, 안드로이드에서 스크롤모드 안되므로 페이지 이동버튼 필요 $( '#page' ).addClass( 'hidden' ); if ( isMobile ){ page_pt.style.display = 'block' ; } var viewerFrame = document.getElementById( 'viewerFrame' ); var topArea = document.getElementById( 'header' ); viewerFrame.style.height = ( window.innerHeight - topArea.getBoundingClientRect().height ) + 'px'; btnPageLayoutPresentationMode.style.opacity = 1; tab_btnPageLayoutPresentationMode.style.opacity = 1; } ); viewer.yex.api.callback.onPDFReady = function() { document.getElementById( 'tbTotalPages' ).value = viewer.yex.api.getTotalPageCount(); //로딩될때 로그인 확인 viewer.yex.api.promiseGetLoginedCurrentUserName().then( function( userName ) { var btn = document.getElementById( 'btnUserAction' ); while ( btn.firstChild ) { btn.removeChild( btn.firstChild ); } btn.appendChild( document.createTextNode( userName ? userName : user_login ) ); var tab_btn = document.getElementById( 'tab_btnUserAction' ); while ( tab_btn.firstChild ) { tab_btn.removeChild( tab_btn.firstChild ); } tab_btn.appendChild( document.createTextNode( userName ? userName : user_login ) ); } ); }; viewer.yex.api.callback.onPageChange = function( viewer ) { document.getElementById( 'tbCurrentPage' ).value = viewer.yex.api.getCurrentPage(); /* if (!viewer.yex.pls.scrollable) { viewer.yex.api.setCurrentScaleValue(viewer.yex.api.getCurrentScaleValue()); } */ }; viewer.yex.api.callback.onScaleChange = function( viewer ) { var scaleValue = viewer.yex.api.getCurrentScaleValue(); var sel = document.getElementById( 'selCurrentScale' ); var opts = sel.options; var consume = false; for ( var i = 0, ii = opts.length; i< ii; i++ ) { if ( opts[ i ].value == scaleValue ) { consume = true; sel.value = scaleValue; var d = document.getElementById( 'divZoomDisplay' ); while ( d.firstChild ) { d.removeChild( d.firstChild ); } if ( scaleValue == 'auto' ) { d.appendChild( document.createTextNode(page_scale_auto) ); } else if ( scaleValue == 'page-fit' ) { d.appendChild( document.createTextNode(page_scale_fit) ); } else if (scaleValue == 'page-width') { d.appendChild( document.createTextNode(page_scale_width) ); } else { d.appendChild( document.createTextNode( parseInt( parseFloat( scaleValue ) * 100 ) + '%' ) ); } break; } } if ( !consume ) { if ( opts.length > 11 ) { opts[ 11 ].textContent = parseInt( parseFloat( scaleValue ) * 100 ) + '%'; opts[ 11 ].value = scaleValue; } else { var newOpt = document.createElement( 'option' ); newOpt.textContent = parseInt( parseFloat( scaleValue ) * 100 ) + '%'; newOpt.value = scaleValue; sel.appendChild( newOpt ); } sel.value = scaleValue; var d = document.getElementById( 'divZoomDisplay' ); while ( d.firstChild ) { d.removeChild( d.firstChild ); } d.appendChild( document.createTextNode( parseInt( parseFloat( scaleValue ) * 100 ) + '%' ) ); } }; // 뷰어 컨트롤 메뉴 처리 //15.07.22.보기 document.getElementById( 'btnToggleSideBarThumnailList' ).addEventListener( 'click', function( e ) { if ( !viewer.yex.api.isSideBarOpenedAsThumbnailList() ) { viewer.yex.api.openSideBarThumbnailList(); } else { viewer.yex.api.closeSideBar(); } } ); document.getElementById( 'btnPageLayoutDocumentOnePage' ).addEventListener( 'click', function( e ) { pageLayout = 1; changePageLayout(pageLayout); } ); document.getElementById( 'btnPageLayoutDocumentTwoPage' ).addEventListener( 'click', function( e ) { pageLayout = 2; changePageLayout(pageLayout); } ); document.getElementById( 'btnPageLayoutDocumentThreePage' ).addEventListener( 'click', function( e ) { pageLayout = 3; changePageLayout(pageLayout); } ); document.getElementById( 'btnPageLayoutBook' ).addEventListener( 'click', function( e ) { pageLayout = 'bookMode'; changePageLayout(pageLayout); } ); document.getElementById( 'btnPageLayoutScrollMode' ).addEventListener( 'click', function( e ) { btnPageLayoutScrollMode.style.opacity = 1; viewer.yex.api.togglePageLayoutScrollMode(); } ); document.getElementById( 'btnPageLayoutPresentationMode' ).addEventListener( 'click', function( e ) { presentationMode = true; $( '#topArea' ).addClass( 'hidden' ); //프리젠테이션 모드의 경우, with tool 화면으로 돌아갈수 있는 버튼 활성화 시키기 presentationModeOff.style.display = 'block'; container.style.padding = '0px'; //16.03.24. 모바일의 경우, 안드로이드에서 스크롤모드 안되므로 페이지 이동버튼 필요 $( '#page' ).addClass( 'hidden' ); if( isMobile ){ page_pt.style.display = 'block'; } var viewerFrame = document.getElementById( 'viewerFrame' ); var topArea = document.getElementById( 'header' ); viewerFrame.style.height = ( window.innerHeight - topArea.getBoundingClientRect().height ) + 'px'; btnPageLayoutPresentationMode.style.opacity = 1; tab_btnPageLayoutPresentationMode.style.opacity = 1; } ); //15.09.11.전체화면에서 -> 이전화면(tool bar있는 화면)으로 돌아가기 document.getElementById( 'presentationModeOff' ).addEventListener( 'click', function( e ) { presentationMode = false; $( '#topArea' ).removeClass( 'hidden' ); presentationModeOff.style.display = 'none'; container.style.padding = '78px 0 0'; //16.03.23. 프리젠테이션모드에서 기본모드로 돌아오면 페이지관련 부분 활성화되어야함. $('#page').removeClass( 'hidden' ); if( isMobile ){ page_pt.style.display='none'; } var viewerFrame = document.getElementById( 'viewerFrame' ); var topArea = document.getElementById( 'header' ); viewerFrame.style.height = ( window.innerHeight - topArea.getBoundingClientRect().height ) + 'px'; }); //15.07.22.검색. /* document.getElementById( 'tbSearchKeyword' ).addEventListener( 'input', function( e ){ viewer.yex.api.searchSetKeyword( this.value ); } ); */ document.getElementById( 'tbSearchKeyword' ).addEventListener( 'input', function( e ) { //alert("검색"); if(this.value == ""){ var keyword = fuTxtValidation(this.value); viewer.yex.api.searchSetKeyword( keyword ); //viewer.yex.api.searchSetKeyword( this.value ); } } ); document.getElementById( 'tbSearchKeyword' ).addEventListener( 'keypress', function( e ) { if(e.keyCode == 13){ //Enter 친 경우, //viewer.yex.api.searchSetKeyword( this.value ); var keyword = fuTxtValidation(this.value); viewer.yex.api.searchSetKeyword( keyword ); viewer.yex.api.callback.onSearchNotFound = function(){ viewer.yex.api.alert( alert_search_no_result + " : " + keyword ); }; } } ); document.getElementById( 'cbSearchCaseSensitive' ).addEventListener( 'change', function( e ) { viewer.yex.api.searchSetCaseSensitive( this.checked ); } ); document.getElementById( 'cbSearchHighlightAll' ).addEventListener( 'change', function( e ) { viewer.yex.api.searchSetHighlightAll( this.checked ); } ); document.getElementById( 'btnSearchPrev' ).addEventListener( 'click', function( e ) { viewer.yex.api.searchPrev(); } ); document.getElementById( 'btnSearchNext' ).addEventListener( 'click', function( e ) { viewer.yex.api.searchNext(); } ); if (false ) { //15.07.22.주석 document.getElementById( 'btnToggleSideBarAnnotationList' ).addEventListener( 'click', function( e ) { if ( !viewer.yex.api.isSideBarOpenedAsAnnotationList() ) { viewer.yex.api.openSideBarAnnotationList(); } else { viewer.yex.api.closeSideBar(); } } ); document.getElementById( 'btnAnnotInk' ).addEventListener( 'click', function( e ) { viewer.yex.api.activateAnnotationModeFreehand(); } ); document.getElementById( 'btnAnnotLine' ).addEventListener( 'click', function( e ) { viewer.yex.api.activateAnnotationModeLine(); } ); document.getElementById( 'btnAnnotCircle' ).addEventListener( 'click', function( e ) { viewer.yex.api.activateAnnotationModeCircle(); } ); document.getElementById( 'btnAnnotSquare' ).addEventListener( 'click', function( e ) { viewer.yex.api.activateAnnotationModeSquare(); } ); document.getElementById( 'btnAnnotHighlight' ).addEventListener( 'click', function( e ) { viewer.yex.api.activateAnnotationModeHighlight(); } ); document.getElementById( 'btnAnnotStrikeOut' ).addEventListener( 'click', function( e ) { viewer.yex.api.activateAnnotationModeStrikeOut(); } ); document.getElementById( 'btnAnnotUnderline' ).addEventListener( 'click', function( e ) { viewer.yex.api.activateAnnotationModeUnderline(); } ); document.getElementById( 'btnAnnotStickyNote' ).addEventListener( 'click', function( e ) { viewer.yex.api.activateAnnotationModeStickyNote(); } ); //15.09.10. 텍스트 박스 추가. document.getElementById( 'btnAnnotTextBox' ).addEventListener( 'click', function( e ) { viewer.yex.api.activateAnnotationModeTextBox(); } ); } //15.07.22.도구 //alert(isMobile); if( !isMobile ){ document.getElementById( 'btnHandTool' ).addEventListener( 'click', function( e ) { btnHandTool.style.opacity = 1; tab_btnHandTool.style.opacity = 1; viewer.yex.api.toggleHandTool(); } ); } document.getElementById( 'btnRotateCW' ).addEventListener( 'click', function( e ) { btnRotateCW.style.opacity = 1; viewer.yex.api.rotatePageCW(); } ); document.getElementById( 'btnRotateCCW' ).addEventListener( 'click', function( e ) { btnRotateCCW.style.opacity = 1; viewer.yex.api.rotatePageCCW(); } ); if (false ) { document.getElementById( 'btnPrint' ).addEventListener( 'click', function( e ) { if ('false' == 'true') { btnPrint.style.opacity = 1; loadJavascript("/wv/ezpdf/print/js/ezPDFPrint.js", readyPrintEx, "utf-8"); } else { btnPrint.style.opacity = 1; //15.09.25. 뷰어쪽만 인쇄되도록 포커스 잡기 viewer.focus(); viewer.yex.api.print(); } } ); } if (false ) { document.getElementById( 'btnDownload' ).addEventListener( 'click', function( e ) { btnDownload.style.opacity = 1; viewer.yex.api.download(); //viewer.yex.api.downloadPDFWithAnnot(); } ); } document.getElementById( 'btnToggleSideBarOutlineList' ).addEventListener( 'click', function( e ) { if ( !viewer.yex.api.isSideBarOpenedAsOutlineList() ) { viewer.yex.api.openSideBarOutlineList(); //viewer.yex.api.openSideBarOutlineListIfExists(); } else { viewer.yex.api.closeSideBar(); } } ); document.getElementById( 'btnToggleSideBarAttachmentList' ).addEventListener( 'click', function( e ) { if ( !viewer.yex.api.isSideBarOpenedAsAttachmentList() ) { viewer.yex.api.openSideBarAttachmentList(); } else { viewer.yex.api.closeSideBar(); } } ); //페이지 document.getElementById( 'btnGotoPagePrev' ).addEventListener( 'click', function( e ) { viewer.yex.api.gotoPagePrevious(); } ); document.getElementById( 'btnGotoPagePrevMobile' ).addEventListener( 'click', function( e ) { viewer.yex.api.gotoPagePrevious(); } ); document.getElementById( 'tbCurrentPage' ).addEventListener( 'change', function( e ) { viewer.yex.api.gotoPage( this.value ); } ); //15.08.19.페이지 직접이동 /* document.getElementById( 'tbCurrentPage' ).addEventListener( 'input', function( e ) { var page = parseInt( this.value ); if( page > 0 && page<= viewer.yex.api.getTotalPageCount() ){ viewer.yex.api.gotoPage( page ); } //console.log("page : " + page); } ); //15.09.30. input에서 blur상태가 될때, document.getElementById( 'tbCurrentPage' ).addEventListener( 'blur', function( e ) { this.value = viewer.yex.api.getCurrentPage(); } ); */ document.getElementById( 'btnGotoPageNext' ).addEventListener( 'click', function( e ) { viewer.yex.api.gotoPageNext(); } ); document.getElementById( 'btnGotoPageNextMobile' ).addEventListener( 'click', function( e ) { viewer.yex.api.gotoPageNext(); } ); document.getElementById( 'btnZoomOut' ).addEventListener( 'click', function( e ) { viewer.yex.api.zoomOut(); } ); document.getElementById( 'selCurrentScale' ).addEventListener( 'change', function( e ) { viewer.yex.api.setCurrentScaleValue( this.value ); } ); document.getElementById( 'btnZoomIn' ).addEventListener( 'click', function( e ) { viewer.yex.api.zoomIn(); } ); //사용자탭 활성화 되어 있는 경우, document.getElementById( 'btnContentsList' ).addEventListener( 'click', function( e ) { btnContentsList.style.opacity = 1; tab_btnContentsList.style.opacity = 1; changePageLayout( 1 ); viewer.yex.api.uiDefaultContentsList(); } ); document.getElementById( 'btnUserAction' ).addEventListener( 'click', function( e ) { btnUserAction.style.opacity = 1; tab_btnUserAction.style.opacity = 1; viewer.yex.api.uiDefaultUserAction( function( userName ) { var btn = document.getElementById( 'btnUserAction' ); while( btn.firstChild ){ btn.removeChild( btn.firstChild ); } btn.appendChild( document.createTextNode( userName ? userName : user_login ) ); } ); } ); document.getElementById( 'help' ).addEventListener( 'click', function( e ) { //웹뷰어 사용설명서 PDF 새창으로 띄어주기 help.style.opacity = 1; tab_help.style.opacity = 1; //페이지위에 뜨는거... 수정해야함.. window.open('./help.jsp?contentId=657a504446205765627669657765725f55736572204d616e75616c5f32303135313031355f76312e302e706466&lang='+language, '웹뷰어 사용자 설명서', 'width=800, height=800, toolbar=no, menubar=no, scrollbars=no, resizable=yes' ); //window.open('../ezpdfwebviewer/viewer.jsp?contentId=657a504446205765627669657765725f55736572204d616e75616c5f32303135313031355f76312e302e706466&optNoUi=true', '웹뷰어 사용자 설명서', 'width=800, height=800, toolbar=no, menubar=no, scrollbars=no, resizable=yes' ); //window.open('./customLayout.jsp?contentId=sample2.pdf&optNoUi=true', '웹뷰어 사용 설명서', 'width=800, height=800, toolbar=no, menubar=no, scrollbars=no, resizable=yes' ); } ); document.getElementById( 'programInfo' ).addEventListener( 'click', function( e ) { //프로그램 정보 alert창으로 띄어주기. programInfo.style.opacity = 1; popup.style.display = 'block'; } ); if (false ) { //즐겨찾기 document.getElementById( 'nav_btnAnnotInk' ).addEventListener( 'click', function( e ) { viewer.yex.api.activateAnnotationModeFreehand(); } ); document.getElementById( 'nav_btnAnnotHighlight' ).addEventListener( 'click', function( e ) { viewer.yex.api.activateAnnotationModeHighlight(); } ); document.getElementById( 'nav_btnAnnotSquare' ).addEventListener( 'click', function( e ) { viewer.yex.api.activateAnnotationModeSquare(); } ); document.getElementById( 'nav_btnAnnotStickyNote' ).addEventListener( 'click', function( e ) { viewer.yex.api.activateAnnotationModeStickyNote(); } ); document.getElementById( 'nav_btnToggleSideBarAnnotationList' ).addEventListener( 'click', function( e ) { if ( !viewer.yex.api.isSideBarOpenedAsAnnotationList() ) { viewer.yex.api.openSideBarAnnotationList(); } else { viewer.yex.api.closeSideBar(); } } ); } //***************480인 경우, //15.07.27. 상태값 체크. viewer.yex.api.callback.onAnnotationModeChange = function( viewer ) { if (false ) { if ( viewer.yex.api.getAnnotationMode() == 'Ink' ) { btnAnnotInk.style.opacity = 0.5; tab_btnAnnotInk.style.opacity = 0.5; nav_btnAnnotInk.style.opacity = 0.5; } else if ( viewer.yex.api.getAnnotationMode() == 'Line' ) { btnAnnotLine.style.opacity = 0.5; tab_btnAnnotLine.style.opacity = 0.5; } else if ( viewer.yex.api.getAnnotationMode() == 'Circle' ) { btnAnnotCircle.style.opacity = 0.5; tab_btnAnnotCircle.style.opacity = 0.5; } else if ( viewer.yex.api.getAnnotationMode() == 'Square' ) { btnAnnotSquare.style.opacity = 0.5; tab_btnAnnotSquare.style.opacity = 0.5; nav_btnAnnotSquare.style.opacity = 0.5; } else if ( viewer.yex.api.getAnnotationMode() == 'Highlight' ) { btnAnnotHighlight.style.opacity = 0.5; tab_btnAnnotHighlight.style.opacity = 0.5; nav_btnAnnotHighlight.style.opacity = 0.5; } else if ( viewer.yex.api.getAnnotationMode() == 'StrikeOut' ) { btnAnnotStrikeOut.style.opacity = 0.5; tab_btnAnnotStrikeOut.style.opacity = 0.5; } else if ( viewer.yex.api.getAnnotationMode() == 'Underline' ) { btnAnnotUnderline.style.opacity = 0.5; tab_btnAnnotUnderline.style.opacity = 0.5; } else if ( viewer.yex.api.getAnnotationMode() == 'Text' ) { btnAnnotStickyNote.style.opacity = 0.5; tab_btnAnnotStickyNote.style.opacity = 0.5; nav_btnAnnotStickyNote.style.opacity = 0.5; } else if ( viewer.yex.api.getAnnotationMode() == 'FreeText' ) { btnAnnotTextBox.style.opacity = 0.5; tab_btnAnnotTextBox.style.opacity = 0.5; } else { btnAnnotInk.style.opacity = 1; btnAnnotLine.style.opacity = 1; btnAnnotCircle.style.opacity = 1; btnAnnotSquare.style.opacity = 1; btnAnnotHighlight.style.opacity = 1; btnAnnotStrikeOut.style.opacity = 1; btnAnnotUnderline.style.opacity = 1; btnAnnotStickyNote.style.opacity = 1; btnAnnotTextBox.style.opacity = 1; //tab_인 경우 tab_btnAnnotInk.style.opacity = 1; tab_btnAnnotLine.style.opacity = 1; tab_btnAnnotCircle.style.opacity = 1; tab_btnAnnotSquare.style.opacity = 1; tab_btnAnnotHighlight.style.opacity = 1; tab_btnAnnotStrikeOut.style.opacity = 1; tab_btnAnnotUnderline.style.opacity = 1; tab_btnAnnotStickyNote.style.opacity = 1; tab_btnAnnotTextBox.style.opacity = 1; //nav_인 경우 nav_btnAnnotInk.style.opacity = 1; nav_btnAnnotSquare.style.opacity = 1; nav_btnAnnotHighlight.style.opacity = 1; nav_btnAnnotStickyNote.style.opacity = 1; //viewer.yex.api.closeSideBar(); } } //console.log( 'annotation mode change : ' + viewer.yex.api.getAnnotationMode() ); }; viewer.yex.api.callback.onSideBarSwitch = function( viewer ) { if(viewer.yex.api.isSideBarOpenedAsThumbnailList() == true) { btnToggleSideBarThumnailList.style.opacity = 0.5; if (false ) { btnToggleSideBarAnnotationList.style.opacity = 1; } btnToggleSideBarOutlineList.style.opacity = 1; btnToggleSideBarAttachmentList.style.opacity = 1; //tab_인경우, tab_btnToggleSideBarThumnailList.style.opacity = 0.5; if (false ) { tab_btnToggleSideBarAnnotationList.style.opacity = 1; } tab_btnToggleSideBarOutlineList.style.opacity = 1; tab_btnToggleSideBarAttachmentList.style.opacity = 1; //nav_인 경우, if (false ) { nav_btnToggleSideBarAnnotationList.style.opacity = 1; } } else if ( viewer.yex.api.isSideBarOpenedAsAnnotationList() == true ) { if (false ) { btnToggleSideBarAnnotationList.style.opacity = 0.5; } btnToggleSideBarThumnailList.style.opacity = 1; btnToggleSideBarOutlineList.style.opacity = 1; btnToggleSideBarAttachmentList.style.opacity = 1; //tab_인경우, if (false ) { tab_btnToggleSideBarAnnotationList.style.opacity = 0.5; } tab_btnToggleSideBarThumnailList.style.opacity = 1; tab_btnToggleSideBarOutlineList.style.opacity = 1; tab_btnToggleSideBarAttachmentList.style.opacity = 1; //nav_인 경우, if (false ) { nav_btnToggleSideBarAnnotationList.style.opacity = 0.5; } } else if ( viewer.yex.api.isSideBarOpenedAsOutlineList() == true ) { btnToggleSideBarOutlineList.style.opacity = 0.5; btnToggleSideBarThumnailList.style.opacity = 1; if (false ) { btnToggleSideBarAnnotationList.style.opacity = 1; } btnToggleSideBarAttachmentList.style.opacity = 1; //tab_인경우, tab_btnToggleSideBarOutlineList.style.opacity = 0.5; tab_btnToggleSideBarThumnailList.style.opacity = 1; if (false ) { tab_btnToggleSideBarAnnotationList.style.opacity = 1; } tab_btnToggleSideBarAttachmentList.style.opacity = 1; //nav_인 경우, if (false ) { nav_btnToggleSideBarAnnotationList.style.opacity = 1; } } else if ( viewer.yex.api.isSideBarOpenedAsAttachmentList() == true ) { btnToggleSideBarAttachmentList.style.opacity = 0.5; btnToggleSideBarThumnailList.style.opacity = 1; if (false ) { btnToggleSideBarAnnotationList.style.opacity = 1; } btnToggleSideBarOutlineList.style.opacity = 1; //tab_인경우, tab_btnToggleSideBarAttachmentList.style.opacity = 0.5; tab_btnToggleSideBarThumnailList.style.opacity = 1; if (false ) { tab_btnToggleSideBarAnnotationList.style.opacity = 1; } tab_btnToggleSideBarOutlineList.style.opacity = 1; //nav_인 경우, if (false ) { nav_btnToggleSideBarAnnotationList.style.opacity = 1; } } else { btnToggleSideBarThumnailList.style.opacity = 1; if (false ) { btnToggleSideBarAnnotationList.style.opacity = 1; } btnToggleSideBarOutlineList.style.opacity = 1; btnToggleSideBarAttachmentList.style.opacity = 1; //tab_인경우, tab_btnToggleSideBarThumnailList.style.opacity = 1; if (false ) { tab_btnToggleSideBarAnnotationList.style.opacity = 1; } tab_btnToggleSideBarOutlineList.style.opacity = 1; tab_btnToggleSideBarAttachmentList.style.opacity = 1; //nav_인 경우, if (false ) { nav_btnToggleSideBarAnnotationList.style.opacity = 1; } viewer.yex.api.closeSideBar(); } }; //15.11.20.search관련 viewer.yex.api.callback.onSearchFound = function() { //검색단어를 찾은경우 }; viewer.yex.api.callback.onSearchPending = function() { //검색 로딩표시 }; /* viewer.yex.api.callback.onSearchNotFound = function() { //검색 결과가 없는 경우, }; viewer.yex.api.callback.onSearchOverDocumentLast = function() { viewer.yex.api.alert( '문서의 마지막을 지났습니다. 처음으로 돌아갑니다.' ); }; viewer.yex.api.callback.onSearchOverDocumentFirst = function() { viewer.yex.api.alert( '문서의 처음을 지났습니다. 마지막으로 돌아갑니다.' ); }; */ viewer.yex.api.callback.onSampleRequest = function( contentId ) { location.href = location.pathname + '?contentId=' + contentId + '&optUser=' + optUser + '&lang=' + language; }; jQuery( $('#tbCurrentPage') ).keyup(function() { this.value = this.value.replace(/[^0-9\.]/g,''); }); function keyboardpageMov(evt) { var cmd = (evt.ctrlKey ? 1 : 0) | (evt.altKey ? 2 : 0) | (evt.shiftKey ? 4 : 0) | (evt.metaKey ? 8 : 0); if (cmd === 0) { // no control key pressed at all. switch (evt.keyCode) { case 38: // up arrow case 37: // left arrow viewer.yex.api.gotoPagePrevious(); break; case 40: // down arrow case 39: // right arrow viewer.yex.api.gotoPageNext(); break; } } } viewer.addEventListener('keydown', function keydown(evt) { keyboardpageMov(evt); }); window.addEventListener('keydown', function keydown(evt) { keyboardpageMov(evt); }); }; //15.10.21. 페이지 이동(입력받은 페이지로 이동) function movePage(){ var viewerFrame = document.getElementById( 'viewerFrame' ); var viewer = viewerFrame.contentWindow || viewerFrame.contentDocument; var page = document.getElementById( 'tbCurrentPage' ).value; page = parseInt( page ); if ( page > 0 && page<= viewer.yex.api.getTotalPageCount() ) { viewer.yex.api.gotoPage( page ); } else { //alert("PDF페이지의 범위가 아닙니다."); document.getElementById( 'tbCurrentPage' ).value = viewer.yex.api.getCurrentPage(); } } //팝업창 닫기 function hidePopup(name){ var popup = document.getElementById(name); popup.style.display = 'none'; } function fuTxtValidation(a) { a = replaceTxt(a, "<", "<"); a = replaceTxt(a, ">", ">"); return a; } function replaceTxt(a, b, c) { return a.split(b).join(c); } </script> <script type="text/javascript"> function disableDevelopMode(body) { body.addEventListener('keydown', function(event) { var keycode = event.keyCode; //console.log('keycode:' + keycode); if(123 == keycode) { event.preventDefault(); } }); } function customLayoutInit() { disableDevelopMode(document.body); } function customLayoutWebviewerInit(viewer) { var iframe = document.getElementsByTagName("iframe")[0]; //console.log(iframe.contentWindow.window.document.body); disableDevelopMode(iframe.contentWindow.window.document.body); } </script> </head> <!--<body style="overflow-y:hidden;" onload="customLayoutInit();">--> <body style="overflow-y:hidden;"> <div id='watermark'></div> <!-- UI Object --> <div id='wrap'> <div id='topArea'> <!-- header S--> <div id='header'> <!-- 메뉴 480 S --> <a href='javascript:void(0)' class='icon'> <div class='ham'> <div class='menui top-menu'></div> <div class='menui mid-menu'></div> <div class='menui bottom-menu'></div> </div> <div class='mn' id='menu_select' data-l10n-id='menu_view'></div> </a> <div class='mobilenav'> <ul> <li id='mobilenav_view'><a href='#' onmousedown='change(tab01)'><p class='icon_view' data-l10n-id='menu_view'></p></a></li> <li id='mobilenav_search'><a href='#' onmousedown='change(tab02)'><p class='icon_search' data-l10n-id='menu_search'></p></a></li> <li id='mobilenav_comment'><a href='#' onmousedown='change(tab03)'><p class='icon_annotate' data-l10n-id='menu_comment'></p></a></li> <li id='mobilenav_tool'><a href='#' onmousedown='change(tab04)'><p class='icon_tool' data-l10n-id='menu_tool'></p></a></li> <li id='mobilenav_user'><a href='#' onmousedown='change(tab05)'><p class='icon_user' data-l10n-id='menu_user'></p></a></li> </ul> </div> <!-- 메뉴 480 E --> <!--즐겨찾기 툴바 - 150729 S--> <div class='menu' id='nav_menu'> <input class='toggle' id='menu' type='checkbox'> <label class='style' for='menu'> <div class='ham_bm'> <span class='ham_bm-item'></span> <span class='ham_bm-item'></span> <span class='ham_bm-item'></span> </div> <script> $('.ham_bm').click(function() { $( this ).toggleClass( 'open' ); }); </script> </label> <a class='tab' href='#' id='nav_btnAnnotInk'><img src='/wv/ezpdf/images/bookmark_annotate_pen.svg' height='16px'></a> <a class='tab' href='#' id='nav_btnAnnotHighlight'><img src='/wv/ezpdf/images/bookmark_annotate_highlighter.svg' height='16px'></a> <a class='tab' href='#' id='nav_btnAnnotSquare'><img src='/wv/ezpdf/images/bookmark_annotate_square.svg' height='16px'></a> <a class='tab' href='#' id='nav_btnAnnotStickyNote'><img src='/wv/ezpdf/images/bookmark_annotate_memo.svg' height='16px'></a> <a class='tab' href='#' id='nav_btnToggleSideBarAnnotationList'><img src='/wv/ezpdf/images/bookmark_annotate_list.svg' height='16px'></a> </div> <!-- 즐겨찾기 툴바 E --> <!-- 메뉴 S --> <div class='tab_face m1'> <ul> <li class='m1'><a href='#' onClick='getPage();'><span class='icon_view' data-l10n-id='menu_view'></span></a> <ul> <li class='s1'><a href='#' id='btnToggleSideBarThumnailList'><div class='m1s1'> </div></a></li> <li class='s2'><a href='#' id='btnPageLayoutDocumentOnePage'><div class='m1s2'> </div></a></li> <li class='s3'><a href='#' id='btnPageLayoutDocumentTwoPage'><div class='m1s3'> </div></a></li> <li class='s4'><a href='#' id='btnPageLayoutDocumentThreePage'><div class='m1s4'> </div></a></li> <li class='s7'><a href='#' id='btnPageLayoutBook'><div class='m1s7'> </div></a></li> <li class='s8'><a href='#' id='btnPageLayoutScrollMode'><div class='m1s8'> </div></a></li> <li class='s9'><a href='#' id='btnPageLayoutPresentationMode'><div class='m1s9'> </div></a></li> <!--<script type='text/javascript'> if(!isMobile){ var str = '<li class='s9'><a href='#' id='btnPageLayoutPresentationMode'><div class='m1s9'> </div></a></li>' document.write( str ); } </script> --> </ul> </li> <li class='m2'><a href='#'><span class='icon_search' data-l10n-id='menu_search'></span></a> <div class='search'> <div class='txt'><input name='' type='search' id='tbSearchKeyword'> <div class='search_pre'><a href='#' id='btnSearchNext'><div class='search_pre_icon'> </div></a></div> <div class='search_next'><a href='#' id='btnSearchPrev'><div class='search_next_icon'> </div></a></div> </div> <div class='wrap_chkbox'> <div class='chkbox'> <input type='checkbox' name='chk' id='cbSearchCaseSensitive'/> <img src='/wv/ezpdf/images/chkbox_false.png' width='22px' height='22px'/> </div> <p data-l10n-id='search_case_sensitive'></p> </div> <div class='wrap_chkbox'> <div class='chkbox'> <input type='checkbox' name='chk' id='cbSearchHighlightAll'/> <img src='/wv/ezpdf/images/chkbox_false.png' width='22px' height='22px'/> </div> <p data-l10n-id='search_all_highlight'></p> </div> </div> </li> <li class='m3' id='menu_annot'><a href='#'><span class='icon_annotate' data-l10n-id='menu_comment'></span></a> <ul> <li class='s1'><a href='#' id='btnToggleSideBarAnnotationList'><div class='m3s1'> </div></a></li> <li class='s10'><a href='#' id='btnAnnotTextBox'><div class='m3s10'> </div></a></li> <li class='s2'><a href='#' id='btnAnnotInk'><div class='m3s2'> </div></a></li> <li class='s3'><a href='#' id='btnAnnotLine'><div class='m3s3'> </div></a></li> <li class='s4'><a href='#' id='btnAnnotCircle'><div class='m3s4'> </div></a></li> <li class='s5'><a href='#' id='btnAnnotSquare'><div class='m3s5'> </div></a></li> <li class='s6'><a href='#' id='btnAnnotHighlight'><div class='m3s6'> </div></a></li> <li class='s7'><a href='#' id='btnAnnotStrikeOut'><div class='m3s7'> </div></a></li> <li class='s8'><a href='#' id='btnAnnotUnderline'><div class='m3s8'> </div></a></li> <li class='s9'><a href='#' id='btnAnnotStickyNote'><div class='m3s9'> </div></a></li> </ul> </li> <li class='m4'><a href='#'><span class='icon_tool' data-l10n-id='menu_tool'></span></a> <ul> <script type="text/javascript"> if( !isMobile ) { var str = "<li class='s1'><a href='#' id='btnHandTool'><div class='m4s1'> </div></a></li>"; document.write( str ); } </script> <!--<li class='s1'><a href='#' id='btnHandTool'><div class='m4s1'> </div></a></li> --> <li class='s2'><a href='#' id='btnRotateCW'><div class='m4s2'> </div></a></li> <li class='s3'><a href='#' id='btnRotateCCW'><div class='m4s3'> </div></a></li> <script type="text/javascript"> if (false ) { var str = "<li class='s4'><a href='#' id='btnPrint'><div class='m4s4'> </div></a></li>"; document.write( str ); } if (false ) { var str = "<li class='s5'><a href='#' id='btnDownload'><div class='m4s5'> </div></a></li>"; document.write( str ); } </script> <li class='s6'><a href='#' id='btnToggleSideBarOutlineList'><div class='m4s6'> </div></a></li> <li class='s7'><a href='#' id='btnToggleSideBarAttachmentList'><div class='m4s7'> </div></a></li> </ul> </li> <li class='m5' id='userMenu'><a href='#'><span class='icon_user' data-l10n-id='menu_user'></span></a> <ul> <li class='s1'><a href='#' data-l10n-id='user_sample_list' id='btnContentsList'></a></li> <li class='s2'><a href='#' data-l10n-id='user_login' id='btnUserAction'></a></li> <li class='s3'><a href='#' data-l10n-id='user_help' id='help'></a></li> <li class='s4'><a href='#' data-l10n-id='user_program_info' id='programInfo'></a><div id='popup' style='display:none; background: #666666; border-image: none; left: 10px; top: 25px; width: 328px; height: 170px; text-align: center; padding-top: 2px; position: absolute; z-index: 100;'><img src='/wv/ezpdf/images/programInfo.jpg'/><div style='padding: 5px 5px 0px 0px; height: 20px; text-align: right; color: #ffffff;'> <script type="text/javascript"> document.write(popup_close); </script> <input type='checkbox' onclick="hidePopup('popup'); return false;" /></div></div> </li> </ul> </li> </ul> </div> <!-- 메뉴 E --> <!--셀렉트메뉴 S--> <div class='zoom' id='zoom'> <div class='zoom_out' id='btnZoomOut'><a href='#'><div class='zoom_out_icon'> </div></a></div> <select id='selCurrentScale'> <option value='auto' data-l10n-id='page_scale_auto'></option> <option value='page-fit' data-l10n-id='page_scale_fit'></option> <option value='page-width' data-l10n-id='page_scale_width'></option> <option value='0.5'>50%</option> <option value='0.75'>75%</option> <option value='1'>100%</option> <option value='1.25'>125%</option> <option value='1.5'>150%</option> <option value='2'>200%</option> <option value='4'>400%</option> <option value='6'>600%</option> </select> <div id='divZoomDisplay' class='select_box' data-l10n-id='page_scale_auto'></div> <div class='zoom_in' id='btnZoomIn'><a href='#'><div class='zoom_in_icon'> </div></a></div> </div> <!--셀렉트메뉴 E--> <!-- 메뉴 480 서브메뉴 내용 S --> <div id='tab01' class='sub_01'> <ul> <li class='s1' id='tab_btnToggleSideBarThumnailList'><a href='#'><div class='m1s1'> </div></a></li> <li class='s2' id='tab_btnPageLayoutDocumentOnePage'><a href='#'><div class='m1s2'> </div></a></li> <li class='s3' id='tab_btnPageLayoutDocumentTwoPage'><a href='#'><div class='m1s3'> </div></a></li> <li class='s4' id='tab_btnPageLayoutDocumentThreePage'><a href='#'><div class='m1s4'> </div></a></li> <li class='s7' id='tab_btnPageLayoutBook'><a href='#'><div class='m1s7'> </div></a></li> <li class='s8' id='tab_btnPageLayoutScrollMode'><a href='#'><div class='m1s8'> </div></a></li> <li class='s9'><a href='#' id='tab_btnPageLayoutPresentationMode'><div class='m1s9'> </div></a></li> <!--<script type="text/javascript"> if(!isMobile){ var str = "<li class='s9'><a href='#' id='tab_btnPageLayoutPresentationMode'><div class='m1s9'> </div></a></li>" document.write( str ); } </script> --> </ul> </div> <div id='tab02' class='sub_02'> <ul> <li class='txt'><input name='' type='search' id='tab_tbSearchKeyword'></li> <li class='search_pre' id='tab_btnSearchNext'><a href='#'><div class='search_pre_icon'> </div></a></li> <li class='search_next' id='tab_btnSearchPrev'><a href='#'><div class='search_next_icon'> </div></a></li> <li class='wrap_chkbox'> <div class='chkbox'> <input type='checkbox' name='chk' id='tab_cbSearchCaseSensitive'/> <img src='/wv/ezpdf/images/chkbox_false.png' width='22px' height='22px'/> </div> <p class='a'> </p> </li> <li class='wrap_chkbox'> <div class='chkbox'> <input type='checkbox' name='chk' id='tab_cbSearchHighlightAll'/> <img src='/wv/ezpdf/images/chkbox_false.png' width='22px' height='22px'/> </div> <p class='b'> </p> </li> </ul> </div> <div id='tab03' class='sub_03'> <ul> <li class='s1' id='tab_btnToggleSideBarAnnotationList'><a href='#'><div class='m3s1'> </div></a></li> <li class='s10' id='tab_btnAnnotTextBox'><a href='#'><div class='m3s10'> </div></a></li> <li class='s2' id='tab_btnAnnotInk'><a href='#'><div class='m3s2'> </div></a></li> <li class='s3' id='tab_btnAnnotLine'><a href='#'><div class='m3s3'> </div></a></li> <li class='s4' id='tab_btnAnnotCircle'><a href='#'><div class='m3s4'> </div></a></li> <li class='s5' id='tab_btnAnnotSquare'><a href='#'><div class='m3s5'> </div></a></li> <li class='s6' id='tab_btnAnnotHighlight'><a href='#'><div class='m3s6'> </div></a></li> <li class='s7' id='tab_btnAnnotStrikeOut'><a href='#'><div class='m3s7'> </div></a></li> <li class='s8' id='tab_btnAnnotUnderline'><a href='#'><div class='m3s8'> </div></a></li> <li class='s9' id='tab_btnAnnotStickyNote'><a href='#'><div class='m3s9'> </div></a></li> </ul> </div> <div id='tab04' class='sub_04'> <ul> <script type="text/javascript"> if( !isMobile ){ var str = "<li class='s1' id='tab_btnHandTool'><a href='#'><div class='m4s1'> </div></a></li>"; document.write( str ); } </script> <!--<li class='s1'><a href='#' id='tab_btnHandTool'><div class='m4s1'> </div></a></li> --> <li class='s2' id='tab_btnRotateCW'><a href='#'><div class='m4s2'> </div></a></li> <li class='s3' id='tab_btnRotateCCW'><a href='#'><div class='m4s3'> </div></a></li> <script type="text/javascript"> if (false ){ var str = "<li class='s4' id='tab_btnPrint'><a href='#'><div class='m4s4'> </div></a></li>"; document.write( str ); } if (false ) { var str = "<li class='s5' id='tab_btnDownload'><a href='#'><div class='m4s5'> </div></a></li>"; document.write( str ); } </script> <li class='s6' id='tab_btnToggleSideBarOutlineList'><a href='#'><div class='m4s6'> </div></a></li> <li class='s7' id='tab_btnToggleSideBarAttachmentList'><a href='#'><div class='m4s7'> </div></a></li> </ul> </div> <div id='tab05' class='sub_05'> <ul> <li class='s1'><a href='#' data-l10n-id='user_sample_list' id='tab_btnContentsList'></a></li> <li class='s2'><a href='#' data-l10n-id='user_login' id='tab_btnUserAction'></a></li> <li class='s3'><a href='#' data-l10n-id='user_help' id='tab_help'></a></li> <li class='s4'><a href='#' data-l10n-id='user_program_info' id='tab_programInfo'></a><div id='mobile_popup' style='display:none; background: #666666; border-image: none; left: -70px; top: 25px; width: 164px; text-align: center; padding-top: 2px; position: absolute; z-index: 100;'><img src='/wv/ezpdf/images/programInfo.jpg' style='width: 162px;'/><div style='padding: 0px 5px 0px 0px; height: 15px; text-align: right; color: #ffffff; font-size: 10px;'> <script type="text/javascript"> document.write(popup_close); </script> <input type='checkbox' onclick="hidePopup('mobile_popup'); return false;"/></div></div> </li> </ul> </div> <!-- 메뉴 480 서브메뉴 내용 E --> </div> <!-- header E --> </div> <!-- topArea E --> <!-- 15.09.07. 하단우측. (전체화면 상태에서는..)전체화면 닫기 툴킷 보여주기 or (아닌경우)전체화면 툴킷 보여주기 --> <div class='full_page' style='display:none; right:17px;' id='presentationModeOff'> <span> <a href='#'><img src='/wv/ezpdf/images/ico_fullscreen_off.png'></a> </span> </div> <div class='page' id='page'> <div class='page_pre' id='btnGotoPagePrev'><a href='#'><div class='page_pre_icon' > </div></a></div> <div class='num_area' id='btnNumArea'><span><input type='text' id='tbCurrentPage' onkeypress='return event.charCode >= 48 && event.charCode<= 57;' onkeydown='javascript: if (event.keyCode == 13) {movePage();}' value='' class='r'/>/<input type='text' disabled='true' id='tbTotalPages' class='l'/></span></div> <div class='page_next' id='btnGotoPageNext'><a href='#'><div class='page_next_icon'> </div></a></div> </div> <div class='page_pt' id='page_pt' style='display:none;'> <div class='page_pt_pre' id='btnGotoPagePrevMobile'><a href='#'><div class='page_pt_pre_icon' > </div></a></div> <div class='page_pt_next' id='btnGotoPageNextMobile'><a href='#'><div class='page_pt_next_icon'> </div></a></div> </div> <!-- container --> <div id='container'> <iframe id='viewerFrame' width='100%' height='1px' allowfullscreen style='border:none; margin-bottom:-7px;' ></iframe> </div> <!-- //container --> </div> <!-- wrap E --> <!-- //UI Object --> </body> </html>