mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 08:45:28 +03:00
First rework of Configuration Tab
… also minor fixes to switchery buttons
This commit is contained in:
parent
b93349b14f
commit
54d7c24e82
14 changed files with 622 additions and 151 deletions
24
main.js
24
main.js
|
@ -211,7 +211,7 @@ $(document).ready(function () {
|
|||
googleAnalyticsConfig.setTrackingPermitted(check);
|
||||
});
|
||||
|
||||
// TEST
|
||||
// CSS TEST
|
||||
var css = $("#default");
|
||||
$("div#options-window #remove").click(function(){
|
||||
css.remove();
|
||||
|
@ -220,7 +220,7 @@ $("div#options-window #remove").click(function(){
|
|||
$("div#options-window #restore").click(function(){
|
||||
$("head").append(css);
|
||||
});
|
||||
// TEST
|
||||
// CSS TEST END
|
||||
|
||||
|
||||
function close_and_cleanup(e) {
|
||||
|
@ -401,23 +401,3 @@ $("#showlog").on('click', function() {
|
|||
|
||||
|
||||
|
||||
/** toggle switch **/
|
||||
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
|
||||
|
||||
var elems = Array.prototype.slice.call(document.querySelectorAll('#togglesmall'));
|
||||
|
||||
elems.forEach(function(html) {
|
||||
var switchery = new Switchery(html,
|
||||
{
|
||||
size: 'small',
|
||||
color: '#59aa29',
|
||||
secondaryColor: '#c4c4c4'
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue