refactor : css파일 삽입코드와 자바스크립트 파일 삽입코드 분리
parent
24c1dfd096
commit
ec76130947
@ -1,27 +0,0 @@
|
||||
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
|
||||
<link rel="shortcut icon" type="image/x-icon" href="${ctx}/resources/image/fims/framework/common/favicon.ico"/>
|
||||
|
||||
<!-- [JS] SheetJS -->
|
||||
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.16.1/xlsx.full.min.js" ></script> -->
|
||||
<script type="text/javascript" src="${ctx}/resources/3rd-party/sheetJS/js/xlsx.full.min.js" ></script>
|
||||
<script type="text/javascript" src="${ctx}/resources/3rd-party/sheetJS/js/FileSaver.min.js" ></script> <!-- [선택]클라이언트 저장기능 필요 시 -->
|
||||
|
||||
<!-- [JS] url -->
|
||||
<script type="text/javascript" src="${ctx}/resources/js/fims/biz/common/fimsApiURL.js"></script>
|
||||
|
||||
<!-- [JS] biz -->
|
||||
<script type="text/javascript" src="${ctx}/resources/js/fims/biz/common/defaultUI.js" ></script>
|
||||
<script type="text/javascript" src="${ctx}/resources/js/fims/biz/common/codeComboData.js"></script>
|
||||
|
||||
<%-- <script type="text/javascript" src="${ctx}/resources/js/fims/framework/cmmn/validator.js"></script> --%>
|
||||
<script type="text/javascript" src="${ctx}/resources/3rd-party/tableExport/js/jspdf.min.js"></script>
|
||||
<script type="text/javascript" src="${ctx}/resources/3rd-party/tableExport/js/html2canvas.min.js"></script>
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,23 @@
|
||||
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
|
||||
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
|
||||
|
||||
<!-- [JS] SheetJS -->
|
||||
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.16.1/xlsx.full.min.js" ></script> -->
|
||||
<script type="text/javascript" src="${ctx}/resources/3rd-party/sheetJS/js/xlsx.full.min.js" ></script>
|
||||
<script type="text/javascript" src="${ctx}/resources/3rd-party/sheetJS/js/FileSaver.min.js" ></script> <!-- [선택]클라이언트 저장기능 필요 시 -->
|
||||
|
||||
<!-- [JS] url -->
|
||||
<script type="text/javascript" src="${ctx}/resources/js/fims/biz/common/fimsApiURL.js"></script>
|
||||
|
||||
<!-- [JS] biz -->
|
||||
<script type="text/javascript" src="${ctx}/resources/js/fims/biz/common/defaultUI.js" ></script>
|
||||
<script type="text/javascript" src="${ctx}/resources/js/fims/biz/common/codeComboData.js"></script>
|
||||
|
||||
<%-- <script type="text/javascript" src="${ctx}/resources/js/fims/framework/cmmn/validator.js"></script> --%>
|
||||
<script type="text/javascript" src="${ctx}/resources/3rd-party/tableExport/js/jspdf.min.js"></script>
|
||||
<script type="text/javascript" src="${ctx}/resources/3rd-party/tableExport/js/html2canvas.min.js"></script>
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,87 @@
|
||||
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
|
||||
|
||||
<script src="${ctx}/resources/3rd-party/sneat/js/helpers.js"></script>
|
||||
<script src="${ctx}/resources/3rd-party/sneat/js/config.js"></script>
|
||||
|
||||
<!-- 부트스트랩 -->
|
||||
<script src="${ctx}/resources/3rd-party/sneat/js/bootstrap.js"></script>
|
||||
|
||||
<!-- 제이쿼리 -->
|
||||
<script src="${ctx}/resources/3rd-party/sneat/libs/jquery/jquery.js"></script>
|
||||
<!-- 제이쿼리 직렬화 -->
|
||||
<script type="text/javascript" src="${ctx}/resources/3rd-party/jquerySerializeObject/js/jquery.serializeObject.js" ></script>
|
||||
<!-- 블록ui -->
|
||||
<script type="text/javascript" src="${ctx}/resources/3rd-party/sneat/libs/block-ui/block-ui.js"></script>
|
||||
|
||||
<!-- [JS/CSS] jquery ui -->
|
||||
<script type="text/javascript" src="${ctx}/resources/3rd-party/jquery-ui/1.13.2/jquery-ui.js" ></script>
|
||||
|
||||
<!-- jquery datepicker custom -->
|
||||
<script type="text/javascript" src="${ctx}/resources/lib/fims/framework/datepicker/datepicker.js" ></script>
|
||||
|
||||
<!-- [JS/CSS] tui Grid -->
|
||||
<script type="text/javascript" src="${ctx}/resources/3rd-party/tuiGrid/js/tui-code-snippet.js" ></script>
|
||||
|
||||
<script type="text/javascript" src="${ctx}/resources/3rd-party/tui/grid/4.21.5/tui-pagination/tui-pagination.js" ></script>
|
||||
<script type="text/javascript" src="${ctx}/resources/3rd-party/tuiGrid/js/xlsx.full.min.js" ></script>
|
||||
|
||||
<script type="text/javascript" src="${ctx}/resources/3rd-party/tui/grid/4.21.5/tui-grid/tui-grid.js" ></script>
|
||||
|
||||
<script type="text/javascript" src="${ctx}/resources/js/fims/framework/cmm/xit-tui-grid.js" ></script>
|
||||
|
||||
<!-- [JS] url -->
|
||||
<script type="text/javascript" src="${ctx}/resources/js/fims/framework/cmm/frwkApiURL.js" ></script>
|
||||
|
||||
<!-- [JS] framework -->
|
||||
<script type="text/javascript" src="${ctx}/resources/js/fims/framework/cmm/XitCmmnUtil.js" ></script>
|
||||
<script type="text/javascript" src="${ctx}/resources/js/fims/framework/cmm/XitExportUtil.js" ></script>
|
||||
<script type="text/javascript" src="${ctx}/resources/js/fims/framework/cmm/cmmPopup.js"></script>
|
||||
<script type="text/javascript" src="${ctx}/resources/js/fims/framework/cmm/cmmDateUtil.js"></script>
|
||||
<script type="text/javascript" src="${ctx}/resources/js/fims/framework/cmm/cmmUtil.js"></script>
|
||||
|
||||
<%--TODO: 보완 필요 : 공통 ajax 호출 모듈과 통합 필요 --%>
|
||||
<script type="text/javascript">
|
||||
var XitIncludeBase = {
|
||||
/* ===================
|
||||
* 초기화 항목
|
||||
* @date 2020.09.15.
|
||||
* @author 박민규
|
||||
=================== */
|
||||
init : function(){
|
||||
XitIncludeBase.inputEnterEventIssue(); //form Tag에 배치된 input["text"] Tag가 한개일때 Event 이슈 처리
|
||||
|
||||
},
|
||||
/* ===================
|
||||
* form에 배치된 input[type="text"] 태그가 한개일 경우 엔터키 입력 시 submit 이슈 처리 함수
|
||||
* @date 2020.09.15.
|
||||
* @author 박민규
|
||||
=================== */
|
||||
inputEnterEventIssue : function(){
|
||||
$('form').each(function(){
|
||||
if($(this).find('input[type="text"]').length==1){
|
||||
//form에 배치된 input[type="text"] 태그가 한개일 경우 엔터키 입력 시 이벤트를 무시하고 onload 되는것을 방지하기 위한 dummy 태그
|
||||
$(this).append('<input type="text" style="display: none;"/>');
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
// FIXME: 디자인 적용 필요
|
||||
// blockUI 적용
|
||||
$(document).ajaxStart(function(handler){
|
||||
const br = '<br/>';
|
||||
const msg = '처리중...';
|
||||
const loading = '<div class="spinner-border text-primary" role="status"></div>';
|
||||
|
||||
$.blockUI({ message : br+msg+br+br+loading+br+br});
|
||||
}).ajaxStop(function(){
|
||||
$.unblockUI();
|
||||
});
|
||||
//초기화
|
||||
XitIncludeBase.inputEnterEventIssue(); //form Tag에 배치된 input["text"] Tag가 한개일때 Event 이슈 처리
|
||||
|
||||
});
|
||||
</script>
|
Loading…
Reference in New Issue