-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
180 lines (152 loc) · 5.89 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<!doctype html>
<html class="no-js" lang="en-US">
<head>
<!-- Initial meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge,chrome=1">
<meta name="description" content="Let's implement some simple DOM manipulation">
<!-- icons -->
<link rel="apple-touch-icon" href="images/favicon.ico">
<link rel="icon" href="images/icon.png">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Dancing+Script&display=swap" rel="stylesheet">
<!-- Font awesome -->
<link rel="stylesheet" href="css/fonts/fontawesome-free-5.6.3-web/css/all.css">
<!-- Basic css links -->
<link rel="stylesheet" href="css/animate.min.css">
<link rel="stylesheet" href="css/bootstrap4-4-1.min.css">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/mediaquery.css">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<![endif]-->
<title> A simple To-Do App</title>
</head>
<body class="nocopy">
<!--[if lte IE 9]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
<![endif]-->
<section class="header" id="header">
<div class="container-fluid p-0">
<div class="row no-gutters">
<div class="col-md-6 header-container">
<h3 class="main-heading">A Simple To-Do App</h3>
</div>
<div class="col-md-6 to-do-container">
<h4 class="text-center">To-Do List</h4>
<div class="hr mx-auto mb-5 mb-md-0"></div>
<form action="index.html" class="form w-75 mx-auto mt-md-5" id="form">
<div class="form-group">
<input type="text" name="task" id="task" class="form-control" placeholder="What's next?" required>
</div>
<input type="submit" class="btn btn-success mb-5 mb-md-0" name="submit" value="Add task">
</form>
<div class="row no-gutters mt-md-5">
<div class="col-lg-5 mx-auto">
<div class="incomplete-list-container">
<h5 class="text-center">Incompleted Tasks</h5>
<ul id="incomplete-task">
</ul>
<button class = "btn btn-success ml-5 mt-5" id="clearbtn" onclick="submitCompletedTask()">Clear Completed Task</button>
</div>
</div>
<div class="col-lg-5 mx-auto">
<div class="complete-list-container bg-success" id="complete-list-container">
<h5 class="text-center">Completed Tasks</h5>
<ul id="completed-task-list">
</ul>
<button class = " text-white btn btn-warning px-5 ml-5 mt-5" id="clearall" onclick="clearAll()">Clear All</button>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- ---------------- additional scripts are here -------------------- -->
<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap4-4-1.min.js"></script>
<script src="js/modernizr-3.6.0.min.js"></script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
<!-- Google Analytics: I should change UA-XXXXX-Y to be my site's ID.
<script>
window.ga = function () { ga.q.push(arguments) }; ga.q = []; ga.l = +new Date;
ga('create', 'UA-XXXXX-Y', 'auto'); ga('send', 'pageview')
</script> -->
<!-- scripts for toast, popover and tooltips-->
<script>
$(document).ready(function(){
$('.toast').toast('show');
});
$(document).ready(function () {
$('[data-toggle="tooltip"]').tooltip();
});
$(document).ready(function () {
$('[data-toggle="popover"]').popover();
});
</script>
<script src="https://www.google-analytics.com/analytics.js" async defer></script>
<!-- disables right click and f12 press on site
<script type="text/javascript">
$(document).keydown(function(event){
if(event.keyCode==123){
return false;
}
else if (event.ctrlKey && event.shiftKey && event.keyCode==73){
return false;
}
});
$(document).on("contextmenu",function(e){
e.preventDefault();
});
</script>
<script>
document.onkeydown = function(e) {
if (e.ctrlKey &&
(e.keyCode === 67 ||
e.keyCode === 86 ||
e.keyCode === 85 ||
e.keyCode === 117)) {
return false;
} else {
return true;
}
};
$(document).keypress("u",function(e) {
if(e.ctrlKey)
{
return false;
}
else
{
return true;
}
});
</script> -->
<!-- Disable form submissions if there are invalid fields , needs-validaion method -->
<script>
(function() {
'use strict';
window.addEventListener('load', function() {
// Get the forms we want to add validation styles to
var forms = document.getElementsByClassName('needs-validation');
// Loop over them and prevent submission
var validation = Array.prototype.filter.call(forms, function(form) {
form.addEventListener('submit', function(event) {
if (form.checkValidity() === false) {
event.preventDefault();
event.stopPropagation();
}
form.classList.add('was-validated');
}, false);
});
}, false);
})();
</script>
<noscript>Sorry kiddo ! your browser doesn't support <strong>Javascript</strong> and that's why you're missing some amazing features of this awesome website.</noscript>
</body>
</html>