-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathview.html
83 lines (79 loc) · 3.16 KB
/
view.html
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Friend List</title>
<link rel="stylesheet" href="my.css">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<body>
<nav class="navbar navbar-expand navbar-dark bg-dark">
<a class="navbar-brand" href="#">Always expand</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExample02" aria-controls="navbarsExample02" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarsExample02">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
</ul>
<form class="form-inline my-2 my-md-0">
<input class="form-control" type="text" placeholder="Search">
</form>
</div>
</nav>
<style>
.td_title{
cursor: pointer;
}
.td_title:hover{
font-size: 1.05em;
font-weight: 600;
}
</style>
<div class="container">
<h1>친구 수정</h1>
<table class="table">
<tbody>
<tr>
<th>이름</th>
<td>김세현</td>
</tr>
<tr>
<th>관계</th>
<td>친구</td>
</tr>
<tr>
<th>전화번호</th>
<td>010-1234-5678</td>
</tr>
<tr>
<th>이메일</th>
<td>[email protected]</td>
</tr>
<tr>
<th>지역</th>
<td>대전</td>
</tr>
<tr>
<th>생일</th>
<td>2003-01-25</td>
</tr>
</tbody>
</table>
<button type="button" onclick="window.location.href='edit.html'" class="btn btn-primary" id="edit">수정</button>
<button type="button" onclick="confirmDelete()" class="btn btn-secondary" id="delete">삭제</button>
<button type="button" onclick="window.location.href='index.html'" class="btn btn-secondary" id="list">목록</button>
<script>
function confirmDelete() {
if (confirm('게시물을 삭제할까요?')) {
alert('삭제되었습니다.')
}
}
</script>
</body>
</html>