mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 19:40:22 +03:00
added a help button for the currently installed firmware
This commit is contained in:
parent
361d9a57dd
commit
d3fc8464fa
3 changed files with 21 additions and 0 deletions
|
@ -207,6 +207,13 @@ function onConnect() {
|
||||||
$('div#port-picker a.connect').text(chrome.i18n.getMessage('disconnect')).addClass('active');
|
$('div#port-picker a.connect').text(chrome.i18n.getMessage('disconnect')).addClass('active');
|
||||||
$('#tabs ul.mode-disconnected').hide();
|
$('#tabs ul.mode-disconnected').hide();
|
||||||
$('#tabs ul.mode-connected').show();
|
$('#tabs ul.mode-connected').show();
|
||||||
|
|
||||||
|
if ("CLFL" == CONFIG.flightControllerIdentifier){
|
||||||
|
var helpButton = $('#button-help');
|
||||||
|
helpButton.show();
|
||||||
|
helpButton.html("Documentation for "+CONFIG.flightControllerVersion);
|
||||||
|
helpButton.attr("href","https://github.com/cleanflight/cleanflight/tree/v{0}/docs".format(CONFIG.flightControllerVersion));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function onClosed(result) {
|
function onClosed(result) {
|
||||||
|
@ -218,6 +225,7 @@ function onClosed(result) {
|
||||||
|
|
||||||
$('#tabs ul.mode-connected').hide();
|
$('#tabs ul.mode-connected').hide();
|
||||||
$('#tabs ul.mode-disconnected').show();
|
$('#tabs ul.mode-disconnected').show();
|
||||||
|
$('#button-help').hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
function read_serial(info) {
|
function read_serial(info) {
|
||||||
|
|
12
main.css
Normal file → Executable file
12
main.css
Normal file → Executable file
|
@ -154,6 +154,18 @@ input[type="number"]::-webkit-inner-spin-button {
|
||||||
#sensor-status .on {
|
#sensor-status .on {
|
||||||
background-color: #b8cf02;
|
background-color: #b8cf02;
|
||||||
}
|
}
|
||||||
|
#button-help {
|
||||||
|
float: right;
|
||||||
|
height: 18px;
|
||||||
|
line-height: 18px;
|
||||||
|
background-color: yellow;
|
||||||
|
color: #000;
|
||||||
|
font-weight: bold;
|
||||||
|
border: solid 1px;
|
||||||
|
padding: 0px 2px 0px 2px;
|
||||||
|
margin: 0px 10px 0px 0px;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
#options {
|
#options {
|
||||||
float: right;
|
float: right;
|
||||||
|
|
||||||
|
|
|
@ -103,6 +103,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<a id="options" href="#" i18n_title="options_title"></a>
|
<a id="options" href="#" i18n_title="options_title"></a>
|
||||||
|
<a id="button-help" href="#" target="_blank"></a>
|
||||||
<div id="sensor-status">
|
<div id="sensor-status">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="gyro" title="Gyroscope">Gyro</li>
|
<li class="gyro" title="Gyroscope">Gyro</li>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue