This commit is contained in:
lunaticbum
2024-10-21 17:25:49 +09:00
parent 2caf83af1e
commit c4001848fc
19 changed files with 214 additions and 143 deletions
@@ -4,7 +4,7 @@
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/default_layout}"
>
<head>
<th:block layout:fragment="head">
<script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js" crossorigin="anonymous"></script>
<script type="text/javascript" th:src="@{/js/toast-ui-view.js}"></script>
<link th:href="@{/css/toast-ui.css}" rel="stylesheet" />
@@ -49,8 +49,8 @@
console.log(editor.getHTML())
}
</script>
</head>
<div layout:fragment="content" id="content">
</th:block>
<th:block layout:fragment="content" id="content">
<input id="title_layer" />
<div id="editor" ></div>
<div id="hashtag_layer">
@@ -60,5 +60,5 @@
<div id="controll_layer" >
<button onclick="save()">asdsad</button>
</div>
</div>
</th:block>
</html>
@@ -4,8 +4,8 @@
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/default_layout}"
>
<head>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js" crossorigin="anonymous"></script>
<th:block layout:fragment="head" id="head">
<script type="text/javascript" th:src="@{https://code.jquery.com/jquery-3.5.1.min.js}" crossorigin="anonymous"></script>
<script type="text/javascript" th:src="@{/js/toast-ui.js}"></script>
<link th:href="@{/css/blog.css}" rel="stylesheet" />
<link th:href="@{/css/toast-ui.css}" rel="stylesheet" />
@@ -22,7 +22,7 @@
console.log(style.getPropertyValue('--FooterHeight'))
console.log(style.getPropertyValue('--TopHeight'))
var editorHeght = (
document.querySelector('#content').getBoundingClientRect().height -
document.querySelector('#main_layer').getBoundingClientRect().height -
(
Number(style.getPropertyValue('--ButtonHegit').replace("px","") * 3)
+ Number(style.getPropertyValue('--TopHeight').replace("px",""))
@@ -32,7 +32,7 @@
editor = new toastui.Editor({
el: document.querySelector('#editor'),
previewStyle: 'tab',
height: editorHeght+ 'px',
height: editorHeght + 'px',
width:'95%',
theme:'dark',
usageStatistics : false,
@@ -91,18 +91,18 @@
console.log(editor.getHTML())
}
</script>
</head>
<div layout:fragment="content" id="content">
<div class="layer">
<input id="title_layer" />
</th:block>
<th:block layout:fragment="content" id="content">
<div id="main_layer">
<div class="layer">
<input id="title_layer" />
</div>
<div id="editor" ></div>
<div class="layer">
<select > </select>
<input id="hashtag" />
<button id="save" onclick="save()">asdsad</button>
</div>
</div>
<div id="editor" ></div>
<div class="layer">
<select > </select>
<input id="hashtag" />
</div>
<div id="layer" >
<button id="save" onclick="save()">asdsad</button>
</div>
</div>
</th:block>
</html>
@@ -4,7 +4,7 @@
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/default_layout}"
>
<head>
<th:block layout:fragment="head" id="head">
<!--css,JS 추가영역-->
<script th:inline="javascript">
function jopinClick() {
@@ -12,9 +12,9 @@
}
</script>
<script type="text/javascript" th:src="@{/js/user.js}"></script>
</head>
<div layout:fragment="content" id="content">
<table>
</th:block >
<th:block layout:fragment="content">
<table id="main_layer">
<tr>
<td><h2>회원가입</h2></td>
</tr>
@@ -30,5 +30,5 @@
<tr><td><input id="user_email" type="text" class="email"></td></tr>
<tr><td><input type="submit" value="가입하기" class="btn" onclick="jopinClick()"></td></tr>
</table>
</div>
</th:block>
</html>
@@ -4,28 +4,25 @@
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/default_layout}">
<th:block layout:fragment="head">
<head>
<title>Spring Boot</title>
<script th:inline="javascript">
function loginClick() {
onclickLogin([[${enc}]],[[${key}]])
}
</script>
<!--/* css */-->
<link th:href="@{/css/common.css}" rel="stylesheet" />
<script type="text/javascript" th:src="@{/js/common.js}"></script>
<script type="text/javascript" th:src="@{/js/user.js}"></script>
</th:block>
</head>>
<body onload="checkDebug()">
<th:block layout:fragment="header" th:include="@{fragments/header}"></th:block>
<div layout:fragment="content" class="content">
<div layout:fragment="content" id="content">
<table>
<tr><td>아이디</td></tr>
<tr><td><input id="user_id" type="text" class="text"></td></tr>
<tr><td>비밀번호</td></tr>
<tr><td><input id="user_pw" type="password" class="text"></td></tr>
<tr><td><input type="submit" value="가입하기" class="btn" onclick="loginClick()"></td></tr>
<tr><td><input type="submit" value="로그인" class="btn" onclick="loginClick()"></td></tr>
</table>
</div>
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<footer th:fragment="footer">
asdasdasd
</footer>
<th:block th:fragment="footer">
<footer></footer>
</th:block>
</html>
@@ -1,4 +0,0 @@
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<div class="head">
</div>
</html>
@@ -1,6 +1,8 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<header th:fragment="header">
header.html
</header>
<th:block th:fragment="header">
<header>
</header>
</th:block>
</html>
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<th:block th:fragment="includes">
<meta charset="UTF-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Referrer" content="origin"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1"/>
<link th:href="@{/css/common.css}" rel="stylesheet" />
<script type="text/javascript" th:src="@{/js/common.js}"></script>
</th:block>
</html>
@@ -0,0 +1,6 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<th:block th:fragment="title">
<title th:text="${title}">Bum's</title>
</th:block>
</html>
@@ -1,24 +1,24 @@
<!DOCTYPE html>
<html
lagn="ko"
xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
xmlns="http://www.w3.org/1999/html">
<html lagn="ko"
xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
xmlns="http://www.w3.org/1999/html">
<head>
<meta charset="UTF-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link th:href="@{/css/common.css}" rel="stylesheet" />
<script type="text/javascript" th:src="@{/js/common.js}"></script>
<meta name="Referrer" content="origin">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1">
<!-- <th:block layout:replace="fragments/includes" ></th:block>-->
<th:block th:replace="fragments/includes :: includes"></th:block>
<!-- layout:fragment="head" -->
<th:block layout:fragment="head"></th:block>
<!-- <th:block layout:replace="fragments/title" ></th:block> -->
<th:block th:replace="fragments/title :: title"></th:block>
</head>
<body>
<div th:replace="fragments/header :: header"></div>
<div layout:fragment="content"></div>
<div th:replace="fragments/footer :: footer"></div>
<!--<th:block th:replace="fragments/header :: header"></th:block>-->
<th:block th:replace="fragments/header :: header"></th:block>
<!--<th:block layout:fragment="content"></th:block>-->
<th:block layout:fragment="content"></th:block>
<!--<th:block th:replace="fragments/footer :: footer"></th:block>-->
<th:block th:replace="fragments/footer :: footer"></th:block>
</body>
</html>