-
Notifications
You must be signed in to change notification settings - Fork 305
Expand file tree
/
Copy pathtable.html
More file actions
340 lines (317 loc) · 18.4 KB
/
Copy pathtable.html
File metadata and controls
340 lines (317 loc) · 18.4 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="keywords" content="camicroscope, quip" />
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<meta name='viewport'
content='width=device-width, initial-scale=1, minimum-scale=1.0, maximum-scale=2.0'>
<!-- common -->
<link rel='stylesheet' type='text/css' media='all' href='./common.css'/>
<!-- Check If we're logged in ok, otherwise, log in for us -->
<!-- Font Awesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">
<script src='../common/authChecker.js'></script>
<script>
__auth_check(1)
</script>
<script src='../core/Store.js'></script>
<script src='../common/util.js'></script>
<script src='../common/ajv.js'></script>
<script src='../components/loading/loading.js'></script>
<script src="./loader/loader.js"></script>
<script src="./loader/chunked_upload.js"></script>
<script src="https://apis.google.com/js/api.js"></script>
<title>CaMicroscope Data Table</title>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"
></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-wEmeIV1mKuiNpC+IOBjI7aAzPcEZeedi5yW5f2yOq55WWLwNGmvvx4Um1vskeMj0"
crossorigin="anonymous">
<link rel="stylesheet" href="../common/stacktable.css">
<!-- popup css -->
<link rel="stylesheet" type="text/css" media="all" href="../../css/popup.css" />
<script src='../common/stacktable.js'></script>
<link rel="stylesheet" href="./table.css" />
<link rel="shortcut icon" type="image/x-icon" href="/apps/landing/favicon.png">
</head>
<body>
<div class="page-container">
<div>
<nav class="navbar navbar-expand-lg navbar-dark fixed-top bg-dark" style="position: sticky; margin-top: -4em;">
<div class="container-fluid">
<button class="navbar-toggler m-1" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent" >
<ul class="navbar-nav mr-auto gap-1">
<li class="nav-item link" style="font-family: sans-serif;">
<a class="nav-link" href="landing/landing.html"> <i class="fas fa-home"></i> Home</a>
</li>
<li class="nav-item active link" style="font-family: sans-serif;">
<a class="nav-link" href="table.html"> <i class="fas fa-list-ul"></i> Slides</a>
</li>
<li class="nav-item link">
<a class="nav-link" href="Info.html"> <i class="fas fa-info-circle"></i> Info</a>
</li>
<li class="nav-item link">
<a class="nav-link" href="./dev-workbench/workbench.html"> <i class="fas fa-pencil-ruler"></i> Workbench</a>
</li>
<li class="nav-item link">
<a class="nav-link" href="./port/export.html"> <i class="fas fa-solid fa-file-export"></i> Export</a>
</li>
<li class="nav-item link" style="font-family: sans-serif;">
<a class="nav-link" href="./signup/signup.html"> <i class="fas fa-user-plus"></i> Signup</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="header text-center text-white bg-info p-4">
<h1 class="h1">caMicroscope</h1>
<p style="font-weight: bold; font-size: 14pt;">Digital pathology image viewer with support for human/machine generated annotations and markups. View, Edit, and Manage Your Slides Here.</p>
<div style="align-content: center;">
<div style="align-content: center;">
<div class="btn-group" role="group">
<button type="button" style="border-color: white;" class="btn btn-secondary bg-white text-dark margin-right: 10px; " title="Slides Table"><i class="fas fa-list-alt"></i> Slides</button>
<a href="./Info.html"> <button style="border-color: white; border-radius: 0 5px 5px 0; margin-left: 10px;" type="button" class="btn btn-secondary bg-info text-light" title="Information Dashboard"><i class="fas fa-info-circle"></i> Info</button> </a></div>
</div>
</div>
</div>
<div class="bg-light" style="overflow-x:scroll;">
<div class="p-2">
<div class="d-flex justify-content-between">
<div class="d-md-inline-flex m-2 w-100">
<div style="padding:0 1rem">
<div class="row">
<ul id = "collection-list" class="list-group">
<li class="list-group-item d-flex align-items-center justify-content-between active">
<i class="fas fa-archive"></i>
<div style="padding:0.2rem;font-weight: bold; font-size: large;">Collection</div>
<i class="fas fa-plus" style="cursor: pointer;"></i>
</li>
</ul>
</div>
</div>
<div class="w-100">
<div>
<div class="row" id="filters-heading">
</div>
<div class="row" id="filters-check" >
</div>
<div class="search-box float-left form-group d-md-inline-flex mb-4 mx-md-1">
<div class="w-sm-50 pl-md-2 pt-2">
<select id='entries' class="select form-control">
<option value="10" selected>10 slides/page</option>
<option value="20">20 slides/page</option>
<option value="40">40 slides/page</option>
<option value="50">50 slides/page</option>
<option value="100">100 slides/page</option>
</select>
</div>
<div class="form-group has-search w-sm-50 pl-md-2 pt-2 mx-md-1">
<span class="fa fa-search form-control-feedback"></span>
<input id="search-table" type="text" class="form-control" placeholder="Search">
</div>
</div>
</div>
<div class="table-responsive ">
<table id='datatables' class="table table-striped"></table>
</div>
</div>
</div>
<div class="d-md-inline-flex" style="width:20%; margin-right: 30px;">
<div class="pl-md-2 pt-2">
<button type="button" data-bs-toggle="modal" data-bs-target="#dicom"
class="btn btn2 btn-success float-right w-md-100" style="background-color: cadetblue; padding: 7px; margin-right: 5px;" onclick="setDicomParams();"> <i
class="fas fa-server"></i>
<span class="ml-2"> DICOM</span> </button>
</div>
<div class="pl-md-2 pt-2">
<button type="button" class="btn btn2 btn-success float-right w-md-100" style="padding: 7px; margin-right: 5px;"
onclick="(()=>{location.reload();return false;})()"> <i class="fas fa-sync-alt"></i>
Reload </button>
</div>
<div>
<div id="slideUploadButton" class="btn-group float-right pl-md-2 pt-2">
<button type="button" class="btn btn-primary d-flex align-items-center" data-bs-toggle="modal"
data-bs-target="#upload-dialog" onclick="hidePostButton(); hideCheckButton(); resetUploadForm();" > <i class="fas fa-upload"></i> <span class=""> Upload</span></button>
<button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="sr-only">Toggle Dropdown</span>
</button>
<div class="dropdown-menu" >
<a class="dropdown-item" href="../apps/batchloader/batchloader.html">Upload Batch</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="dicom" tabindex="-1" role="dialog" aria-labelledby="title-of-dialog-dicom"
aria-hidden="true" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="title-of-dialog-dicom">DICOM Server</h5>
<button type="button" class="close" onclick="initialize();" data-bs-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<table class="table table-borderless" style="margin-top: 1em; padding: 5px;">
<tbody>
<tr id="dicomServerRow">
<td ><b>Server</b></td>
<td><input type="text" class="form-control" disabled=""
name="token" id="dicomServer"></td>
</tr>
</tbody>
</table>
</div>
<div class="text-center">
<a id="dicomExplorerBtn" style="margin-top: 1em; margin-bottom: 4em" class="btn btn-info">DICOM
Explorer</a>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" onclick="initialize();"
data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="upload-dialog" tabindex="-1" role="dialog"
aria-labelledby="title-of-dialog" aria-hidden="true" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="title-of-dialog">Upload New Slide</h5>
<button type="button" class="close" onclick="initialize();" data-bs-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div>
<div id="upload_form">
<div class="alert alert-info" role="alert">
<h3>Steps for uploading.</h3>
<ul>
<li>Select the file you wish to upload. The <b>Token</b> field should be automatically populated .</li>
<li>Enter the desired filename, including its extension, for the destination file.</li>
<li>Click on the <b><i class="fas fa-arrow-right"></i></b> button to preview the slide.</li>
<li>Click on <b>Finish Upload</b> to complete the process and post the slide to caMicroscope.</li>
</ul>
</div>
<div>
<form id="upload-form">
<table class="table table-borderless" cellpadding="5" cellspacing="0">
<tr>
<td align="right"><b>File</b></td>
<td id="fileUploadInput">
<span class="input-group mb-3" >
<span class="custom-file fileInputClass">
<input type="file" class="custom-file-input" id="input" onchange="handleUpload(this.files)">
<label class="custom-file-label" for="input" style="overflow: hidden;">Choose file</label>
</span>
<div class="form-group urlUploadClass" style="display:none; flex-wrap:wrap">
<input type="url" placeholder="Enter file URL" class="form-control" id="urlInput" style="width: 20em;" required>
<button type="button" class="btn btn-info" onclick="urlInputChange();" style="margin-left: 0.6em; margin-right:-5em" >Upload</button>
</div>
</span> <div id="uploadLoading" style="display: none;"><span>Uploading...</span> <br>
<div class="spinner-grow text-primary" role="status" style="margin-left: 1.2em;">
<span class="sr-only"></span>
</div> </div>
<a title="Upload from google drive" href="#" id='gdriveUpload' onclick="googlePickerStart()"><i style="font-size: 1.2em;" class="fab fa-google-drive"></i></a>
<a href="#" id='urlswitch' onclick="$('#urlInput').val(''); switchToUrl();" > <span style="position: absolute; right:2em;" > <i class="fas fa-link"></i> Upload from URL</span></a>
<a href="#" style="display: none;" id="fileswitch" onclick=" switchToFile();" > <span style="position: absolute; right:2em;" > <i class="fas fa-folder"></i> Upload from local</span></a>
</td>
</tr>
<tr id="filenameRow">
<td><b>Filename</b></td>
</tr>
<tr id="tokenRow">
<td ><b>Token</b></td>
</tr>
<tr id="slidenameRow">
<td ><b>Slidename</b></td>
</tr>
<tr id="filterRow">
<td><b>Filter (leave blank for public)</b></td>
</tr>
</table>
<div id="upload-progress-div" style="display: none; align-content: center;">
<div class="progress" style="width: 50%; margin: 0 auto">
<div id="upload-progress" class="progress-bar" role="progressbar" style="width: 0%;" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
</div> <br>
</div>
<div class="text-center" id="controlButtons">
<button class="btn btn-primary" type="button" id="finish_btn" style="display: none;"
value="Finish Upload" onclick="validateForm(finishUpload)"><i class="fas fa-arrow-right"></i></button>
<button class="btn btn-success" type="button" id="post_btn" value="Post"
onclick="validateForm(PostBtn)">Finish Upload</button>
</div>
</form>
</div>
<div class="text-center p-2">
<div id="load_status" class="p-1"></div>
<div id="json_table"></div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" onclick="initialize();" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!--Delete Modal -->
<div class="modal fade" id="deleteModal" tabindex="-1" role="dialog" aria-labelledby="deleteModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="deleteModalLabel">Delete confirmation</h5>
<button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body" id="confirmDeleteContent"></div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
<button type="button" id='confirmDelete' data-bs-dismiss="modal" class="btn btn-danger">Yes</button>
</div>
</div>
</div>
</div>
<!--Slide Name change Modal -->
<div class="modal fade" id="slideNameChangeModal" tabindex="-1" role="dialog" aria-labelledby="slideNameChangeModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="slideNameChangeModalLabel">Slide name change confirmation</h5>
<button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<form onsubmit="return false">
<div class="modal-body" id="confirmUpdateSlideContent"></div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
<button type="submit" id='confirmUpdateSlide' class="btn btn-info">Update</button>
</form>
</div>
</div>
</div>
<!-- popup -->
<div id="popup-container"></div>
</div>
</div>
<!-- footer -->
<footer id="footer-layout"></footer>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-p34f1UUtsS3wqzfto5wAAmdvj+osOnFyQFpp4Ua3gs/ZVWx6oOypYoCJhGGScy+8" crossorigin="anonymous"></script>
<script src="./table.js"></script>
<!-- script to call a footer(layout footer in the common > utils folder) function -->
<script> insertFooterLayout();</script>
</body>
</html>