mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-16 04:45:20 +03:00
Move Switchery library to npm/yarn
This commit is contained in:
parent
36fe5f48b8
commit
477661131c
7 changed files with 85 additions and 2069 deletions
|
@ -292,11 +292,11 @@ GuiControl.prototype.switchery = function() {
|
|||
const COLOR_SWITCHERY_SECOND = 'var(--switcherysecond)';
|
||||
|
||||
$('.togglesmall').each(function(index, elem) {
|
||||
const switchery = new Switchery(elem, {
|
||||
size: 'small',
|
||||
color: COLOR_ACCENT,
|
||||
secondaryColor: COLOR_SWITCHERY_SECOND,
|
||||
});
|
||||
const switchery = new Switchery(elem, {
|
||||
size: 'small',
|
||||
color: COLOR_ACCENT,
|
||||
secondaryColor: COLOR_SWITCHERY_SECOND,
|
||||
});
|
||||
$(elem).on("change", function () {
|
||||
switchery.setPosition();
|
||||
});
|
||||
|
@ -304,10 +304,10 @@ GuiControl.prototype.switchery = function() {
|
|||
});
|
||||
|
||||
$('.toggle').each(function(index, elem) {
|
||||
const switchery = new Switchery(elem, {
|
||||
color: COLOR_ACCENT,
|
||||
secondaryColor: COLOR_SWITCHERY_SECOND,
|
||||
});
|
||||
const switchery = new Switchery(elem, {
|
||||
color: COLOR_ACCENT,
|
||||
secondaryColor: COLOR_SWITCHERY_SECOND,
|
||||
});
|
||||
$(elem).on("change", function () {
|
||||
switchery.setPosition();
|
||||
});
|
||||
|
@ -315,11 +315,11 @@ GuiControl.prototype.switchery = function() {
|
|||
});
|
||||
|
||||
$('.togglemedium').each(function(index, elem) {
|
||||
const switchery = new Switchery(elem, {
|
||||
className: 'switcherymid',
|
||||
color: COLOR_ACCENT,
|
||||
secondaryColor: COLOR_SWITCHERY_SECOND,
|
||||
});
|
||||
const switchery = new Switchery(elem, {
|
||||
className: 'switcherymid',
|
||||
color: COLOR_ACCENT,
|
||||
secondaryColor: COLOR_SWITCHERY_SECOND,
|
||||
});
|
||||
$(elem).on("change", function () {
|
||||
switchery.setPosition();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue