mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 13:55:18 +03:00
disabling custom spinner emulation
This commit is contained in:
parent
9745a97e46
commit
b7179db5f6
10 changed files with 23 additions and 72 deletions
|
@ -21,6 +21,16 @@ a:hover {
|
||||||
}
|
}
|
||||||
input[type="number"]::-webkit-inner-spin-button {
|
input[type="number"]::-webkit-inner-spin-button {
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
|
|
||||||
|
display: block;
|
||||||
|
opacity: 1; /* required for chromium 33+ beta */
|
||||||
|
|
||||||
|
width: 15px;
|
||||||
|
|
||||||
|
background-image: url('../images/arrows.png');
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
|
||||||
|
border-left: 1px solid silver;
|
||||||
}
|
}
|
||||||
.clear-both {
|
.clear-both {
|
||||||
clear: both;
|
clear: both;
|
||||||
|
|
4
main.js
4
main.js
|
@ -164,6 +164,7 @@ function array_difference(firstArray, secondArray) {
|
||||||
return cloneArray;
|
return cloneArray;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
function add_custom_spinners() {
|
function add_custom_spinners() {
|
||||||
var spinner_element = '<div class="spinner"><div class="up"></div><div class="down"></div></div>';
|
var spinner_element = '<div class="spinner"><div class="up"></div><div class="down"></div></div>';
|
||||||
|
|
||||||
|
@ -269,4 +270,5 @@ function add_custom_spinners() {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
*/
|
|
@ -1,22 +1,5 @@
|
||||||
.tab-initial_setup {
|
.tab-initial_setup {
|
||||||
}
|
}
|
||||||
.tab-initial_setup .spinner {
|
|
||||||
float: right;
|
|
||||||
width: 15px;
|
|
||||||
height: 20px;
|
|
||||||
|
|
||||||
background-image: url('../images/arrows.png');
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
|
|
||||||
border: 1px solid silver;
|
|
||||||
border-left: 0;
|
|
||||||
}
|
|
||||||
.tab-initial_setup .spinner .up {
|
|
||||||
height: 10px;
|
|
||||||
}
|
|
||||||
.tab-initial_setup .spinner .down {
|
|
||||||
height: 10px;
|
|
||||||
}
|
|
||||||
.tab-initial_setup .section {
|
.tab-initial_setup .section {
|
||||||
clear: both;
|
clear: both;
|
||||||
padding-bottom: 8px;
|
padding-bottom: 8px;
|
||||||
|
|
|
@ -2,9 +2,6 @@ function tab_initialize_initial_setup() {
|
||||||
ga_tracker.sendAppView('Initial Setup');
|
ga_tracker.sendAppView('Initial Setup');
|
||||||
GUI.active_tab = 'initial_setup';
|
GUI.active_tab = 'initial_setup';
|
||||||
|
|
||||||
// enable custom spinners
|
|
||||||
add_custom_spinners();
|
|
||||||
|
|
||||||
send_message(MSP_codes.MSP_IDENT, MSP_codes.MSP_IDENT, false, function() {
|
send_message(MSP_codes.MSP_IDENT, MSP_codes.MSP_IDENT, false, function() {
|
||||||
send_message(MSP_codes.MSP_ACC_TRIM, MSP_codes.MSP_ACC_TRIM, false, function() {
|
send_message(MSP_codes.MSP_ACC_TRIM, MSP_codes.MSP_ACC_TRIM, false, function() {
|
||||||
send_message(MSP_codes.MSP_MISC, MSP_codes.MSP_MISC, false, function() {
|
send_message(MSP_codes.MSP_MISC, MSP_codes.MSP_MISC, false, function() {
|
||||||
|
|
|
@ -1,21 +1,8 @@
|
||||||
.tab-pid_tuning {
|
.tab-pid_tuning {
|
||||||
}
|
}
|
||||||
.tab-pid_tuning .spinner {
|
.tab-pid_tuning input[type="number"]::-webkit-inner-spin-button {
|
||||||
float: right;
|
border: 0;
|
||||||
width: 16px;
|
|
||||||
height: 20px;
|
|
||||||
|
|
||||||
background-image: url('../images/arrows.png');
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
|
|
||||||
background-color: white;
|
|
||||||
}
|
}
|
||||||
.tab-pid_tuning .spinner .up {
|
|
||||||
height: 10px;
|
|
||||||
}
|
|
||||||
.tab-pid_tuning .spinner .down {
|
|
||||||
height: 10px;
|
|
||||||
}
|
|
||||||
.tab-pid_tuning table {
|
.tab-pid_tuning table {
|
||||||
float: left;
|
float: left;
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
function tab_initialize_pid_tuning() {
|
function tab_initialize_pid_tuning() {
|
||||||
ga_tracker.sendAppView('PID Tuning');
|
ga_tracker.sendAppView('PID Tuning');
|
||||||
GUI.active_tab = 'pid_tuning';
|
GUI.active_tab = 'pid_tuning';
|
||||||
|
|
||||||
// enable custom spinners
|
|
||||||
add_custom_spinners();
|
|
||||||
|
|
||||||
send_message(MSP_codes.MSP_PID, MSP_codes.MSP_PID, false, function() {
|
send_message(MSP_codes.MSP_PID, MSP_codes.MSP_PID, false, function() {
|
||||||
send_message(MSP_codes.MSP_RC_TUNING, MSP_codes.MSP_RC_TUNING, false, function() {
|
send_message(MSP_codes.MSP_RC_TUNING, MSP_codes.MSP_RC_TUNING, false, function() {
|
||||||
// Fill in the data from PIDs array
|
// Fill in the data from PIDs array
|
||||||
|
|
|
@ -1,19 +1,8 @@
|
||||||
.tab-receiver {
|
.tab-receiver {
|
||||||
}
|
}
|
||||||
.tab-receiver .spinner {
|
.tab-receiver input[type="number"]::-webkit-inner-spin-button {
|
||||||
float: right;
|
border: 0;
|
||||||
width: 15px;
|
|
||||||
height: 20px;
|
|
||||||
|
|
||||||
background-image: url('../images/arrows.png');
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
}
|
}
|
||||||
.tab-receiver .spinner .up {
|
|
||||||
height: 10px;
|
|
||||||
}
|
|
||||||
.tab-receiver .spinner .down {
|
|
||||||
height: 10px;
|
|
||||||
}
|
|
||||||
.tab-receiver .bars {
|
.tab-receiver .bars {
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,9 +2,6 @@ function tab_initialize_receiver() {
|
||||||
ga_tracker.sendAppView('Receiver Page');
|
ga_tracker.sendAppView('Receiver Page');
|
||||||
GUI.active_tab = 'receiver';
|
GUI.active_tab = 'receiver';
|
||||||
|
|
||||||
// enable custom spinners
|
|
||||||
add_custom_spinners();
|
|
||||||
|
|
||||||
send_message(MSP_codes.MSP_RC_TUNING, MSP_codes.MSP_RC_TUNING, false, function() {
|
send_message(MSP_codes.MSP_RC_TUNING, MSP_codes.MSP_RC_TUNING, false, function() {
|
||||||
// fill in data from RC_tuning
|
// fill in data from RC_tuning
|
||||||
$('.tunings .throttle input[name="mid"]').val(RC_tuning.throttle_MID.toFixed(2));
|
$('.tunings .throttle input[name="mid"]').val(RC_tuning.throttle_MID.toFixed(2));
|
||||||
|
|
|
@ -1,19 +1,8 @@
|
||||||
.tab-servos {
|
.tab-servos {
|
||||||
}
|
}
|
||||||
.tab-servos .spinner {
|
.tab-servos input[type="number"]::-webkit-inner-spin-button {
|
||||||
float: right;
|
border: 0;
|
||||||
width: 15px;
|
|
||||||
height: 20px;
|
|
||||||
|
|
||||||
background-image: url('../images/arrows.png');
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
}
|
}
|
||||||
.tab-servos .spinner .up {
|
|
||||||
height: 10px;
|
|
||||||
}
|
|
||||||
.tab-servos .spinner .down {
|
|
||||||
height: 10px;
|
|
||||||
}
|
|
||||||
.tab-servos .supported_wrapper,
|
.tab-servos .supported_wrapper,
|
||||||
.tab-servos .direction_wrapper {
|
.tab-servos .direction_wrapper {
|
||||||
display: none;
|
display: none;
|
||||||
|
@ -60,6 +49,8 @@
|
||||||
width: 65px;
|
width: 65px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
|
|
||||||
|
padding-right: 5px;
|
||||||
|
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
|
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
|
|
@ -88,6 +88,7 @@ function tab_initialize_servos() {
|
||||||
process_servos('Front', 'F YAW', 5, true);
|
process_servos('Front', 'F YAW', 5, true);
|
||||||
process_servos('Rear', 'YAW', 6, true);
|
process_servos('Rear', 'YAW', 6, true);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
model.html('Doesn\'t support servos');
|
model.html('Doesn\'t support servos');
|
||||||
|
|
||||||
|
@ -103,9 +104,6 @@ function tab_initialize_servos() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// enable custom spinners
|
|
||||||
add_custom_spinners();
|
|
||||||
|
|
||||||
// UI hooks for dynamically generated elements
|
// UI hooks for dynamically generated elements
|
||||||
$('table.directions select, table.directions input, table.fields select, table.fields input').change(function() {
|
$('table.directions select, table.directions input, table.fields select, table.fields input').change(function() {
|
||||||
if ($('div.live input').is(':checked')) {
|
if ($('div.live input').is(':checked')) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue