1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-17 05:15:21 +03:00

First rework of Configuration Tab

… also minor fixes to switchery buttons
This commit is contained in:
skaman82 2015-10-30 09:46:53 +01:00
parent b93349b14f
commit 54d7c24e82
14 changed files with 622 additions and 151 deletions

View file

@ -123,13 +123,39 @@ $(document).ready(function () {
}
chrome.storage.local.set({'auto_connect': GUI.auto_connect});
});
/** toggle switch **/
var elems = Array.prototype.slice.call(document.querySelectorAll('#togglesmall'));
elems.forEach(function(html) {
var switchery = new Switchery(html,
{
size: 'small',
color: '#59aa29',
secondaryColor: '#c4c4c4'
});
});
/** toggle switch END **/
});
PortHandler.initialize();
PortUsage.initialize();
});
function onOpen(openInfo) {
if (openInfo) {
// update connected_to
@ -394,4 +420,6 @@ function bit_set(num, bit) {
function bit_clear(num, bit) {
return num & ~(1 << bit);
}
}