-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
78 lines (70 loc) · 2.85 KB
/
index.html
File metadata and controls
78 lines (70 loc) · 2.85 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
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
<!DOCTYPE html>
<html ng-app="Todo">
<head>
<meta charset="utf-8" >
<title>Angular 1 Todo App</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.5/angular.min.js">
</script>
<style media="screen">
html,body
{
overflow-x: hidden;
}
.done
{
text-decoration: line-through;
}
.trash
{
margin-top: -30px;
}
</style>
</head>
<body>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">Simple Todo App </a>
</div>
</div>
</nav>
<div class="clearfix"></div>
<div class="row">
<div class="col-sm-3"></div>
<div class="col-sm-6 text-center" >
<div ng-controller="todoController">
<form class="form-inline" name="frm" ng-submit="AddTask()" role="form" method="post">
<div class="form-group" >
<!-- <label for="">Enter Task </label> -->
<input type="text" id="task" ng-model="newtodo" class="form-control" required>
<button type="submit" class="btn btn-primary" id="add" ng-class="{'disabled':frm.$invalid}">Add Task</button>
</div>
</form>
<div class="clearfix">
<br>
<div class="panel panel-default ">
<div class="panel-heading"><h4>Task List</h4>
<button type="button" class="btn btn-danger btn-xs pull-right trash" title="Clear All" ng-click="ClearAll()" ><i class="glyphicon glyphicon-trash"></i></button></li>
</div>
<div class="panel-body text-left">
<ul>
<li ng-repeat="todo in todoList">
<input type="checkbox" ng-model="todo.done" />
<span ng-class="{'done text-muted':todo.done}">{{todo.title}}</span>
<button type="button" class="btn btn-danger btn-xs " ng-click="DeleteTask(todo)" ><i class="glyphicon glyphicon-trash"></i></button></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-3"></div>
</div>
</body>
<script type="text/javascript" src="app.js">
</script>
</html>