-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.hbs
78 lines (75 loc) · 2.71 KB
/
index.hbs
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 style="height:100%">
<head>
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<link type = "text/css" rel = "stylesheet" href = "css/bootstrap.css" />
<ul class = "nav nav-pills">
<li class="active" style = "width: 25%;"><a href="#" id = Home data-toggle = "tab">Home</a></li>
<li style = "width: 25%;"><a href="#" id = AddTask data-toggle = "tab">Add Task</a></li>
</ul>
<script>
$(document).on("click", "#Home", function(){
window.location = '/';
});
$(document).on("click", "#AddTask", function(){
window.location = '/addtask';
});
</script>
<title>Team Tardis</title>
</head>
<body style="font-family:'Calibri'; text-align: center; height:100%">
<div class="vertical-align-middle">
<h1 style="color:#000000; font-size:30px;">Welcome to your To-Do List</h1>
<ul class="list-group">
<li class="list-group-item" ><a href="#" id= "t0" ></a></li>
<li class="list-group-item" ><a href="#" id= "t1" ></a></li>
<li class="list-group-item" ><a href="#" id= "t2" ></a></li>
<li class="list-group-item" ><a href="#" id= "t3" ></a></li>
<li class="list-group-item" ><a href="#" id= "t4" ></a></li>
</ul>
<script>
$.get("/report", function( records ) {
for(num=0;num<5;num++){
str = '#t' + num;
$(str).append(records[num].name);
}
});
$(document).on("click", "#t0", function(){
$.post("/taskinfo", {idx: 0} );
window.location = '/details';
});
$(document).on("click", "#t1", function(){
$.post("/taskinfo", {idx: 1} );
window.location = '/details';
});
$(document).on("click", "#t2", function(){
$.post("/taskinfo", {idx: 2} );
window.location = '/details';
});
$(document).on("click", "#t3", function(){
$.post("/taskinfo", {idx: 3} );
window.location = '/details';
});
$(document).on("click", "#t4", function(){
$.post("/taskinfo", {idx: 4} );
window.location = '/details';
});
</script>
<button id="addtask" style="background:#428bca; color:#FFFFFF; border-radius:10px; font-size:18px; padding-left: 15px; padding-right: 15px; padding-top: 3px; padding-bottom: 3px;">Add New Task</button>
</div>
<script>
$(document).on("click", "#addtask", function(){
window.location = '/addtask';
});
</script>
<!--<button id="delete" style="background:red; color:#FFFFFF; border-radius:10px; font-size:18px; padding-left: 15px; padding-right: 15px; padding-top: 3px; padding-bottom: 3px;">Remove All Tasks</button>
</div>
<script>
$(document).on("click", "#delete", function(){
$.post("/clear", {_id: 'false'} );
window.location = '/';
});
</script>-->
</body>
</html>