Skip to content

Commit

Permalink
Merge pull request #258 from camicroscope/develop
Browse files Browse the repository at this point in the history
For 3.6.1, bugfixes (testing and upload btn), and improvements
  • Loading branch information
birm authored Mar 27, 2020
2 parents 39d2d68 + 5964993 commit 4c069eb
Show file tree
Hide file tree
Showing 18 changed files with 6,798 additions and 677 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
sudo: required
language: node_js
node_js:
- "8"
- "12"
install:
- npm install
- npm ci
- npm install jsdom
- npm install -g http-server
- npm install -g mocha

Expand Down
39 changes: 35 additions & 4 deletions apps/landing/landing.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,22 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="./main.css" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.png">
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
</head>
<body>



<!-- Header -->

<header id="header" >
<!-- <header id="header" >
<nav id= "nav" class="navbar navbar-expand-md navbar-dark fixed-top bg-dark" style="position: sticky;">
<button style="display:none;" class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
Expand All @@ -28,8 +36,31 @@
</nav>
</header>

</header> -->

<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark" style="position: sticky; margin-top: -4em;">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse" >
<ul class="navbar-nav mr-auto">
<li class="nav-item active link" style="font-family: sans-serif;">
<a class="nav-link" href="landing.html">Home</a>
</li>
<li class="nav-item link" style="font-family: sans-serif;">
<a class="nav-link" href="../table.html">Slides</a>
</li>
</ul>
<ul class="navbar-nav">
<li class="nav-item link" style="font-family: sans-serif;">
<a class="nav-link" href="../signup/signup.html">Signup</a>
</li>
<li class="nav-item link" style="font-family: sans-serif;">
<a class="nav-link" target="_blank" href="https://docs.google.com/forms/d/e/1FAIpQLScL91LxrpAZjU88GBZP9gmcdgdf8__uNUwhws2lzU6Lr4qNwA/viewform">Feedback</a>
</li>
</ul>
</div>
</nav>


<!-- Main -->
Expand Down Expand Up @@ -120,4 +151,4 @@ <h3>Source Code</h3>



</html>
</html>
16 changes: 8 additions & 8 deletions apps/landing/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
article, aside, details, figcaption, figure, footer, hgroup, menu, nav, section {
display: block;
}

Expand Down Expand Up @@ -4714,15 +4714,15 @@

}
.link{
letter-spacing: 0.02em;
text-transform: uppercase;
font-size: 1em;
font-weight: 600;
font-size: 0.99em;
font-weight: bold;
color: #5e6875;
text-decoration-line: none;
text-decoration-style: solid;
text-decoration-color: currentcolor;
text-decoration-thickness: auto;
text-decoration:none;
padding-right: 0.7rem;
padding-left: 0.7rem;
margin-top: 0.2rem;
font-family: "Open Sans", Helvetica, sans-serif;
}
line-height: 1.8;
}
6 changes: 6 additions & 0 deletions apps/segment/segment.js
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,7 @@ function watershed(inn, out, save=null, thresh) {
}
console.log(segcount);
console.log("Done Drawing Contours");
window.segcnt = segcount // Will be used later in downloadCSV function

