-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpopup.html
548 lines (472 loc) · 15.3 KB
/
popup.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
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Meta -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>ICT Agent Panel</title>
<!-- Stylesheet -->
<link href="https://fonts.googleapis.com/css?family=Poppins:400,400i,700,700i" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="./css/normalize.css">
<link rel="stylesheet" href="./css/animate.css">
<link rel="stylesheet" href="./css/phonicon.css">
<link rel="stylesheet" href="./css/app.css">
<!--[if gte IE 9]>
<style type="text/css">
.template.call .c__p .c-p__s-a .s-a__g { filter: none; }
</style>
<![endif]-->
<!-- Script -->
<script src="./js/tippy.all.min.js"></script>
<script src="jquery-2.2.0.min.js"></script>
<script src="./js/bootstrap.min.js"></script>
</head>
<style>
/* Style the tab */
.tab {
overflow: hidden;
border: 1px solid #fff;
align-content: center;
background-color: #0c71c3;
}
/* Style the buttons inside the tab */
.tab button {
background-color:#33a4ff;
border: solid;
cursor: pointer;
width: 100px;
padding: 14px 10px;
transition: 0.3s;
font-size: 16px;
font-weight: 700;
color: #fff;
}
@media only screen and (min-width: 600px) {
.tab button {
background-color:#33a4ff;
border: solid;
overflow: hidden;
margin-left: 35%;
cursor: pointer;
position: relative;
width: 100px;
padding: 14px 10px;
transition: 0.3s;
font-size: 16px;
font-weight: 700;
color: #fff;
}
.faxLabel {
display: block;
color: #ffff;
font-size: 40px;
font-weight: 800;
margin-left: 41%;
padding-top: 10px;
}
.docLabel {
color: #ffff;
margin-left: 35%;
}
.fileClass {
margin-left: 35%;
}
.fax_title
{
margin-left: 35%;
}
.ip2 {
margin-left: 35%;
}
.ip3 {
margin-right: 15%;
}
}
/* Change background color of buttons on hover */
.tab button:hover {
background-color: #fff;
color: #0c71c3;
}
/* Create an active/current tablink class */
.tab button.active {
background-color: #fff;
}
/* Style the tab content */
.tabcontent {
display: none;
padding: 16px 22px;
border: 1px solid #fff;
border-top: none;
background-color: #1f9aff;
height: 800px;
}
h3 {
text-align: center;
color: #ffff;
}
#dialer_tab {
margin-left:130px;
}
#fax_tab {
border: 1px solid white;
color: #0c71c3;
font-weight: 600;
padding-left:1px;
background-color: #fff;
}
a:hover {
color: #fff;
}
.faxLabel {
display: block;
color: #ffff;
font-size: 20px;
}
.ip2 {
border-radius: 25px;
border: 1px solid #fff;
padding: 24px;
width: 320px;
height: 20px;
}
.ip3 {
border-radius: 25px;
border: 3px solid #000;
color:#0c71c3;
font-weight: 600;
padding: 24px;
width: 320px;
height: 20px;
}
.docLabel {
color: #ffff;
}
.fileClass {
border-radius: 25px;
border: 3px solid #000;
padding: 24px;
width: 320px;
height: 20px;
background-color: white;
}
.button {
background-color: #4CAF50;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
#receivedFaxes {
overflow-y: scroll;
max-height: 580px;
}
#sentFaxes {
overflow-y: scroll;
max-height: 580px;
}
</style>
<body>
<div class="tab">
<button id="call_tab" class="tablinks" >Call</button>
<button id="dialer_tab" class="tablinks" >Fax</button>
</div>
<!--
<div id="call_tab" class="tabcontent">
<h3>London</h3>
<p>London is the capital city of England.</p>
</div>
!-->
<div id="dialer" class="tabcontent">
<div id="faxManagement">
<h3>Fax Management</h3>
<a id="showsent" href="#" class="faxLabel"><img src="img/sent.png" width="60px" height="60px"> View Sent Fax</a><br>
<a id="showreceived" href="#" class="faxLabel"><img src="img/recieved.png" width="60px" height="60px"> View Received fax</a><br>
<a id="newfax" href="#" class="faxLabel">
<img src="img/sendnew.png" width="60px" height="60px"> Send new Fax</a><br>
<a id="newdocument" href="#" class="faxLabel">
<img src="img/add.png" width="60px" height="60px"> Add new document</a>
</div>
<div id="newdocumentform">
<label id="back2dashboard2" style="float: left;color: #0c71c3;;font-size: 22px; font-weight: 700; background-color: #fff; font-weight: 700; background-color: #fff; border-style: solid;">Back</label>
<h3>Add Document</h3>
<br>
<label class="docLabel">Document Name:</label><br>
<input type="text" id="document_name" class="ip2"/>
<label id="doc_name_err"></label>
<br><br>
<label class="docLabel">Choose File:</label><br>
<input type="file" accept=".pdf,.tif,.tiff,.png,.jpg,.jpeg,.xlsx,.xls,.doc,.docx,.ppt,.pptx,.odt,.ods,.odp" name="document_file" id="document_file" class="fileClass"/>
<label id="doc_file_err"></label>
<br><br>
<label class="docLabel">Description:</label><br>
<input type="text" id="document_description" class="ip2"/>
<br><br><br>
<div style="text-align: center;">
<button id="submitdocumentform" class="button">Submit</button>
</div>
</div>
<div id="newfaxform">
<label id="back2dashboard" style="float: left;color: #0c71c3;;font-size: 22px; font-weight: 700; background-color: #fff;border-style: solid;">Back</label>
<h3>Send fax</h3>
<br>
<label class="docLabel">Title:</label><br>
<input type="text" id="fax_title" class="ip2"/>
<br><br>
<label class="docLabel">Select Document:</label><br>
<div style="text-align:center">
<select id="select_doc" class="ip3">
<option value="-1">Choose document</option>
</select>
</div>
<label id="doc_fax_err"></label>
<br>
<label class="docLabel">Destination number:</label><br>
<input type="text" id="fax_number" class="ip2"/>
<label id="phone_err"></label>
<label class="docLabel">Retry:</label><br>
<div style="text-align:center">
<select id="choose_retry" class="ip3" style="text-align:center">
<option value="-1">Please select an option</b></option>
<option>1</option>
<option>2</option>
<option>3</option>
</select>
</div>
<br>
<br>
<div style="text-align: center;">
<button id="sendfaxbutton" class="button">Submit</button>
</div>
</div>
<div id="receivedFaxes">
<label id="back2dashboard1" style="float: left;color: #0c71c3;;font-size: 22px; font-weight: 700; background-color: #fff;border-style: solid;">Back</label>
<h3>Received Faxes</h3>
</div>
<div id="sentFaxes">
<label id="back2dashboard3" style="float: left;color: #0c71c3;font-size: 22px; font-weight: 700; background-color: #fff;border-style: solid;">Back</label>
<h3>Outbound Fax</h3>
</div>
</div>
<!-- App Container -->
<div id="a" >
<!-- Modal -->
<div class="a__m">
<!-- Modal Head -->
<div class="a-m__h">
<!-- Client Status -->
<div class="m-h__s">
<button title="">
<span class="offline"></span>
</button>
</div>
<!-- Head Title -->
<div class="m-h__t">
<h1></h1>
</div>
<!-- Modal Close Toggle -->
<div class="m-h__c">
<button>
<i class="phonicon icon-close"></i>
</button>
</div>
</div>
<!-- Modal Activity -->
<div class="a-m__a">
<!-- Idle Screen / Default Startup -->
<div class="template idle default" data-template-name="idle">
<!-- Phone text field -->
<div class="i__f">
<input type="text" placeholder="Enter Phone Number" size="10">
<audio id="remoteVideo" style="border: 1px solid lightgrey;"></audio>
<audio id="localVideo" muted="muted" style=" border: 1px solid lightgrey;"></audio>
</div>
<!-- Numpad -->
<div class="i__n numpad">
<div class="i-n__row clearfix">
<button class="pull-left" value="1">1</button>
<button class="pull-left" value="2">2</button>
<button class="pull-left" value="3">3</button>
</div>
<div class="i-n__row clearfix">
<button class="pull-left" value="4">4</button>
<button class="pull-left" value="5">5</button>
<button class="pull-left" value="6">6</button>
</div>
<div class="i-n__row clearfix">
<button class="pull-left" value="7">7</button>
<button class="pull-left" value="8">8</button>
<button class="pull-left" value="9">9</button>
</div>
<div class="i-n__row clearfix">
<button class="pull-left" value="*">
<i class="phonicon icon-asterisk"></i>
</button>
<button class="pull-left" value="0">0</button>
<button class="pull-left" value="#">
<i class="phonicon icon-hashtag"></i>
</button>
</div>
</div>
</div>
<!-- Additional Page Screen -->
<div class="template call incoming hidden" data-template-name="incoming">
<div class="c__p">
<!-- Progress Label -->
<div class="c-p__l">You are receiving call from<br><span> </span></div>
<!-- Progress Info -->
<div class="c-p__i">
<!-- Number -->
<div class="p-i__n"></div>
<!-- IP
<div class="p-i__i">
<span>@</span> <span class="ip"></span>
</div>
-->
</div>
</div>
</div>
<div class="template call outgoing hidden" data-template-name="outgoing">
<div class="c__p">
<!-- Progress Label -->
<div class="c-p__l">Calling...<br><span> </span></div>
<!-- Progress Info -->
<div class="c-p__i">
<!-- Number -->
<div class="p-i__n"></div>
<!-- IP
<div class="p-i__i">
<span>@</span> <span class="ip"></span>
</div>
-->
</div>
</div>
</div>
<div class="template call incall hidden" data-template-name="incall">
<div class="c__p">
<!-- Progress Label -->
<div class="c-p__l">You are in a call with<br><span> </span></div>
<!-- Progress Info -->
<div class="c-p__i">
<!-- Number -->
<div class="p-i__n"></div>
<!-- IP
<div class="p-i__i">
<span>@</span> <span class="ip"></span>
</div>
-->
</div>
<!-- Progress Tools -->
<div class="c-p__t hidden">
<button data-action="transfer">Transfer to...</button>
<button data-action="dtmf">Send DTMF</button>
</div>
<!-- Progress Sub Activity -->
<div class="c-p__s-a hidden">
<div class="s-a__g"></div>
<div class="s-a__b">
<!-- Transfer -->
<div class="s-a-b__t hidden">
<!-- Module -->
<div class="t__m">
<div class="dropdown">
<select>
<option value="121212">Administrator (1)</option>
<option value="232323">Administrator (2)</option>
<option value="343434">Supervisor</option>
</select>
</div>
<button>Start Call Transfer</button>
</div>
<!-- Close Trigger -->
<button class="sub-activity-toggle">Cancel</button>
</div>
<!-- DTMF -->
<div class="s-a-b__d hidden">
<!-- Module -->
<div class="t__m">
<div class="numpad">
<div class="i-n__row clearfix">
<button class="pull-left" value="1">1</button>
<button class="pull-left" value="2">2</button>
<button class="pull-left" value="3">3</button>
</div>
<div class="i-n__row clearfix">
<button class="pull-left" value="4">4</button>
<button class="pull-left" value="5">5</button>
<button class="pull-left" value="6">6</button>
</div>
<div class="i-n__row clearfix">
<button class="pull-left" value="7">7</button>
<button class="pull-left" value="8">8</button>
<button class="pull-left" value="9">9</button>
</div>
<div class="i-n__row clearfix">
<button class="pull-left" value="*">
<i class="phonicon icon-asterisk"></i>
</button>
<button class="pull-left" value="0">0</button>
<button class="pull-left" value="#">
<i class="phonicon icon-hashtag"></i>
</button>
</div>
</div>
</div>
<!-- Close Trigger -->
<button class="sub-activity-toggle">Close</button>
</div>
</div>
</div>
</div>
</div>
<div class="template offline hidden" data-template-name="offline">
<!-- Offline Label -->
<div class="o__l">
<div class="o-l__s">
<i class="phonicon icon-sad"></i>
</div>
<h2>Uh oh...</h2>
<div class="o-l__p">We are offline</div>
</div>
</div>
</div>
<!-- Modal Tools -->
<div class="a-m__t">
<button class="call" data-action="start">
<i class="phonicon icon-telephone"></i>
</button>
<button class="uncall hidden" data-action="stop">
<i class="phonicon icon-telephone"></i>
</button>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="modal_title">Modal Header</h4>
</div>
<div class="modal-body" id="modal_body">
<p>Some text in the modal.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- App Script -->
<script src="popup_gui.js"></script>
<script src ="popup.js"></script>
<script src="sip-0.9.1.min.js"></script>
</body>
</html>