Skip to content

Commit

Permalink
load slide from table page
Browse files Browse the repository at this point in the history
  • Loading branch information
vikasgola committed Mar 4, 2020
1 parent 17552ad commit 1ac99ef
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 309 deletions.
8 changes: 0 additions & 8 deletions apps/landing/landing.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,6 @@ <h3>caMicroscope</h3>
<a href="../table.html" class="button">More</a>
</div>
</section>
<section class="post">
<a target="_blank" href="../loader/loader.html" class="image"><img src="./camic.jpg" style="-webkit-filter: hue-rotate(30deg);filter: hue-rotate(30deg);" alt=""/></a>
<div class="content">
<h3>Load an Image</h3>
<p>Load Openslide Compatible Images</p>
<a target="_blank" href="../loader/loader.html" class="button">More</a>
</div>
</section>
<section class="post">
<a target="_blank" href="https://github.com/camicroscope/" class="image"><img src="./code.jpg" alt=""/></a>
<div class="content">
Expand Down
2 changes: 1 addition & 1 deletion apps/loader/chunked_upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ function continue_upload(token){
}
}
function finish_upload(){

var reset = true
for(var i=0; i<document.getElementById("fileIdRow").cells.length-1;i++){
let token = document.getElementById("token"+i).value
let filename = document.getElementById("filename"+i).value
let body = {filename: filename}
console.log({finish_url, filename, token});
changeStatus("UPLOAD", "Finished Reading File, Posting")
let reg_req = fetch(finish_url + token,{method:'POST', body: JSON.stringify(body),headers: {
"Content-Type": "application/json; charset=utf-8"
Expand Down
55 changes: 0 additions & 55 deletions apps/loader/loader.html

This file was deleted.

4 changes: 1 addition & 3 deletions apps/loader/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ function changeStatus(step, text, reset=true){
if(reset){
table = document.createElement("table")
table.id = "statusTable"
table.setAttribute('border', '1')
table.setAttribute('cellpadding', '10%')
table.style.borderCollapse = "collapse"
table.classList = "table";

//Add table headers:
var tr = table.insertRow(-1)
Expand Down
Loading

0 comments on commit 1ac99ef

Please sign in to comment.