-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
745 lines (576 loc) · 29.8 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
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
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
<!--
=========================================================
* HistoJS Demo
=========================================================
* @see {@link https://github.com/Mmasoud1/HistoJS}
* @description A user interface for multiplexed image channels design and analysis.
* It is based on DSA as backbone server.
*
* @version 1.0.0
* @license MIT
*
* @author Mohamed Masoud <[email protected]>
=========================================================
* @file HISTOJS UI
=========================================================
-->
<!DOCTYPE HTML>
<html>
<meta charset="utf-8">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="google-site-verification" content="TcejApuuawBtByvMMh3D1Zrj0AUxix8B1Xw8ofqjMS4" />
<!-- To avoid favicon.ico error put: -->
<link rel="shortcut icon" href="#">
<link rel="stylesheet" href="js/libs/webix/webix.css" type="text/css">
<link rel="stylesheet" href="css/animate.css/animate.min.css" />
<!-- <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> -->
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> -->
<link rel="stylesheet" href="css/font-awesome-4.7.0/css/font-awesome.min.css">
<!-- w3.css must precede sceneviewerextpxvw.css -->
<link rel="stylesheet" type="text/css" href="css/w3.css">
<link rel="stylesheet" type="text/css" href="css/spectrum.css">
<link rel="stylesheet" href="css/d3-context-menu.css" />
<link rel="stylesheet" href="css/sceneviewerextpxvw.css">
<!-- <link href="css/toggle-switch.css" rel="stylesheet" type="text/css"> -->
<!--
<script src="//openseadragon.github.io/openseadragon/openseadragon.min.js"></script>
<script src="js/svg-overlay-master/openseadragon-svg-overlay.js"></script>
-->
<script src="js/libs/webix/webix.js" type="text/javascript"></script>
<script src="js/libs/plotly-latest.min.js"></script>
<!-- csv to json parser: https://www.papaparse.com-->
<script src="js/libs/papaparse.min.js"></script>
<!-- statistics Lib -->
<script src="js/libs/statistics.min.js" type="text/javascript"></script>
<script src="js/libs/jstat/jstat.js" type="text/javascript"></script>
<!-- <script src="js/Statistics/simple-statistics.min.js" type="text/javascript"></script> -->
<!--<script src='https://unpkg.com/[email protected]/dist/simple-statistics.min.js'></script> -->
<!-- https://underscorejs.org/# -->
<script src="js/libs/underscore/underscore-umd-min.js"></script>
<!-- chart plot library option 1 -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<!-- chart plot library option 2 -->
<script src="js/libs/Highcharts-8.2.2/code/highcharts.js"></script>
<script src="js/libs/Highcharts-8.2.2/code/highcharts-more.js"></script>
<script src="js/libs/Highcharts-8.2.2/code/highcharts-3d.js"></script>
<script src="js/libs/Highcharts-8.2.2/code/modules/histogram-bellcurve.js"></script>
<script src="js/libs/Highcharts-8.2.2/code/modules/heatmap.js"></script>
<script src="js/libs/Highcharts-8.2.2/code/modules/cylinder.js"></script>
<script src="js/libs/Highcharts-8.2.2/code/modules/sankey.js"></script>
<script src="js/libs/Highcharts-8.2.2/code/modules/dependency-wheel.js"></script>
<script src="js/libs/Highcharts-8.2.2/code/modules/exporting.js"></script>
<script src="js/libs/Highcharts-8.2.2/code/modules/export-data.js"></script>
<script src="js/libs/Highcharts-8.2.2/code/modules/offline-exporting.js"></script>
<script src="js/libs/Highcharts-8.2.2/code/modules/accessibility.js"></script>
<script type="text/javascript" src="js/libs/jquery-3.5.1.js"></script>
<script type="text/javascript" src="js/libs/spectrum.js"></script>
<script type="text/javascript" src="js/libs/splitString.js"></script>
<script type="text/javascript" src="js/libs/convertColorSpaces.js"></script>
<script src="js/histojs/mainParametersv3.js" type="text/javascript"></script>
<script src="js/histojs/designFunctionsv4.js" type="text/javascript"></script>
<script src="js/histojs/analysisFunctionsv12.js" type="text/javascript"></script>
<script src="https://unpkg.com/[email protected]/dist/math.min.js"></script>
<!-- <script src="js/libs/OpenSeadragonThreejsOverlay-master/openseadragon-threejs-overlay.js" type="text/javascript"></script> -->
<script src="js/libs/node-lib/bundle.js"></script>
<script src="js/libs/tf.min.js"></script>
<!-- <script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tf.min.js"></script> -->
<script src="js/histojs/d3-context-menu.js"></script>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://d3js.org/d3-selection-multi.v0.4.min.js"></script>
<script src="https://d3js.org/d3.v3.min.js"></script>
<script src="js/libs/d3.js"></script>
<script src="https://d3js.org/d3-polygon.v1.min.js"></script>
<!-- <script src="lib/openseadragon/openseadragon.min.js"></script>
<script src="lib/openseadragon/openseadragon.js"></script>
<script src="lib/openseadragon-filtering.js"></script> -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/openseadragon/openseadragon.min.js"></script>
<script src="js/libs/svg-overlay-master/openseadragon-svg-overlay.js"></script>
<script src="js/libs/openseadragon/openseadragon-scalebar.js"></script>
</head>
<body style="background-color:black" onload="docLoaded()" onresize="docResized()">
<div class="navbar" >
<p style="text-shadow: 4px 3px grey"><b>HistoJS </b></p>
<a href="javascript:void(0)" onclick="openLayout(this.id)" id="Browse">☰ Open</a>
<div class="dropdown" >
<button class="dropbtn" id="modeBtn" ><i class="fa fa-tasks" aria-hidden="true"></i> Mode
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content" id="modeDropDownMenu" >
<a href="javascript:void(0)" onclick="openLayout(this.id)" id="Design"><i class='fa fa-magic'></i> Design Mode</a>
<a href="javascript:void(0)" style="color: white;" onclick="openLayout(this.id)" id="Analysis"><i class="fa fa-bar-chart" aria-hidden="true"></i> Analysis Mode</i></a>
<a href="javascript:void(0)" style="color: gray;" onclick="advancedMode()" id="advancedModeId"><i class="fa fa-play-circle" aria-hidden="true"></i> Advanced Mode</i></a>
</div>
</div>
<div class="dropdown">
<button class="dropbtn" id="viewBtn"><i class="fa fa-eye-slash" aria-hidden="true"></i> View
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content" id="viewDropDownMenu" >
<a href="javascript:void(0)" style="color: gray;" onclick="showHidePanels()" id="showHidePanels"> Hide Panels </a>
<a href="javascript:void(0)" style="color: gray;" onclick="showHideCoordinates()" id="showHideCoordinates"> Hide Coordinates</i></a>
</div>
</div>
<div class="dropdown">
<button class="dropbtn" id="helpBtn"><i class="fa fa-question-circle" aria-hidden="true"></i> Help
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content" id="helpDropDownMenu" >
<a href="javascript:void(0)" onclick="goToWikiDocs()" id="githubWiki"><i class="fa fa-info-circle" aria-hidden="true"></i> Wiki Docs </a>
<a href="javascript:void(0)" onclick="goToDsaServerPage()" id="dsaLocalHostInstall"><i class="fa fa-wrench" aria-hidden="true"></i> Install Local DSA </a>
<a href="javascript:void(0)" onclick="runDemo()" id="onlineDemoBtn"><i class="fa fa-television" aria-hidden="true"></i> Online Demo</a>
<a href="javascript:void(0)" onclick="toggleOfflineDemoForm()" id="offlineDemoBtn"><i class="fa fa-video-camera" aria-hidden="true"></i> Offline Demo</a>
<hr>
<a href="javascript:void(0)" onclick="openExtIssueForm()" ><i class="fa fa-bug" aria-hidden="true"></i> Report Issue</a>
</div>
</div>
<a style="position:absolute; right:15.5vw" href="javascript:void(0)" onclick="openSettingsForm()"><i class="fa fa-cog" ></i> Settings</a>
<a style="position:absolute; right:9vw" href="javascript:void(0)" onclick="openExtFeedbackForm()"><i class="fa fa-compress" aria-hidden="true"></i> Feedback</a>
<div id="login-out">
<a style="position:absolute; right:4vw; color: gray;" id="navLoginBtn" href="javascript:void(0)" onclick="openLoginForm()"><i class="fa fa-user-circle-o" aria-hidden="true"></i> Login</a>
</div>
<a class="right" target="_blank" href="https://github.com/Mmasoud1/HistoJS">
<i style="font-size:1vw" class="fa fa-github"></i>
</a>
</div>
<!-- Browse Layout sideviews -->
<div id="itemTreeView" class="panel itemtreepanel" layout="Browse" >
<p class="just">
<font style="font-size:0.86vw" id="collectionTreeName" ><i style="font-size:1.5vw" class="fa fa-tree" ></i>   Collection Tree</font></p>
<hr>
<ul id="treeList" >
<!-- Loaded dynamically -->
</ul>
</div>
<!-- Bars -->
<div id="itemTreeViewBar" class="bar itemtreebar" >
<!-- Loaded dynamically -->
</div>
<div id="hostCollectView" class="panel hostlistpanel" layout="Browse">
<p class="just" style="margin-left: 0.5vw; font-size:0.85vw"><i class="fa fa-server"></i>   Host-Collection </p>
<hr>
<p class="just" style="font-weight: bold;">Select Host:</p>
<ul class="just" id="hostsList" style="line-height: 50%">
<!-- Loaded dynamically -->
</ul>
<p class="just" id="collectionsTitle" style="font-weight: bold;"></p>
<ul class="just" id="collectionsList" style="line-height: 100%">
<!-- Loaded dynamically -->
</ul>
</div>
<div id="hostCollectViewBar" class="bar hostlistbar" >
<!-- Loaded dynamically -->
</div>
<!-- Info Panel right -->
<div id="infoPanel" class="panel infopanel" layout="Browse">
<p class="just"><i style="font-size:1.4vw;" class="fa fa-info-circle" ></i> <font style="font-size:0.86vw" id="infoTitle" >  METADATA</font></p>
<hr>
<p class="just" style="font-weight: bold;" id="imageInfoTitle"></p>
<ul class="just" id="infoList">
<!-- Loaded dynamically -->
</ul>
</div>
<!------------------------------------------------------------------------------------------------------------------->
<!---------------------------------------------- Design Layout ------------------------------------------------------>
<!------------------------------------------------------------------------------------------------------------------->
<!-- Design Layout sideviews -->
<div id="channelListView" class="panel channellistpanel" layout="Design">
<p class="just">
<font style="font-size:0.86vw" id="channelsName" ><i style="font-size:1.4vw" class="fa fa-sliders" ></i>    OME FileName</font>
</p>
<hr>
<ul id="channelList" class="just" style="list-style-type: none">
<!-- Loaded dynamically -->
</ul>
<hr>
</div>
<!-- Bar -->
<div id="channelListViewBar" class="bar channellistbar" >
<!-- Loaded dynamically -->
</div>
<div id="grpListView" class="panel grplistpanel" layout="Design">
<p class="just" style="margin-left: 0.5vw"><font style="font-size:0.86vw" ><i style="font-size:1.2vw" class="fa fa-sitemap"></i>   OME Group Set </font></p>
<hr>
<p class="just" style="font-weight: bold;">Tilesource:</p>
<ul class="just" id="currentTileSource" style="line-height: 30%; margin-left: 0.5vw">
<!-- Loaded dynamically -->
</ul>
<p class="just" id="itemGroupTitle" style="font-weight: bold;">Groups:</p>
<ul class="just" id="itemGroupsList" style="line-height: 100%; margin-left: 0.5vw">
<!-- Loaded dynamically -->
</ul>
</div>
<!-- Bars -->
<div id="grpListViewBar" class="bar grplistbar" style="line-height: 50%">
<!-- Loaded dynamically -->
</div>
<!-- Open Color Sliders -->
<div id="chColorContrastPanel" class="chnlsettingsright" layout="Design">
<table>
<colgroup>
<!-- Width of each column -->
<col style="width:85%">
<col style="width:15%">
</colgroup>
<tr>
<th style="text-align: left"><p class="just" style="margin-left: 0.5vw"><font style="font-size:0.86vw" ><i style="font-size:1.2vw" class="fa fa-sliders"></i>   CHNL SETTINGS </font></p> </th>
<th > <a href="javascript:void(0)" onclick="showSlidersMaxList()" title="Slider Max" ><i style="font-size:0.9vw; padding-right: 0.1vw" class="fa fa-cog" ></i></a> </th>
</tr>
</table>
<hr>
<table>
<colgroup>
<!-- Width of each column -->
<col style="width:40%">
<col style="width:50%">
<col style="width:10%">
</colgroup>
<tr>
<th style="text-align: left"><label>Color:</label></th>
<th ><div class="tooltip"><input id="chColorInputId" onchange="chColorChanged()" onmouseover="onColorPickerMouseover()"><span class="tooltiptext" style="width: 50%; left: 50%;" id="chColorInputTooltip"></span></div>
</th>
</tr>
<tr>
<th style="text-align: left"><label>Contrast-Max:</label></th>
<th ><div class="tooltip"><input type="range" min="1" max="65000" value="32500" class="slider" id="maxContrastRange" onchange="contrastChanged()" onmouseover="onContrastMaxSliderMouseover()" ><span class="tooltiptext" style="width: 50%; left: 50%;" id="contrastMaxValueTooltip"></span></div>
</th>
<th id="maxContrastSliderMax" style="visibility: collapse;">
<select id="maxContrastSliderMaxList" onChange = "onMaxContrastSliderMaxListChanged()" style="width: 1.2vw; height: 2vh; margin-top: 1.5vh;" >
<option value="-1" > </option>
<option value="100" > 100 </option>
<option value="1000" > 1k</option>
<option value="10000" > 10k</option>
<option value="65000"> 65k</option>
</select>
</th>
</tr>
<tr>
<th style="text-align: left"><label>Contrast-Min:</label></th>
<th><div class="tooltip"> <input type="range" min="1" max="10000" value="500" class="slider" id="minContrastRange" onchange="contrastChanged()" onmouseover="onContrastMinSliderMouseover()" ><span class="tooltiptext" style="width: 50%; left: 50%;" id="contrastMinValueTooltip"></span></div>
</th>
<th id="minContrastSliderMax" style="visibility: collapse; ">
<select id="minContrastSliderMaxList" onChange = "onMinContrastSliderMaxListChanged()" style="width: 1.2vw; height: 2vh; margin-top: 1.5vh; " >
<option value="-1" > </option>
<option value="100" > 100 </option>
<option value="1000" > 1k</option>
<option value="10000" > 10k</option>
</select>
</th>
</tr>
</table>
<hr>
<table>
<colgroup>
<!-- Width of each column -->
<col style="width:33%">
<col style="width:34%">
<col style="width:33%">
</colgroup>
<tr>
<th><i style="font-size:1vw" onclick="confirmChColorContrastChanges()" class="fa fa-check-circle"></i></th>
<th><i style="font-size:1vw" onclick="cancelChColorContrastChanges()" class="fa fa-times-circle"></i></th>
<th><i style="font-size:1vw" onclick="resetChColorContrastChanges()" class="fa fa-undo"></i></th>
</tr>
</table>
</div>
<!------------------------------------------------------------------------------------------------------------------->
<!----------------------------------------------Analysis Layout------------------------------------------------------>
<!------------------------------------------------------------------------------------------------------------------->
<!-- Analysis Layout sideviews -->
<div id="grpOptionsView" class="panel groupoptionspanel" layout="Analysis">
<p class="just">
<font style="font-size:0.86vw" ><i style="font-size:1.4vw" class="fa fa-sliders" ></i>    CHNL OPTIONS</font>
</p>
<hr>
<ul id="channelOptionsList" class="just" style="list-style-type: none; line-height: 30%; margin-left: 0.5vw; padding-left: 0vw;">
<!-- Loaded dynamically -->
</ul>
<hr>
</div>
<!-- Bar -->
<div id="grpOptionsViewBar" class="bar groupoptionsbar" >
<!-- Loaded dynamically -->
</div>
<div id="grpFeaturesView" class="panel grpfeaturespanel" layout="Analysis">
<p class="just" style="margin-left: 0.5vw"><font style="font-size:0.86vw" ><i style="font-size:1.2vw" class="fa fa-th-list"></i>   Group Features </font></p>
<hr>
<p class="just" style="font-weight: bold;" id="currentGrpTitle">Group:</p>
<ul class="just" id="currentGroup" style="line-height: 30%; margin-left: 0.5vw">
<!-- Loaded dynamically -->
</ul>
<!-- <button class="accordion"><p id="grpBoundaryOptionsTitle" style="font-weight: bold;">Boundary Options</p></button> -->
<ul class="just" id="grpBoundaryOptions" style="list-style-type: none; line-height: 30%; margin-left: 0.5vw; padding-left: 0vw;">
<!-- Loaded dynamically -->
</ul>
<!-- <button class="accordion"><p class="just" id="grpFeatureOptionsTitle" style="font-weight: bold;">Feature Options</p></button> -->
<ul class="just" id="grpFeatureOptions" style="list-style-type: none; line-height: 30%; margin-left: 0.5vw; padding-left: 0vw;">
<!-- Loaded dynamically -->
</ul>
<!-- <button class="accordion"><p class="just" id="grpFramesTitle" style="font-weight: bold;">OSD Layers</p></button> -->
<ul class="just" id="grpChnlDisplyOptions" style="list-style-type: none; line-height: 30%; margin-left: 0.5vw; padding-left: 0vw;">
<!-- Loaded dynamically -->
</ul>
</div>
<!-- Bars -->
<div id="grpFeaturesViewBar" class="bar grpfeaturesbar" style="line-height: 50%">
<!-- Loaded dynamically -->
</div>
<!-- Open plot Histogram -->
<div id="chPlotsPanel" class="chnlplotsright" layout="Analysis">
<!-- <p class="just" style="margin-left: 0.5vw"><font style="font-size:0.86vw" ><i style="font-size:1.2vw" class="fa fa-sliders"></i>   CHNL PLOTS </font></p> -->
<table>
<colgroup>
<!-- Width of each column -->
<col style="width:50%">
<col style="width:50%">
</colgroup>
<tr>
<th >
<font style="font-size:0.86vw; font-weight: lighter;" ><i style="font-size:1.2vw" class="fa fa-bar-chart"></i>   CHNL PLOTS </font>
</th>
<th id="chartOperationsTableSpace"> </th>
</tr>
</table>
<hr style="margin-bottom: 0;">
<div id="chartContainer" style="height: 60%">
<canvas id="chartDrawCanvas" width="100%" height="60%" >
<!-- Loaded dynamically -->
</canvas>
</div>
<div id="chartOperationSettings" style="height: 5%;"></div>
</div>
<!-- Bars -->
<div id="chPlotsPanelSpecialBar" class="bar chnlplotsbar" style="line-height: 50%">
<!-- Loaded dynamically -->
</div>
<!-- Open Coordinate Panel -->
<!-- <div id="myCoordinatesBarLeft" class="coordinatesbarleft">
<p class="just"><i style="font-size:30px" class="fa fa-map-marker" ></i> <font size="4" id="coordinatesTitle" >   OME-Map</font></p>
<hr>
<p class="just" style="font-weight: bold;" id="imagePointId">Image:</p>
<p class="just" style="font-weight: bold;" id="viewportPointId">Viewport:</p>
<p class="just" style="font-weight: bold;" id="containerPointId">Container:</p>
</div> -->
<!-- Open OSD Caption Panel to show SPX/Grid tile ids -->
<!-- <div id="osdCaption" class="panel osdcaptionpanel" style="display: none" layout="Analysis">
<p id="osdCaptionParagraph">test</p>
</div> -->
<!-- Open Coordinate Panel -->
<div id="coordinates" class="panel coordinatespanel" style=" margin-left: 34vw; " layout="Analysis" >
<div class="coordinates-item"><i style="font-size:1.5vw" class="fa fa-map-marker" ></i></div>
<div class="coordinates-item"><p class="just" style="font-weight: bold;" id="imagePointId">Image :</p> </div>
<!-- <div class="coordinates-item"><p class="just" style="font-weight: bold;" id="viewportPointId">Viewport :</p> </div> -->
<div class="coordinates-item"> <p class="just" style="font-weight: bold;" id="containerPointId">Container :</p></div>
<div class="coordinates-item"> <p class="just" style="font-weight: bold;" id="currentTile">Tile :</p></div>
</div>
<!-- Open cell Navigator Panel -->
<div id="cellNavigator" class="panel navigatorpanel" style=" margin-left: 44vw; " layout="Analysis" >
<!-- Loaded dynamically -->
</div>
<!------------------------------------------------------------------------------------------------------------------->
<!---------------------------------------------- Forms ------------------------------------------------------------->
<!------------------------------------------------------------------------------------------------------------------->
<!-- Channels New Group Labeling Form -->
<div class="form-container grpform" id="grpLabelForm" layout="Design Form">
<div class="formtopnav">
<p >New Group</p>
<a href="javascript:void(0)" class="icon" onclick="closeGrpForm()">×</a>
</div>
<!-- <div> -->
<input type="text" id="grpName" placeholder="Title...">
<span onclick="addNewGrpBtn()" class="addFormBtn" >Add</span>
</div>
<!-- DAPI Channel Confirm Form -->
<div class="form-container channelform" id="DAPIChConfirmForm" layout="Design Form">
<div class="formtopnav">
<p >DAPI Channel</p>
<a href="javascript:void(0)" class="icon" onclick="closeDAPIChannelConfirmForm()">×</a>
</div>
<!-- <div> -->
<input type="text" id="DAPIChannelName" placeholder="Title..." readonly>
<span onclick="confirmDAPIChannelSelection()" class="addFormBtn" style="width:22%">Confirm</span>
</div>
<!-- Toolbar Settings Form -->
<div class="form-container settingsform" id="settingsForm" >
<div class="formtopnav">
<p >Settings</p>
<a href="javascript:void(0)" class="icon" onclick="closeSettingsForm()">×</a>
</div>
<button class="tablink" id="defaultOpenSettingsTab" onclick="openSettingsTab('Servers', this, 'black')">DSA Hosts</button>
<button class="tablink" onclick="openSettingsTab('Options', this, 'black')">Options</button>
<button class="tablink" onclick="openSettingsTab('Interface', this, 'black')">Interface</button>
<button class="tablink" onclick="openSettingsTab('About', this, 'black')">About</button>
<div id="Servers" class="tabcontent">
<div id="settingsFormServerList" style="padding: 1.2vh 0.8vw; " >
<!-- Loaded dynamically -->
</div>
</div>
<div id="Options" class="tabcontent">
<div id="settingsFormOptionsList" style="padding: 1.2vh 0.8vw; " >
<!-- Loaded dynamically -->
</div>
</div>
<div id="Interface" class="tabcontent">
<div id="settingsFormInterfaceList" style="padding: 1.2vh 0.8vw; " >
<!-- Loaded dynamically -->
</div>
</div>
<div id="About" class="tabcontent" style = "font-size:0.7vw">
<p>Version: HistoJS v1.0.0</p>
<p>Author: Mohamed Masoud</p>
<p>E-Mail: [email protected]</p>
</div>
</div>
<!-- Login Form -->
<div class="form-container loginform" id="loginForm" >
<div class="formtopnav">
<p >Host Login</p>
<a href="javascript:void(0)" class="icon" onclick="closeLoginForm()">×</a>
</div>
<div id="loginFormContents" style="padding: 1.2vh 0.8vw; " >
<table>
<colgroup>
<!-- Width of each column -->
<col style="width:40%">
<col style="width:60%">
</colgroup>
<tr>
<th style="text-align: left"><label for="user" style="color: black">User or Email</label></th>
<th > <input type="text" placeholder="Enter Username" onFocus="this.select();" id="userNameId" name="user" style="border: 0.05vw solid" ></th>
</tr>
<tr>
<th style="text-align: left"><label for="pass" style="color: black">Password</label></th>
<th><input type="password" placeholder="Enter Password" id="passwordId" name="pass" style="border: 0.05vw solid" ></th>
</tr>
</table>
<hr>
<table>
<colgroup>
<!-- Width of each column -->
<col style="width:25%">
<col style="width:25%">
<col style="width:25%">
<col style="width:25%">
</colgroup>
<tr>
<th></th>
<th><i style="font-size: 1vw" onclick="confirmLogin()" class="fa fa-check-circle"></i></th>
<th><i style="font-size: 1vw" onclick="cancelLogin()" class="fa fa-times-circle"></i></th>
<th></th>
</tr>
</table>
</div>
</div>
<div class="form-container demoform" id="demoForm" >
<div class="formtopnav">
<p>Offline Demo</p>
<a href="javascript:void(0)" class="icon" onclick="closeDemoForm()">×</a>
</div>
<div id="demoContent">
</div>
</div>
<div id="openseadragon1" >
<!-- <div id="screenLogo" class="screen-logo animate__animated animate__zoomIn" >
<img src="css/logo/HistoJS-logo.png" alt="logo" width="10%" height="10%" />
<h1 style="color: white; font-size: 2.5rem">HistoJS Demo</h1>
<p class="lead" style="color: white; font-size: 1.2rem">A user interface for whole slide image channel design, analysis and registration.<br> It is based on DSA as backbone server.</p>
</div> -->
</div>
<div class="screenlogocontainer" id="screenLogoContainer" >
</div>
<div id="hint" class="panel hintpanel" >
<span id="hintCloseSign" onclick="closeHint()" title="close">x</span>
<p id="hintParagraph"></p>
</div>
<div id="progressBarDiv" class="panel hintpanel" style="top:95vh" >
<div class="w3-container" >
<div class="w3-border" >
<div class="w3-white" style="height:2vh;width:10%;" id="progressBar"></div>
<!-- For use: openProgressBar() and closeProgressBar() -->
<!-- For use: document.getElementById("progressBar").style.width= "70%"; -->
</div>
</div>
</div>
<div id="loadingIcon" class ="panel" style="top: 50%; left: 50%; display: none" >
<i style="font-size:1.4vw; color: white; background-color: rgba(0,0,0,0);" class="w3-xxxlarge w3-spin fa fa-refresh" ></i>
</div>
<script>
//--------------------------------------------------------------------------//
//-----------------------------OpenSeadragon--------------------------------//
//--------------------------------------------------------------------------//
var viewer = OpenSeadragon({
id: "openseadragon1",
prefixUrl: "//openseadragon.github.io/openseadragon/images/",
tileSources: "",
showNavigationControl: false,
preserveViewport: true ,
//-- autoResize: true,
//-- showNavigator: true,
//-- navigatorPosition: "BOTTOM_LEFT",
debugMode :false,
maxZoomPixelRatio : 2.5
});
//-- viewer.addHandler('open', function(event) {
//-- viewer.viewport.goHome();
//-- console.log("opened")
//-- });
//-- viewer.bookmarkUrl({ trackPage: true });
viewer.scalebar({
//-- type: OpenSeadragon.ScalebarType.Microscopy,
pixelsPerMeter: 0,
minWidth: "3.5vw",
location: OpenSeadragon.ScalebarLocation.BOTTOM_RIGHT,
xOffset: 5,
yOffset: 10,
stayInsideImage: false,
color: "white",
fontColor: "rgb(255, 255, 255)",
backgroundColor: "rgba(0, 0, 0, 0.5)",
fontSize: "small",
barThickness: 2
});
var overlay = viewer.svgOverlay();
var svgOverlay = viewer.svgOverlay();
var rootNode = d3.select(svgOverlay.node());
viewer.gestureSettingsMouse.clickToZoom = false;
function onMouseTrackerMove(event) {
if(viewer.world.getItemCount()){
var tile = viewer.world.getItemAt(0);
//-- openCoordinatesPanel();
//-- var viewerX = event.position.x;
//-- var viewerY = event.position.y;
var windowPoint = event.position;
//-- var windowPoint = new OpenSeadragon.Point(viewerX, viewerY);
var viewportPoint = viewer.viewport.windowToViewportCoordinates(windowPoint);
//-- console.log(viewer.viewport.pixelFromPoint(viewportPoint))
var currentImage = viewer.world.getItemAt(viewer.world.getItemCount()-1);
var imagePoint = currentImage.viewportToImageCoordinates(viewportPoint);
if(((imagePoint.x >= 0) && (imagePoint.x <= tile.getContentSize().x)) && ((imagePoint.y >= 0) && (imagePoint.y <= tile.getContentSize().y))) {
document.getElementById("imagePointId").innerHTML="Image: " + "(" + Math.round(imagePoint.x) + "," + Math.round(imagePoint.y) + ")";
}
//-- document.getElementById("viewportPointId").innerHTML="Viewport:" + viewportPoint;
document.getElementById("containerPointId").innerHTML="Container: " + "(" + Math.round(windowPoint.x) + "," + Math.round(windowPoint.y) + ")";
}}
mouseTracker = new OpenSeadragon.MouseTracker({
element: viewer.container,
moveHandler: onMouseTrackerMove,
}).setTracking(Opts.defaultOsdMouseTracking);
//-- viewer.addHandler("tile-loaded", tileLoadedHandler);
//-------------------------------------------------//
var mainUI = { view: "template", gravity: 3, content: "openseadragon1" };
webix.ready(function () {
webix.ui(mainUI);
})
var Settings = []
Settings.dsaServers = initServerList();
Settings.options = [];
Settings.options = initOptionsList();
Settings.interface = [];
Settings.interface = initInterfaceList();
if(Settings.dsaServers.length){
initHostList(); // load first tile with first group
}
//-- initScreenLogo();
</script>
</body>
</html>