/
index.html
107 lines (102 loc) · 4.47 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!DOCTYPE html>
<html>
<head>
<title>Task List With Tasks API Integration</title>
<!-- Required meta tags -->
<meta charset='utf-8'/>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css">
<!--Project CSS-->
<link rel="stylesheet" href="css/styles.css" type="text/css">
<link rel="stylesheet" type="text/css" media="print" href="css/print_styles.css" />
<!--FontAwesome Stylesheet -->
<link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">
<!-- jQuery first, then Tether, then Bootstrap JS. -->
<script src="js/jquery.min.js"></script>
<script src="js/tether.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</head>
<body>
<!-- Main Content Starts Here -->
<div class="jumbotron jumbotron-fluid bg-inverse" id="jumbo-head">
<div class="container">
<div class="row">
<div class="col-6">
<h2 class="display-4" id="main-heading" style="color: cyan">To-Do List</h2>
<p class="small text-muted text-lg-center text-info" style="font-weight: bolder">With Tasks API Integration</p>
</div>
<div class="col-3 d-flex align-items-center">
<div id="user-name" class="text-center"></div>
</div>
<div class="col-3 d-flex">
<div class="d-flex align-items-center">
<button id="authorize-button" style="display: none;" class="btn btn-danger">
<i class="fa fa-google-plus-official" aria-hidden="true" style="font-size: 20px"></i>
 Authorize
</button>
<button id="signout-button" style="display: none;" class="btn btn-warning">
<i class="fa fa-google-plus-official" aria-hidden="true" style="font-size: 20px"></i>
 Sign Out
</button>
</div>
</div>
</div>
</div>
</div>
<!-- Actual Task List Stuff -->
<div class="container" id="main-container">
<div class="row">
<div class="col-10">
<div class="input-group">
<span class="input-group-addon" id="basic-addon1">Task-Name</span>
<input type="text" class="form-control" placeholder="Enter Your Task" aria-describedby="basic-addon1" id="task-input">
</div>
</div>
<div class="col-1 text-center">
<button type="button" class="btn btn-outline-success" id="add-task-button" style="width: 100%;">
<i class="fa fa-plus-circle" aria-hidden="true" ></i>
</button>
</div>
<div class="col-1 text-center">
<button type="button" class="btn btn-outline-danger" style="width: 100%" id="clear-completed-button">
<i class="fa fa-trash" aria-hidden="true"></i>
</button>
</div>
</div>
</div>
<!--List Table Container -->
<div class="container" id="list-container">
<ul class="list-group" id="task-list">
</ul>
</div>
<!-- Print Options -->
<div class="container text-center" id="print-div">
<button class="btn btn-success" onclick="window.print()">Print My List !</button>
</div>
<!-- Footer Content -->
<footer>
<div class="container" id="footer">
<div class="row">
<div class="col-md-10">
<span class="text-muted">
Made With 
<i class="fa fa-heart" aria-hidden="true" id="heart" style="color: #2aabd2"></i>  With
<span class="font-weight-bold">Google Tasks API</span>
 <img src="task-api-logo.png" class="task-api-logo">
</span>
</div>
<div class="col-md-2">
<i class="fa fa-flash text-white" aria-hidden="true"></i><span class="text-white">  By:</span>
<span class="text-muted text-success font-weight-bold"> Abhishek Ranjan </span>
<i class="fa fa-flash text-white" aria-hidden="true"> </i>
</div>
</div>
</div>
</footer>
<!-- Main Content Ends Here -->
<script type="text/javascript" src="js/googleauth.js"></script>
<script async defer src="https://apis.google.com/js/api.js" onload="this.onload=function(){};handleClientLoad();" onreadystatechange="if (this.readyState === 'complete') this.onload()"></script>
<script type="text/javascript" src="js/tasklist.js"></script>
</body>
</html>