mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-26 09:45:23 +03:00
Initial build
This commit is contained in:
parent
df1ba5a324
commit
c6b54fa98c
3 changed files with 173 additions and 173 deletions
|
@ -302,7 +302,7 @@
|
||||||
.tab-mission-control .safehomesTable {
|
.tab-mission-control .safehomesTable {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 8px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-mission-control .safehomesTable input[type="text"] {
|
.tab-mission-control .safehomesTable input[type="text"] {
|
||||||
|
@ -311,7 +311,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-mission-control .safehomesTable input[type="number"] {
|
.tab-mission-control .safehomesTable input[type="number"] {
|
||||||
font-size: 8px;
|
font-size: 10px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
-moz-appearance: textfield;
|
-moz-appearance: textfield;
|
||||||
}
|
}
|
||||||
|
|
|
@ -102,10 +102,10 @@
|
||||||
<table class="safehomesTable">
|
<table class="safehomesTable">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="width: 50px" data-i18n="SafehomeSelected"></th>
|
<th style="width: 40px" data-i18n="SafehomeSelected"></th>
|
||||||
<th style="width: 120px" data-i18n="SafehomeLon"></th>
|
<th style="width: 140px" data-i18n="SafehomeLat"></th>
|
||||||
<th style="width: 120px" data-i18n="SafehomeLat"></th>
|
<th style="width: 140px" data-i18n="SafehomeLon"></th>
|
||||||
<th style="width: 120px" data-i18n="SafehomeAlt"></th>
|
<th style="width: 100px" data-i18n="SafehomeAlt"></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="homeTableBody">
|
<tbody id="homeTableBody">
|
||||||
|
@ -114,8 +114,8 @@
|
||||||
<a class="ic_center" data-role="home-center" href="#" title="move to center view"></a>
|
<a class="ic_center" data-role="home-center" href="#" title="move to center view"></a>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td><input type="number" class="home-lon" /></td>
|
|
||||||
<td><input type="number" class="home-lat" /></td>
|
<td><input type="number" class="home-lat" /></td>
|
||||||
|
<td><input type="number" class="home-lon" /></td>
|
||||||
<td><span id="elevationValueAtHome">NA</span></td>
|
<td><span id="elevationValueAtHome">NA</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -141,11 +141,11 @@
|
||||||
<table class="safehomesTable">
|
<table class="safehomesTable">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="width: 80px" data-i18n="SafehomeSelected"></th>
|
<th style="width: 40px" data-i18n="SafehomeSelected"></th>
|
||||||
<th style="width: 50px" data-i18n="SafehomeId"></th>
|
<th style="width: 40px" data-i18n="SafehomeId"></th>
|
||||||
<th style="width: 80px" data-i18n="SafehomeEnabled"></th>
|
<th style="width: 60px" data-i18n="SafehomeEnabled"></th>
|
||||||
<th style="width: 120px" data-i18n="SafehomeLon"></th>
|
<th style="width: 140px" data-i18n="SafehomeLat"></th>
|
||||||
<th style="width: 120px" data-i18n="SafehomeLat"></th>
|
<th style="width: 140px" data-i18n="SafehomeLon"></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="safehomesTableBody">
|
<tbody id="safehomesTableBody">
|
||||||
|
|
|
@ -474,8 +474,8 @@ TABS.mission_control.initialize = function (callback) {
|
||||||
</td> \
|
</td> \
|
||||||
<td><span class="safehome-number"/></td>\
|
<td><span class="safehome-number"/></td>\
|
||||||
<td class="safehome-enabled"><input type="checkbox" class="togglesmall safehome-enabled-value"/></td> \
|
<td class="safehome-enabled"><input type="checkbox" class="togglesmall safehome-enabled-value"/></td> \
|
||||||
<td><input type="number" class="safehome-lon" /></td>\
|
|
||||||
<td><input type="number" class="safehome-lat" /></td>\
|
<td><input type="number" class="safehome-lat" /></td>\
|
||||||
|
<td><input type="number" class="safehome-lon" /></td>\
|
||||||
</tr>\
|
</tr>\
|
||||||
');
|
');
|
||||||
|
|
||||||
|
@ -645,14 +645,14 @@ TABS.mission_control.initialize = function (callback) {
|
||||||
* Process home table UI
|
* Process home table UI
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$(".home-lon").val(HOME.getLonMap()).change(function () {
|
$(".home-lat").val(HOME.getLatMap()).change(function () {
|
||||||
HOME.setLon(Math.round(Number($(this).val()) * 10000000));
|
HOME.setLat(Math.round(Number($(this).val()) * 10000000));
|
||||||
cleanHomeLayers();
|
cleanHomeLayers();
|
||||||
renderHomeOnMap();
|
renderHomeOnMap();
|
||||||
});
|
});
|
||||||
|
|
||||||
$(".home-lat").val(HOME.getLatMap()).change(function () {
|
$(".home-lon").val(HOME.getLonMap()).change(function () {
|
||||||
HOME.setLat(Math.round(Number($(this).val()) * 10000000));
|
HOME.setLon(Math.round(Number($(this).val()) * 10000000));
|
||||||
cleanHomeLayers();
|
cleanHomeLayers();
|
||||||
renderHomeOnMap();
|
renderHomeOnMap();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue