Skip to content

Commit

Permalink
issue #17 and #26
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul committed Dec 7, 2021
1 parent 9b95e14 commit 0a0e121
Showing 3 changed files with 14 additions and 6 deletions.
9 changes: 5 additions & 4 deletions breath_plot.html
Original file line number Diff line number Diff line change
@@ -136,7 +136,7 @@
<label for="max_l">L:</label>
<slot name="obs-min">222</slot>

<input id="input" class="fence" type='text'>
<input class="fence" type='text'>
</input>

</div>
@@ -223,10 +223,10 @@ <h1 class="display-4">VentMon Respiration Analysis</h1>
<div id="collapsingleftsidebar" >
<div id="leftsidebar" style="display: none">
<observable-setter id="pipmax-setter">
<span slot="obs-title">PIP (max):</span>
<span slot="obs-title">PIP (max):</span>
<span slot="obs-value">0</span>
<span slot="obs-max">40</span>
<span slot="obs-min">0</span>
<span id="max" slot="obs-max">40</span>
<span id="low" slot="obs-min">0</span>
</observable-setter>
<observable-setter id="pipavg-setter" class="engineering_only">
<span slot="obs-title">P. Mean:</span>
@@ -563,6 +563,7 @@ <h1 class="display-4">VentMon Respiration Analysis</h1>
</div>



<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/gitbrent/bootstrap4-toggle@3.6.1/js/bootstrap4-toggle.min.js"></script>

5 changes: 4 additions & 1 deletion css/standard.css
Original file line number Diff line number Diff line change
@@ -154,7 +154,7 @@ bg-cyan-300 border-2 border-solid border-red-300-contrast w-100% p-10 m-5 rounde
flex-direction: row;
justify-content: space-around;
height: 20%;
margin: 10px;
margin: 0 0.75rem 0 0.75rem;
padding: 10px;
}

@@ -163,12 +163,15 @@ bg-cyan-300 border-2 border-solid border-red-300-contrast w-100% p-10 m-5 rounde
flex-direction: row;
justify-content: space-around;
flex-wrap: nowrap;

}
#leftsidebar {
width: 25%;
padding-top: 10%;
}



.controllable-setter {
text-align: center;

6 changes: 5 additions & 1 deletion js/breath_plot_ctl.js
Original file line number Diff line number Diff line change
@@ -32,6 +32,7 @@ CLINICAL_COLORS = {
pressure: "green",
flow: "yellow",
text_color: "yellow",
border: "white",
}
ENGINEERING_COLORS = {
bg: "white",
@@ -1576,10 +1577,11 @@ function change_clinical() {
if ($("#clinical_display").is(":checked")) {
$(".engineering_only").hide();
$("#calcarea").css('background',CLINICAL_COLORS.sidebar_bg);
$("#calcarea *").css('background',CLINICAL_COLORS.sidebar_bg);
$("#calcarea *").css('color',CLINICAL_COLORS.text_color);
$(".settings_area").css('background',CLINICAL_COLORS.bg);
$("#data-area").css('background',CLINICAL_COLORS.bg);
$("#collapsingleftsidebar").css('background',CLINICAL_COLORS.sidebar_bg);
$("#leftsidebar").css('color',CLINICAL_COLORS.text_color);
} else {
$(".engineering_only").show();
$("#calcarea").css('background',ENGINEERING_COLORS.sidebar_bg);
@@ -1589,5 +1591,7 @@ function change_clinical() {
$(".settings_area").css('background',ENGINEERING_COLORS.bg);
$("#data-area").css('background',ENGINEERING_COLORS.bg);


}
}

0 comments on commit 0a0e121

Please sign in to comment.