-
Notifications
You must be signed in to change notification settings - Fork 0
/
consolution.html
326 lines (321 loc) · 17 KB
/
consolution.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
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
<!DOCTYPE html>
<html>
<head>
<title>Clinical Panel</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="assets/css/clinical/common.css">
<link rel="stylesheet" type="text/css" href="assets/css/clinical/consolution.css">
<link href='https://fonts.googleapis.com/css?family=Poppins' rel='stylesheet'>
</head>
<body>
<div class="clinical">
<!-- left panel start -->
<aside class="clinical_left">
<!-- navbar top start -->
<div class="top-nav">
<a class="navlink_img"><img src="assets/images/clinical/white_logo.png" alt=""></a>
<a class="navlink" href="availability.html">Availability</a>
<a class="navlink nav_active" href="consolution.html">Consultations</a>
<a class="navlink" href="patients.html">Patients</a>
</div>
<!-- navbar bottom start -->
<div class="bottom-nav">
<a class="bottom_link" href="">Account</a>
<a class="bottom_link" href="">Log out</a>
</div>
</aside>
<!-- right panel start -->
<main class="clinical_right">
<div class="options">
<div class="date">
<button class="prev"><</button>
<button>TODAY</button>
<button>MONDAY 21 NOV, 2021</button>
<button class="next">></button>
</div>
<div class="patients">
<section>
<select>
<option value="1" selected>All Patients</option>
<option value="2">section1</option>
<option value="3">section2</option>
<option value="4">section3</option>
<option value="5">section4</option>
<option value="6">section5</option>
<option value="7">section6</option>
<option value="8">section7</option>
<option value="9">section8</option>
<option value="10">section9</option>
</select>
</section>
</div>
</div>
<!-- timeline -->
<div>
<div class="panel">
<div class="time">
<div class="mouseTime">12:00</div>
</div>
<div class="schedule">
<hr class="mouseLine"/>
<div class="timeline">
<!-- M -->
<div class="timeline1">
<div class="box black -am-09-00"></div>
<div class="box black -am-10-00"></div>
<div class="box -am-11-00">
<div class="content purple">
<div class="boxTime">11:00am - 12:00pm</div>
<div class="boxName">Alfred Massey</div>
<div class="boxContent">Lower Back</div>
</div>
</div>
<div class="box -am-12-30">
<div class="content skyBlue">
<div class="boxTime">11:00am - 12:00pm</div>
<div class="boxName">Alfred Massey</div>
<div class="boxContent">Lower Back</div>
</div>
</div>
<div class="box -pm-03-00">
<div class="content green">
<div class="boxTime">11:00am - 12:00pm</div>
<div class="boxName">Alfred Massey</div>
<div class="boxContent">Lower Back</div>
</div>
</div>
<div class="box black -pm-06-00"></div>
<div class="box black -pm-07-00"></div>
<div class="box black -pm-08-00"></div>
<div class="box black -pm-09-00"></div>
</div>
<!-- Tuesday -->
<div class="timeline1">
<div class="box -am-10-00">
<div class="content skyBlue">
<div class="boxTime">11:00am - 12:00pm</div>
<div class="boxName">Alfred Massey</div>
<div class="boxContent">Lower Back</div>
</div>
</div>
<div class="box -am-12-00">
<div class="content green">
<div class="boxTime">11:00am - 12:00pm</div>
<div class="boxName">Alfred Massey</div>
<div class="boxContent">Lower Back</div>
</div>
</div>
<div class="box -pm-01-00">
<div class="content pink">
<div class="boxTime">11:00am - 12:00pm</div>
<div class="boxName">Alfred Massey</div>
<div class="boxContent">Lower Back</div>
</div>
</div>
<div class="box -pm-02-00">
<div class="content yellow">
<div class="boxTime">11:00am - 12:00pm</div>
<div class="boxName">Alfred Massey</div>
<div class="boxContent">Lower Back</div>
</div>
</div>
<div class="box black -pm-06-00"></div>
<div class="box black -pm-07-00"></div>
<div class="box black -pm-08-00"></div>
<div class="box black -pm-09-00"></div>
</div>
<!-- Wednesday -->
<div class="timeline1">
<div class="box black -am-09-00"></div>
<div class="box -am-12-00">
<div class="content purple">
<div class="boxTime">11:00am - 12:00pm</div>
<div class="boxName">Alfred Massey</div>
<div class="boxContent">Lower Back</div>
</div>
</div>
<div class="box black -pm-06-00"></div>
<div class="box black -pm-07-00"></div>
<div class="box black -pm-08-00"></div>
<div class="box black -pm-09-00"></div>
</div>
<!-- Thursday -->
<div class="timeline1">
<div class="box black -am-09-00"></div>
<div class="box -am-10-00">
<div class="content pink">
<div class="boxTime">11:00am - 12:00pm</div>
<div class="boxName">Alfred Massey</div>
<div class="boxContent">Lower Back</div>
</div>
</div>
<div class="box -am-11-30">
<div class="content skyBlue ">
<div class="boxTime">11:00am - 12:00pm</div>
<div class="boxName">Alfred Massey</div>
<div class="boxContent">Lower Back</div>
</div>
</div>
<div class="box -pm-02-00">
<div class="content green">
<div class="boxTime">11:00am - 12:00pm</div>
<div class="boxName">Alfred Massey</div>
<div class="boxContent">Lower Back</div>
</div>
</div>
<div class="box black -pm-06-00"></div>
<div class="box black -pm-07-00"></div>
<div class="box black -pm-08-00"></div>
<div class="box black -pm-09-00"></div>
</div>
<!-- Friday -->
<div class="timeline1">
<div class="box -am-09-00">
<div class="content green">
<div class="boxTime">11:00am - 12:00pm</div>
<div class="boxName">Alfred Massey</div>
<div class="boxContent">Lower Back</div>
</div>
</div>
<div class="box -am-12-00">
<div class="content pink">
<div class="boxTime">11:00am - 12:00pm</div>
<div class="boxName">Alfred Massey</div>
<div class="boxContent">Lower Back</div>
</div>
</div>
<div class="box -pm-03-00">
<div class="content purple">
<div class="boxTime">11:00am - 12:00pm</div>
<div class="boxName">Alfred Massey</div>
<div class="boxContent">Lower Back</div>
</div>
</div>
<div class="box black -pm-06-00"></div>
<div class="box black -pm-07-00"></div>
<div class="box black -pm-08-00"></div>
<div class="box black -pm-09-00"></div>
</div>
<!-- Saturday -->
<div class="timeline1">
<div class="box black -pm-06-00"></div>
<div class="box black -pm-07-00"></div>
<div class="box black -pm-08-00"></div>
<div class="box black -pm-09-00"></div>
</div>
<!-- Sunday -->
<div class="timeline1">
<div class="box black -am-09-00"></div>
<div class="box -am-12-30">
<div class="content skyBlue">
<div class="boxTime">11:00am - 12:00pm</div>
<div class="boxName">Alfred Massey</div>
<div class="boxContent">Lower Back</div>
</div>
</div>
<div class="box black -pm-06-00"></div>
<div class="box black -pm-07-00"></div>
<div class="box black -pm-08-00"></div>
<div class="box black -pm-09-00"></div>
</div>
</div>
<div class="background">
</div>
</div>
</div>
</div>
</main>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(function(){
var background_content = '';
var time_block = '';
var hour = 9;
time_block += '<div class="mouseTime">12:00</div>';
for( var i = 0;i < 13; i++){
if (hour + i < 13)
time_block += '<div class="time_block"><span>'+(hour + i)+':00</span><br><span>am</span></div>';
else
time_block += '<div class="time_block"><span>'+(hour + i - 12)+':00</span><br><span>pm</span></div>';
for (var k = 0 ; k < 4; k++ ){
background_content += '<div class="inline">';
for (var j = 0; j < 7; j++) {
if (k < 1)
background_content += '<div class="lineTopBorder"></div>';
else
background_content += '<div class="line"></div>';
}
background_content += '</div>';
}
}
$('.time').html(time_block);
$('.background').html(background_content);
$('.timeline').find('.box').each(function (i, el) {
var attr = $(el).attr('class').split('-');
var marginTop = 0;
if (attr.length == 4 ){
if (attr[1] == 'am') {
// am
marginTop += 2 + (attr[2]*1-9)*61;
} else {
// pm
marginTop += 246;
marginTop += (attr[2]*1-1)*61;
}
marginTop += (attr[3]*1);
}
$(el).css('margin-top', marginTop+'px');
});
$('.mouseLine').css('display', 'none');
$('.mouseTime').css('display', 'none');
//mouse position
document.onmousemove = handleMouseMove;
function handleMouseMove(event) {
var eventDoc, doc, body;
event = event || window.event; // IE-ism
// If pageX/Y aren't available and clientX/Y are,
// calculate pageX/Y - logic taken from jQuery.
// (This is to support old IE)
if (event.pageX == null && event.clientX != null) {
eventDoc = (event.target && event.target.ownerDocument) || document;
doc = eventDoc.documentElement;
body = eventDoc.body;
event.pageX = event.clientX +
(doc && doc.scrollLeft || body && body.scrollLeft || 0) -
(doc && doc.clientLeft || body && body.clientLeft || 0);
event.pageY = event.clientY +
(doc && doc.scrollTop || body && body.scrollTop || 0) -
(doc && doc.clientTop || body && body.clientTop || 0 );
}
// Use event.pageX / event.pageY here
if(event.pageY > 144 && event.pageY < 938){
$('.mouseLine').css('display', '');
$('.mouseTime').css('display', '');
console.log(event.pageY);
$('.mouseLine').css('margin-top', event.pageY - 144 +'px');
$('.mouseTime').css('margin-top', event.pageY - 154 +'px');
var time;
if (Math.floor((event.pageY - 145)/61) > 3)
time = Math.floor((event.pageY - 145)/61)-3;
else
time = Math.floor((event.pageY - 145)/61)+9;
if ((event.pageY - 145)%61 > 59)
time += ":00";
else
time += ':'+(event.pageY - 145)%61;
if (event.pageY > 388)
time +='pm';
else
time += 'am';
$('.mouseTime').html(time);
} else {
$('.mouseLine').css('display', 'none');
$('.mouseTime').css('display', 'none');
}
}
});
</script>
</body>
</html>