71 lines
2.5 KiB
Plaintext
71 lines
2.5 KiB
Plaintext
|
|
<!doctype html>
|
||
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko" lang="ko">
|
||
|
|
<head>
|
||
|
|
@Html.Partial("./Partial/Head")
|
||
|
|
@RenderSection("stylespre", required: false)
|
||
|
|
@Html.Partial("./Partial/CSS")
|
||
|
|
@RenderSection("styles", required: false)
|
||
|
|
@Html.Partial("./Partial/JS")
|
||
|
|
@RenderSection("scriptsHeader", required: false)
|
||
|
|
<script>
|
||
|
|
$(window).load(function () {
|
||
|
|
$(document).focus();
|
||
|
|
});
|
||
|
|
$(document).ready(function () {
|
||
|
|
$(document).on("keydown", function (e) {
|
||
|
|
if (e.keyCode == 27) {
|
||
|
|
self.close();
|
||
|
|
}
|
||
|
|
});
|
||
|
|
$.each($(".editor-block-css font"), function (i, r) {
|
||
|
|
if ($(r).hasAttr("color")) {
|
||
|
|
$(r).css("color", $(r).hasAttr("color"));
|
||
|
|
}
|
||
|
|
});
|
||
|
|
$(".printNonArea").on("click", "#btnPrint", function () {
|
||
|
|
fnPrint();
|
||
|
|
Prevent(); return false;
|
||
|
|
});
|
||
|
|
$(".printNonArea").on("click", "#btnCancel", function () {
|
||
|
|
self.close();
|
||
|
|
Prevent(); return false;
|
||
|
|
});
|
||
|
|
$(document).on("click", function () {
|
||
|
|
if ($(".printNonArea").css("display") == "none") {
|
||
|
|
$(".printNonArea").css("display", "block");
|
||
|
|
}
|
||
|
|
});
|
||
|
|
$("body").on("click", "#btnPrint", function () {
|
||
|
|
fnPrint();
|
||
|
|
Prevent(); return false;
|
||
|
|
});
|
||
|
|
$("body").on("click", "#btnCancel", function () {
|
||
|
|
self.close();
|
||
|
|
Prevent(); return false;
|
||
|
|
});
|
||
|
|
});
|
||
|
|
var initBody;
|
||
|
|
function fnPrint() {
|
||
|
|
$(".printNonArea").css("display", "none");
|
||
|
|
initBody = document.body.innerHTML;
|
||
|
|
window.onberforeprint = function () {
|
||
|
|
document.body.innerHTML = document.getElementById('print_area').innerHTML;
|
||
|
|
}
|
||
|
|
window.onafterprint = function () {
|
||
|
|
document.body.innerHTML = initBody;
|
||
|
|
}
|
||
|
|
window.print();
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<div class="cerWrap">
|
||
|
|
<div class="cerTitle printNonArea">
|
||
|
|
<h5>@ViewBag.Title</h5>
|
||
|
|
<a href="#" onclick="self.close()">닫기</a>
|
||
|
|
</div>
|
||
|
|
@RenderBody()
|
||
|
|
</div>
|
||
|
|
@RenderSection("scripts", required: false)
|
||
|
|
</body>
|
||
|
|
</html>
|