-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathviews
105 lines (92 loc) · 2.03 KB
/
views
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
<html>
<head>
<meta charset="utf-8">
<title>Todo List</title>
<script src="https://code.jquery.com/jquery-1.12.4.js" integrity="sha256-Qw82+bXyGq6MydymqBxNPYTaUXXq7c8v3CwiYwLLNXU="
crossorigin="anonymous"></script>
<style>
body{
background: #0d1521;
font-family: tahoma;
color: #989898;
}
#todo-table{
position: relative;
width: 95%;
background: #090d13;
margin: 0 auto;
padding: 20px;
box-sizing: border-box;
}
#todo-table form:after{
margin: 0;
content: '';
display: block;
clear: both;
}
input[type="text"]{
width: 70%;
padding: 20px;
background:#181c22;
border: 0;
float: left;
font-size: 20px;
color: #989898;
}
button{
padding: 20px;
width: 30%;
float: left;
background: #23282e;
border: 0;
box-sizing: border-box;
color: #fff;
cursor: pointer;
font-size: 20px;
}
ul{
list-style-type: none;
padding: 0;
margin: 0;
}
li{
width: 100%;
padding: 20px;
box-sizing: border-box;
font-family: arial;
font-size: 20px;
cursor: pointer;
letter-spacing: 1px;
}
li:hover{
text-decoration: line-through;
background: rgba(0,0,0,0.2);
}
h1{
background: url(/assets/logo.png) no-repeat center;
margin-bottom: 0;
text-indent: -10000px;
}
</style>
<link rel="stylesheet" href="/assets/style.css" type="text/css"/>
<script type="text/javascript" src="/assets/todo-list.js">
</script>
</head>
<body>
<h1>My to do List</h1>
<div id="todo-table">
<form class="" action="index.html" method="post">
<input type="text" name="item" placeholder="Add new item ..." required />
<button value="submit">Add Item</button>
</form>
<ul>
<%for(var i=0;i<todos.length;i++){%>
<li>
<%=todos[i].item%>
</li>
<%}%>
</todos.length;i++)%>
</ul>
</div>
</body>
</html>