-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.html
68 lines (48 loc) · 1.87 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!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>Introduction to DOM</title>
<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">
<script src="https://kit.fontawesome.com/be43ae3ae0.js"></script>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!-- TODO ITEM TEMPLATE -->
<template id="todoItemTemplate">
<li data-todo-id="1">
<div class="todo-item">
<p id="todoItemTitle" class="todo-item-title">Learn Javascript</p>
<div class="todo-item-actions">
<button id="todoItemEdit" class="btn btn-secondary"><i class="fas fa-edit"></i></button>
<button id="todoItemRemove" class="btn btn-danger"><i class="fas fa-trash"></i></button>
</div>
</div>
</li>
</template>
<main>
<section>
<div class="container">
<h1>Simple TODO App</h1>
<form id="todoForm" class="add-todo-form">
<div class="form-group">
<label for="todoTitle">What you need to do?</label>
<input type="text" name="title" class="form-control" id="todoTitle" aria-describedby="emailHelp"
placeholder="Eg: Practice coding javascript">
</div>
<button type="submit" class="btn btn-primary">Add to list</button>
</form>
<h2>TODOs:</h2>
<ul id="todoList" class="todo-list">
</ul>
</div>
</section>
</main>
<footer>Created by Po with <i class="fas fa-heart"></i></footer>
<script type="module" src="js/main.js"></script>
<!-- <script src="js/sample-solution.js"></script> -->
</body>
</html>