35 lines
2.2 KiB
HTML
Raw Normal View History

2024-10-10 17:37:22 +09:00
<!DOCTYPE html>
2024-10-25 18:28:25 +09:00
<html xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">
2024-10-21 17:25:49 +09:00
<th:block th:fragment="header">
<header>
2024-12-04 18:01:50 +09:00
2024-10-25 18:28:25 +09:00
<div id="top">
2024-12-02 18:32:14 +09:00
<td><h3><a aria-label="goToMain" style="color: white" href="javascript:mainPath()" title="goToMain">HOME</a></h3></td>
2024-10-25 18:28:25 +09:00
</div>
<th:block th:if="${PERMISSION != 'OK'}">
<script th:inline="javascript">
document.addEventListener("DOMContentLoaded", addListen);
function tryLogin() {if(document.getElementById("user_id").value.length > 0 && document.getElementById("user_pw").value.length > 0) {onclickLogin(null,null)}}
function addListen(){document.getElementById("user_id").addEventListener("keyup", ({key}) => {if (key === "Enter")tryLogin()});document.getElementById("user_pw").addEventListener("keyup", ({key}) => {if (key === "Enter")tryLogin()})}
</script>
<div class="user_info" >
<input th:class="login_input" placeholder="ID" enterkeyhint="next" id="user_id" type="text" class="text">
<input th:class="login_input" id="user_pw" placeholder="PW" enterkeyhint="send" type="password" class="text">
</div>
</th:block>
<th:block th:if="${PERMISSION == 'OK'}">
2024-12-04 18:01:50 +09:00
<div></div>
<td><h3><a aria-label="create New Post" style="color: white" href="javascript:gotoWrite()" title="create New Post">create New Post</a></h3></td>
<td><h3><a aria-label="where's Bum" style="color: white" href="javascript:gotoWhere()" title="where's Bum">where's Bum</a></h3></td>
<td><h3><a aria-label="modify & open Post" style="color: white" href="javascript:gotoModify()" title="modify & open Post">modify & open Post</a></h3></td>
<div></div>
<div></div>
<div></div>
2024-12-05 18:15:20 +09:00
<div class="hello_to_user" >
<a aria-label="logout" href="javascript:logout()" title="logout" class="hello_to_user_txt" >what's up~!</a><br/>
<a aria-label="logout" href="javascript:logout()" title="logout" class="hello_to_user_txt" >[[${user_id}]]</a>
2024-12-02 18:32:14 +09:00
</div>
2024-10-25 18:28:25 +09:00
</th:block>
2024-10-21 17:25:49 +09:00
</header>
</th:block>
2024-10-05 19:42:29 +09:00
</html>