-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
250 lines (137 loc) · 8.38 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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
<!DOCTYPE html>
<html ng-app="todo">
<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>Document</title>
<link rel="stylesheet" href="./node_modules/angular-material/angular-material.min.css">
<link rel="stylesheet" href="./node_modules/mdi/css/materialdesignicons.css">
<link rel="stylesheet" href="./node_modules/@mdi/font/css/materialdesignicons.min.css">
<link rel="stylesheet" href="./css/style.css">
</head>
<body ng-controller='todocon as tdc'>
<!-- application section -->
<div flex-gt-sm="50" flex layout-aling='center center' class="middle">
<md-toolbar layout="row" class="md-hue-3">
<div class="md-toolbar-tools">
<span flex>TO DO :D</span>
<md-button class="md-fab md-mini" aria-label="Eat cake" ng-show='!active'
ng-click='active=true;tasksInfo={}'>
<md-icon class="mdi mdi-plus addButton"></md-icon>
</md-button>
<md-input-container ng-show="active" class="md-block margin-44" flex-gt-sm flex='30'>
<label>task</label>
<input ng-model="tasksInfo.header">
</md-input-container>
<md-button class="md-fab md-mini" aria-label="Eat cake" ng-show='active'
ng-click='active=false;tdc.sendData(tasksInfo)'>
<md-icon class="mdi mdi-check addButton"></md-icon>
</md-button>
</div>
</md-toolbar>
<md-content>
<md-list class="md-dense" flex ng-repeat='item in tdc.toDoes' ng-class="{'opacity':checked}">
<!-- //header of the to do
-->
<md-subheader class="md-no-sticky" layout='row'>
<div layout='row' layout-align='start center'>
<md-checkbox flex='10' aria-label="Select All" ng-checked="checked" ng-click='checked=true'>
</md-checkbox>
<h3 flex class="greenColor fixexMarginOk">{{ item.header}} </h3>
</div>
<div layout='row' class="utilities" layout-align='center center'>
<md-fab-speed-dial md-open='tdc.isOpen' md-direction="right" class="md-fling">
<md-fab-trigger>
<md-button aria-label="menu" class="md-fab md-warn" ng-disabled='checked'
ng-click='attemptForEdit=false'>
<md-icon class="mdi mdi-menu addMarginMain"></md-icon>
</md-button>
</md-fab-trigger>
<md-fab-actions>
<md-button aria-label="Twitter" class="md-fab md-raised md-mini" ng-disabled='checked'
ng-click='attemptForEdit=true'>
<md-icon class="mdi mdi-content-cut addMarginSub blue"></md-icon>
</md-button>
<md-button aria-label="Facebook" class="md-fab md-raised md-mini" ng-disabled='checked'
ng-click='tdc.deleteObj(item)'>
<md-icon class="mdi mdi-delete-forever addMarginSub red"></md-icon>
</md-button>
</md-fab-actions>
</md-fab-speed-dial>
<md-input-container ng-show="attemptForEdit" class="md-block margin-44" flex-gt-sm flex='30'>
<label>edit task</label>
<input ng-model="item.header">
</md-input-container>
<md-button class="md-fab md-mini" aria-label="Eat cake" ng-show='attemptForEdit'
ng-click='attemptForEdit=false'>
<md-icon class="mdi mdi-check addButton"></md-icon>
</md-button>
</div>
<!-- delete section -->
</md-subheader>
<!-- description of the to do -->
<md-list-item class="md-3-line md-long-text">
<div class="md-list-item-text" layout='column'>
<h5>{{item.header }} description :</h5>
<!-- section for if they like to add some description -->
<md-button class="md-fab md-mini" aria-label="Eat cake" ng-show='activeDesc'
ng-click='activeDesc=false;tdc.fixDesc(description,item);goforever=true'>
<md-icon class="mdi mdi-check addButton to3px"></md-icon>
</md-button>
<md-button class="md-fab md-mini" aria-label="Eat cake" ng-show='!activeDesc'
ng-click='activeDesc=true;tasksInfo={};description_activate=true' ng-hide='goforever'
ng-disabled='checked'>
<md-icon class="mdi mdi-plus addButton mtop-5"></md-icon>
</md-button>
<md-input-container ng-show="activeDesc" class="md-block margin-44" flex-gt-sm flex='30'>
<label>description</label>
<input ng-model="description">
</md-input-container>
<!-- end section for if they life to add some description -->
<div layout='row' flex layout-align='start center'>
<p flex>
{{item.description}}
</p>
<div layout='row' class="utilities" layout-align='center center'
ng-show='description_activate'>
<md-fab-speed-dial md-open='tdc.isOpen' md-direction="right" class="md-fling"
ng-disabled='checked'>
<md-fab-trigger>
<md-button aria-label="menu" class="md-fab md-warn" ng-disabled='checked'>
<md-icon class="mdi mdi-menu addMarginMain"></md-icon>
</md-button>
</md-fab-trigger>
<md-fab-actions>
<md-button aria-label="Twitter" class="md-fab md-raised md-mini"
ng-click='attemptForEditdesc=true'>
<md-icon class="mdi mdi-content-cut addMarginSub blue"></md-icon>
</md-button>
</md-fab-actions>
</md-fab-speed-dial>
<md-input-container ng-show="attemptForEditdesc" class="md-block margin-44" flex-gt-sm
flex='30'>
<label>edit description</label>
<input ng-model="item.description">
</md-input-container>
<md-button class="md-fab md-mini" aria-label="Eat cake" ng-show='attemptForEditdesc'
ng-click='attemptForEditdesc=false'>
<md-icon class="mdi mdi-check addButton"></md-icon>
</md-button>
</div>
</div>
</div>
</md-list-item>
<md-divider></md-divider>
</md-list>
</md-content>
</div>
<!-- end application section -->
<script src="./node_modules/angular/angular.min.js"></script>
<script src="./node_modules/angular-material/angular-material.min.js"></script>
<script src="./node_modules/angular-animate/angular-animate.min.js"></script>
<script src="./node_modules/angular-aria/angular-aria.min.js"></script>
<script src="./scripts/app.js"></script>
<script src="./components/taskController.ctr.js"></script>
</body>
</html>