-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontentRemove.html
More file actions
32 lines (31 loc) · 1.2 KB
/
Copy pathcontentRemove.html
File metadata and controls
32 lines (31 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Content Remove</title>
</head>
<body>
<form id="remove_form" method="post">
<input type="hidden" id="board_no" name="board_no" value="<%= result.board_no %>">
<input type="hidden" id="board_password" name="board_password" value="<%= result.board_password %>">
</form>
<script>
window.onload = function() {
let pwd = null;
if(window.confirm("정말로 삭제하시겠습니까?")) {
pwd = prompt("암호를 입력하세요.");
if(pwd == board_password.value) {
remove_form.submit();
} else {
alert("암호가 틀렸습니다. 다시 입력하여 주세요.");
location.href = "/remove/<%= result.board_no %>";
}
} else {
window.history.back();
}
};
</script>
</body>
</html>