-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (51 loc) · 2.35 KB
/
index.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
<!doctype html>
<html lang="zh-CN">
<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">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<title>OZLIINEX's TodoList</title>
</head>
<body onload="showTodoList()">
<!-- 主体部分 -->
<div style="margin:30px;">
<h3>OZLIINEX's TodoList <span class="badge bg-secondary" id="num" style="float:right;"></span></h3>
</div>
<div class="list-group" id="divShow" style="margin:30px;"></div>
<div class="addDiv" style="margin:30px;">
<textarea class="form-control" id="textareaAdd" rows="3" placeholder="Add todo things..." onclick="this.focus();this.select()"></textarea>
</br>
<button type="button" class="btn btn-outline-danger" id="btnCleanAll">清空</button>
<input type="checkbox" class="btn-check" id="showModify" onclick="showModifyControl()">
<label class="btn btn-outline-success" for="showModify">编辑</label>
<button type="button" class="btn btn-outline-primary" id="btnAdd" style="float:right;">新增</button>
<div id="addReturn" style="margin-top:20px;"></div>
</div>
<!-- 编辑框 -->
<div class="modal fade" id="windowModify" tabindex="-1" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">更新待办事项</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form>
<div class="mb-3">
<label for="message-text" class="col-form-label">新的内容:</label>
<textarea class="form-control" id="textModify" onclick="this.focus();this.select()"></textarea>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">关闭</button>
<button type="button" class="btn btn-primary" id="btnModify" data-bs-dismiss="modal">更新</button>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script type="text/javascript" src="./function.js"></script>
</body>
</html>