-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
73 lines (52 loc) · 2.98 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
<!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>To-Do List</title>
<link rel="stylesheet"
href="assets/styles/font-awesome-4.7.0/css/font-awesome.min.css">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
crossorigin="anonymous">
<link
href="https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap"
rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Comic+Neue&display=swap" rel="stylesheet">
<script
src="https://code.jquery.com/jquery-3.4.1.js"
integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU="crossorigin="anonymous"></script>
<link rel="stylesheet" href="assets/styles/style.min.css">
</head>
<body>
<div class="newData">
<h1 class="todoHeader"></i><img src="assets/svg/headerLogo.svg" alt="Todos"><i class="fa fa-plus pull-right" aria-hidden="true"></i></h1>
<input type="text" id="name" placeholder="Type here!"
onfocus="this.placeholder= ''"
onblur="this.placeholder= 'Type here!'">
<li id="addLi"class="btn">Add!</li>
</div>
<div id="container" >
<ul id="todos" >
</ul>
</div>
<footer class="page-footer font-small teal pt-4">
<div class="container-fluid text-center text-md-left">
<div class="row">
<div class="col-md-6 mt-md-0 mt-3">
<h5 class="text-uppercase font-weight-bold">Ajax and JSON</h5>
<p>The web app uses AJAX to read data from the JSON file. However, I could not send data to the JSON file using the same methods. The JSON was hardcoded and I could not remotely send data to it without a back-end server. When I tried to sending data using AJAX I got error “405 Method Not Allowed” due to certain restrictions by the browser and possibly other things.
I have still added “Create” and “Delete” functionality though. It’s just that they work on the front end only and, on page refresh all changes made will disappear.
</p>
</div>
</div>
</div>
<div class="footer-copyright text-center py-3">© 2020 | Tariq - U1974963:
<a href="https://github.com/Tariq-AQ/ToDos"> Link to GitHub Repo</a>
</div>
</footer>
</body>
<script type="text/javascript" src="assets/js/todos.min.js"></script>
</html>