1
0
Fork 0
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:
skaman82 2015-10-29 00:30:22 +01:00
parent 9489b13c13
commit 968e10feeb
12 changed files with 1042 additions and 24 deletions

18
main.js
View file

@ -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'
});
});
});