// Update the count
let clabel = document.getElementById('segcount');
Expand Down Expand Up @@ -1292,6 +1293,11 @@ function download(canvas, filename) {

// Build a csv of the polygons and associated metadata
function buildAndDownloadCSV(contours,fname) {
if(segcnt === 0)
{
alert("Nothing to download");
return;
}
let data = '';
let tmp = new cv.Mat();
const self = $UI.segmentPanel;
Expand Down
2 changes: 1 addition & 1 deletion apps/segment/segmentpanel/segmentpanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
function SegmentPanel(viewer){

const temp = `
<div id='close' class='material-icons settings'>close</div>
<div id='close' class='material-icons settings' title='Close Panel'>close</div>
<div id='save' class='material-icons settings' title='Save ROI Image'>save</div>
<div id='savecsv' class='material-icons settings' title='Save ROI CSV File'>list</div>
<div id='thresh' class='material-icons settings' title='Open Segmentation Settings'>all_out</div>
Expand Down
Binary file removed apps/signup/bg_img.jpg
Binary file not shown.
155 changes: 73 additions & 82 deletions apps/signup/signup.css
Original file line number Diff line number Diff line change
@@ -1,100 +1,91 @@
/* signup.css */


body {
color: #fff;
background: url(bg_img.jpg);
background-size: cover;
font-family: sans-serif;
color: #999;
background: #f5f5f5;
font-family: 'Roboto', sans-serif;
}
* {
box-sizing: border-box;
text-decoration: none;

.form-control, .form-control:focus, .input-group-addon {
border-color: #e1e1e1;
border-radius: 0;
}

.login-panel {
width: 320px;
/*height: 420px;*/
background: rgba(0, 0, 0, 0.5);
top: 50%;
left: 50%;
position: absolute;
transform: translate(-50%, -50%);
border-radius: 15px;
padding:0 35px;
.signup-form {
width: 390px;
margin: 0 auto;
padding: 30px 0;
}
.login-panel h1 {
.signup-form h2 {
color: #636363;
margin: 0 0 15px;
text-align: center;
margin: 35px auto;
background: linear-gradient(120deg,#8e44ad, #3498db);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.txtb {
border-bottom: 2px solid #fff;
position: relative;
margin: 30px 0 0 0;
.signup-form .lead {
font-size: 14px;
margin-bottom: 30px;
text-align: center;
}


.txtb input {
font-size: 15px;
color: #fff;
border: none;
width: 100%;
outline: none;
background: none;
padding: 0 5px;
height: 40px;
.signup-form form {
border-radius: 1px;
margin-bottom: 15px;
background: #fff;
border: 1px solid #f3f3f3;
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
padding: 30px;
}

input[type=radio] {
margin: 15px 10px 0 50px;
transition: .5s;
.signup-form .form-group {
margin-bottom: 20px;
}
input[type=radio]:checked+label {
color: #8e44ad;
font-weight: bold;
.signup-form label {
font-weight: normal;
font-size: 13px;
}
.bottom-text {
font-size: 12px;
padding-top: 7px;
.signup-form .form-control {
min-height: 38px;
box-shadow: none !important;
border-width: 0 0 1px 0;
}
.signup-form .input-group-addon {
max-width: 42px;
text-align: center;
background: none;
border-width: 0 0 1px 0;
padding-left: 5px;
}



.sub-btn {
border-radius: 25px;
display: block;
width: 100%;
height: 35px;
.signup-form .btn {
font-size: 16px;
font-weight: bold;
background: #19aa8d;
border-radius: 3px;
border: none;
background: linear-gradient(120deg,rgba(52, 152, 219,.8), #8e44ad,rgba(52, 152, 219,.8));
background-size: 200%;
color: #fff;
outline: none;
cursor: pointer;
transition: .5s;
margin-top: 10px;
min-width: 140px;
outline: none !important;
}



.sub-btn:hover {
background-position: right;
.signup-form .btn:hover, .signup-form .btn:focus {
background: #179b81;
}
.signup-form a {
color: #19aa8d;
text-decoration: none;
}
.signup-form a:hover {
text-decoration: underline;
}
.signup-form .fa {
font-size: 21px;
}

.login-tips {
padding: 10px;
color: #8e44ad;
.link{
letter-spacing: 0.02em;
text-transform: uppercase;
font-size: 0.99em;
font-weight: bold;
margin: 35px 0;
border-radius: 15px;
background: rgba(200, 214, 229,0.7);
/* width: 100px;
height: 100px;
position: absolute;
top:-50px;
left: calc(50% - 50px);*/
}
color: #5e6875;
text-decoration:none;
padding-right: 0.7rem;
padding-left: 0.7rem;
margin-top: 0.2rem;
font-family: "Open Sans", Helvetica, sans-serif;
line-height: 1.8;
}

Loading

0 comments on commit 4c069eb

Please sign in to comment.