Skip to content

Commit

Permalink
Add some tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
noisymime committed May 6, 2024
1 parent 45cb832 commit 20c6117
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 86 deletions.
30 changes: 15 additions & 15 deletions UI/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1462,23 +1462,23 @@ input, select, textarea {
font-size: 0.75em;
}

#footer a {
color: #ddd;
color: rgba(255, 255, 255, 0.65);
-moz-transition: color .25s ease-in-out;
-webkit-transition: color .25s ease-in-out;
-ms-transition: color .25s ease-in-out;
transition: color .25s ease-in-out;
}
#footer a {
color: #ddd;
color: rgba(255, 255, 255, 0.65);
-moz-transition: color .25s ease-in-out;
-webkit-transition: color .25s ease-in-out;
-ms-transition: color .25s ease-in-out;
transition: color .25s ease-in-out;
}

#footer a:hover {
color: white;
}
#footer a:hover {
color: white;
}

#footer .copyright {
list-style: none;
padding-left: 0;
}
#footer .copyright {
list-style: none;
padding-left: 0;
}

#footer .copyright li {
display: inline-block;
Expand Down
142 changes: 71 additions & 71 deletions UI/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,78 +43,78 @@
</ul>
</article>

<!-- Live -->
<article id="live" class="panel">
<div class="row">
<div class="column40">
<div class="row">
<div class="col-5">RPM Mode: </div>
<div class="col-2">
<select id="rpmSelect" onChange="setRPMMode()">
<option value="2">Use potentiometer</option>
<option value="1">Fixed RPM</option>
<option value="0">Sweep</option>
</select>
</div>
</div>
<div class="row">
<div class="col-5">Fixed RPM: </div>
<div class="col-1">
<input type="number" id="fixedRPM" min="0" max="10000" step="1" value="2500" onChange="sendConfig()" disabled>
</div>
</div>
<div class="row">
<div class="col-5">RPM Sweep range: </div>
<div class="col-3">
<input type="number" id="rpmSweepMin" min="0" max="10000" step="1" value="100" onChange="sendConfig()" disabled>
</div>
<div class="col-2">
<input type="number" id="rpmSweepMax" min="0" max="10000" step="1" value="6000" onChange="sendConfig()" disabled>
</div>
</div>
<div class="row">
<div class="col-5">RPM Sweep speed: </div>
<div class="col-2">
<input type="range" id="rpmSweepSpeed" min="200" max="4000" step="10" value="3000" onChange="sendConfig()" disabled>
</div>
</div>
<div class="row">
<div class="col-7">Enable compression: </div>
<div class="col-2">
<input type="checkbox" id="compressionEnable" onChange="toggleCompression()">
</div>
</div>
<div class="row">
<div class="col-7">Configuration: </div>
<div class="col-2">
<select id="compressionMode" onChange="sendConfig()" disabled>
<option value="1">2-cyl 4 stroke</option>
<option value="3">4-cyl 4 stroke</option>
<option value="4">6-cyl 4 stroke</option>
<option value="5">8-cyl 4 stroke</option>
</select>
</div>
</div>
<div class="row">
<div class="col-7">Compression below: </div>
<div class="col-4">
<input type="number" id="compressionRPM" min="20" max="1000" step="1" value="400" onChange="sendConfig()" disabled> RPM
</div>
</div>
<div class="row">
<div class="col-7">Offset (Deg): </div>
<div class="col-2">
<input type="number" id="compressionOffset" min="0" max="359" step="1" value="0" onChange="sendConfig()" disabled>
</div>
</div>
<!-- Live -->
<article id="live" class="panel">
<div class="row">
<div class="column40">
<div class="row">
<div class="col-5">RPM Mode: </div>
<div class="col-2">
<select id="rpmSelect" onChange="setRPMMode()">
<option value="2">Use potentiometer</option>
<option value="1">Fixed RPM</option>
<option value="0">Sweep</option>
</select>
</div>
</div>
<div class="row">
<div class="col-5">Fixed RPM: </div>
<div class="col-1">
<input type="number" id="fixedRPM" min="0" max="10000" step="1" value="2500" onChange="sendConfig()" disabled>
</div>
</div>
<div class="row">
<div class="col-5">RPM Sweep range: </div>
<div class="col-3">
<input type="number" id="rpmSweepMin" min="0" max="10000" step="1" value="100" onChange="sendConfig()" disabled>
</div>
<div class="col-2">
<input type="number" id="rpmSweepMax" min="0" max="10000" step="1" value="6000" onChange="sendConfig()" disabled>
</div>
</div>
<div class="row">
<div class="col-5">RPM Sweep speed: </div>
<div class="col-2">
<input type="range" id="rpmSweepSpeed" min="200" max="4000" step="10" value="3000" onChange="sendConfig()" disabled>
</div>
</div>
<div class="row">
<div class="col-7"><span class="tooltip">Enable compression: <span class="tooltiptext">When Enabled, this simulates RPM 'waves' that are common during cranking as each cylinder compresses. The effect will only be active below a set RPM value</span></span></div>
<div class="col-2">
<input type="checkbox" id="compressionEnable" onChange="toggleCompression()">
</div>
</div>
<div class="row">
<div class="col-7">Configuration: </div>
<div class="col-2">
<select id="compressionMode" onChange="sendConfig()" disabled>
<option value="1">2-cyl 4 stroke</option>
<option value="3">4-cyl 4 stroke</option>
<option value="4">6-cyl 4 stroke</option>
<option value="5">8-cyl 4 stroke</option>
</select>
</div>
</div>
<div class="row">
<div class="col-7"><span class="tooltip">Compression below: <span class="tooltiptext">If Compression is enabled, it will function when the RPM (Regardless of Mode) is below this value</span></span></div>
<div class="col-4">
<input type="number" id="compressionRPM" min="20" max="1000" step="1" value="400" onChange="sendConfig()" disabled> RPM
</div>
</div>
<div class="row">
<div class="col-7"><span class="tooltip">Offset (Deg): <span class="tooltiptext">Moves where the compression waves occur within a 0-359 degree range</span></span></div>
<div class="col-2">
<input type="number" id="compressionOffset" min="0" max="359" step="1" value="0" onChange="sendConfig()" disabled>
</div>
</div>

<div>
<br />
<center><input type='button' value="Save Config" id="btnSave" onclick="saveData(true);" /><div id="saveCheck" class="icon fa-check fadeOut" style="visibility:hidden; display:inline-block;margin-left: 0.75em;"></div></center>
</div>
</div>
<div>
<br />
<center><input type='button' value="Save Config" id="btnSave" onclick="saveData(true);" /><div id="saveCheck" class="icon fa-check fadeOut" style="visibility:hidden; display:inline-block;margin-left: 0.75em;"></div></center>
</div>
</div>
<div class="column60" style="text-align: center;">
<canvas data-type="radial-gauge"
data-units="RPM"
Expand Down

0 comments on commit 20c6117

Please sign in to comment.