mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 08:45:28 +03:00
switchery integration
This commit is contained in:
parent
9489b13c13
commit
968e10feeb
12 changed files with 1042 additions and 24 deletions
18
main.js
18
main.js
|
@ -401,5 +401,23 @@ $("#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