Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoranzhou committed Mar 20, 2024
1 parent 302b620 commit 532751a
Showing 1 changed file with 34 additions and 5 deletions.
39 changes: 34 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@
Animal
</label>
</div>
<div class="col-auto form-check form-check-inline">
<input class="form-check-input" type="checkbox" value="" id="EnvironmentalCheck">
<label class="form-check-label" for="EnvironmentalCheck">
Environmental
</label>
</div>
</div>
</div>

Expand Down Expand Up @@ -158,6 +164,13 @@
Controlled environment chamber
</label>
</div>

<div class="col-auto form-check form-check-inline">
<input class="form-check-input" type="checkbox" value="" id="IncubatorCheck">
<label class="form-check-label" for="IncubatorCheck">
Incubater
</label>
</div>
</div>
</div>

Expand Down Expand Up @@ -211,6 +224,12 @@
Images
</label>
</div>
<div class="col-auto form-check form-check-inline">
<input class="form-check-input" type="checkbox" value="" id="OthersCheck" checked=true>
<label class="form-check-label" for="OthersCheck">
Others
</label>
</div>
</div>
</div> <!-- Button trigger modal -->
<div class="d-flex justify-content-center">
Expand All @@ -229,7 +248,7 @@ <h5 class="modal-title" id="suggestionModalLabel">Based on your answers, we thin

<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<span class="m-3" >If this information does not fit your experimental setup, you still use swate and ARCitect to manamgement your research data </span>
<span class="m-3" >The information in this table focuses on the most common plant experiments. If this quiz does not fit your experimental setup, you will still be able to use the DataPLANT tools, such as Swate and ARCitect, to manage your data.</span>
<div class="modal-body">
<table class="table table-hover">
<thead>
Expand Down Expand Up @@ -340,15 +359,18 @@ <h5 class="modal-title" id="suggestionModalLabel">Based on your answers, we thin
let q2Ids = getChecked(q2);
let q3Ids = getChecked(q3);

let repoText = ["","","","",""];
let misText = ["","","","",""];
let swateText = ["","","","",""];
let repoText = ["","","","","","","",""];
let misText = ["","","","","","","",""];
let swateText = ["","","","","","","",""];



for ( const [index, element] of metadata.entries() ){
const list = element.q1.replaceAll(" ", "").split(";");


if (list.some((ids) => q1Ids.includes(ids))) {

if (element.q1.replace(" ", "").split(";").some((element) => q1Ids.includes(element))) {
for (const idd in q3Ids){

if (element["biological data domain"].toLowerCase().includes(q3Ids[idd].toLowerCase())){
Expand Down Expand Up @@ -376,6 +398,9 @@ <h5 class="modal-title" id="suggestionModalLabel">Based on your answers, we thin
case "images":
loc = 6;
break;
case "others":
loc = 7;
break;
}


Expand Down Expand Up @@ -437,6 +462,10 @@ <h5 class="modal-title" id="suggestionModalLabel">Based on your answers, we thin
case "images":
loc = 6;
break;
case "others":
loc = 7;
break;

}
var htmlText = `<tr>
<td>
Expand Down

0 comments on commit 532751a

Please sign in to comment.