Skip to content

Commit

Permalink
Merge pull request #408 from leoarc/roi
Browse files Browse the repository at this point in the history
Initial roi-feature in model app
  • Loading branch information
birm authored Jun 8, 2020
2 parents 26cbee3 + 5b67bee commit 83e90c2
Show file tree
Hide file tree
Showing 6 changed files with 1,028 additions and 428 deletions.
186 changes: 186 additions & 0 deletions apps/model/model.css
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,20 @@ ul.disabled {
#upload_panel .modalbox-content{
width: 30%;
}

#roi_panel .modalbox-content{
width: 45%;

}
#choice_panel .modalbox-content{
width: 25%;


}
#details_panel .modalbox-content{
width: 25%;

}
.form-style [type=url]:focus,
.form-style input[type=text]:focus,
.form-style input[type=number]:focus
Expand Down Expand Up @@ -314,6 +328,178 @@ ul.disabled {
font-size: 14px;
cursor: pointer;
}

.btn-sel {

border: 10px ;
border-color: black;
padding: 10px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
border-radius: 100%
}
.btn-sel:hover {
background-color: #3e8e41;
transform: scale(1.3);
cursor: pointer;


}

body{
color: black;
}
.message {
color: #0c5460;
background-color: #d1ecf1;
border-color: #bee5eb;
padding: 10px 20px 10px 20px;
}

#choicedata {
font-size: 16px;
}

.check {
display: block;
position: relative;
padding-left: 35px;
cursor: pointer;
font-size: 14px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

/* Hide the browser's default checkbox */
.check input {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
}

/* Create a custom checkbox */
.checkmark {
position: absolute;
top: 0;
left: 0;
height: 25px;
width: 25px;
background-color: #eee;
}

/* On mouse-over, add a grey background color */
.check:hover input ~ .checkmark {
background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.check input:checked ~ .checkmark {
background-color: #2196F3;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
content: "";
position: absolute;
display: none;
}

/* Show the checkmark when checked */
.check input:checked ~ .checkmark:after {
display: block;
}

/* Style the checkmark/indicator */
.check .checkmark:after {
left: 9px;
top: 5px;
width: 5px;
height: 10px;
border: solid white;
border-width: 0 3px 3px 0;
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
}


#textInput{
width: 10%;
float: right;
}

.cnt-btn {

text-align: center;
font-size: 16px;

}
#submit1{
padding : 3% 6% 3% 6%;

color: white;
background-color:#46a049 !important;
border-radius: 7%;
}

#submit1:hover {

transform: scale(1.2);
cursor: pointer;


}

#snackbar {
visibility: hidden; /* Hidden by default. Visible on click */
min-width: 250px; /* Set a default minimum width */
margin-left: -125px; /* Divide value of min-width by 2 */
background-color: #333; /* Black background color */
color: #fff; /* White text color */
text-align: center; /* Centered text */
border-radius: 2px; /* Rounded borders */
padding: 16px; /* Padding */
position: fixed; /* Sit on top of the screen */
z-index: 1; /* Add a z-index if needed */
left: 50%; /* Center the snackbar */
bottom: 30px; /* 30px from the bottom */
border-radius: 10px;
}


/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
visibility: visible; /* Show the snackbar */
/* Add animation: Take 0.5 seconds to fade in and out the snackbar.
However, delay the fade out process for 2.5 seconds */
-webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
from {bottom: 0; opacity: 0;}
to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
from {bottom: 0; opacity: 0;}
to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
from {bottom: 30px; opacity: 1;}
to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
from {bottom: 30px; opacity: 1;}
to {bottom: 0; opacity: 0;}
}
12 changes: 10 additions & 2 deletions apps/model/model.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,18 @@
<script type='text/javascript' src='../../common/LocalStore.js'></script>
<script type='text/javascript' src='../../common/NanoBorbMods.js'></script>
<script type='text/javascript' src='../../common/dynamicLoadScript.js'></script>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<!-- <script src="../../dist/imgbox_package.js"></script> -->

<script type="text/javascript" src="//stuk.github.io/jszip/dist/jszip.js"></script>
<script type="text/javascript" src="//stuk.github.io/jszip-utils/dist/jszip-utils.js"></script>
<script type="text/javascript" src="//stuk.github.io/jszip/vendor/FileSaver.js"></script>
<script type='text/javascript' src='../../common/sizeof.compressed.js'></script>

<!--
<script src='../viewer/uicallbacks.js'></script>
<script src='../viewer/dataloaders.js'></script>
<script src='../viewer/init.js'></script>
-->

<!-- segment css -->
<link rel="stylesheet" type='text/css' href='./model.css'>

Expand All @@ -159,8 +163,12 @@
<div id="upload_panel"></div>
<div id="model_info"></div>
<div id="help"></div>
<div id="roi_panel"></div>
<div id="choice_panel"></div>
<div id="details_panel"></div>
<div id="chngClass"></div> <!-- modal box to change class list -->
<div id="popup-container"></div>
<div id="snackbar"></div>
</body>

<script src='model.js'></script>
Expand Down
Loading

0 comments on commit 83e90c2

Please sign in to comment.