forked from xyluz/todojs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
49 lines (42 loc) · 2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<!--
Installation of bootstrap and fontawesome
-->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
</head>
<body>
<div class="container">
<div class="display-4">TODO LIST </div>
<div class="alert alert-danger col-6" id="message" style="display: none">
</div>
<div class="text-info col-6">
<input type="text" placeholder="Enter to do item here..." id="todoItem" class="form-control" /> <br />
<button onclick="addItem()" class="btn btn-sm btn-primary">
<span class="fa fa-plus"></span> add new item
</button>
</div>
<div>
<ul class="list-group list-group-flush" id="todoList">
<!-- I left this here to show the template before it was moved to the js function -->
<li class="list-group-item">To do item appear here
<button onclick="deleteItem(this)" class="text-danger" title="delete this todo">
<span class="fa fa-trash"></span>
</button>
<button onclick="completeItem(this)" class="text-success" title="complete this todo">
<span class="fa fa-check"></span>
</button>
</li>
</ul>
</div>
</div>
<!--linking to external javascript-->
<script src="js/todo.js"></script>
</body>
</html>