mirror of
https://github.com/s00500/ESPUI.git
synced 2024-11-22 04:00:55 +00:00
fix sliderupdate
This commit is contained in:
parent
9764db9789
commit
bd7e324a31
22
data/js/controls.js
vendored
22
data/js/controls.js
vendored
@ -767,16 +767,17 @@ function start() {
|
|||||||
|
|
||||||
if (data.type >= UPDATE_OFFSET && data.type < UI_INITIAL_GUI) {
|
if (data.type >= UPDATE_OFFSET && data.type < UI_INITIAL_GUI) {
|
||||||
var element = $("#id" + data.id);
|
var element = $("#id" + data.id);
|
||||||
// FIXME: Test sliderupdate
|
if (data.type == UPDATE_SLIDER) {
|
||||||
// if(data.type == UPDATE_SLIDER) {
|
element.removeClass(
|
||||||
// element.removeClass("slider-turquoise slider-emerald slider-peterriver slider-wetasphalt slider-sunflower slider-carrot slider-alizarin");
|
"slider-turquoise slider-emerald slider-peterriver slider-wetasphalt slider-sunflower slider-carrot slider-alizarin"
|
||||||
// element.addClass("slider-" + colorClass(data.color));
|
);
|
||||||
// } else {
|
element.addClass("slider-" + colorClass(data.color));
|
||||||
element.removeClass(
|
} else {
|
||||||
"turquoise emerald peterriver wetasphalt sunflower carrot alizarin"
|
element.removeClass(
|
||||||
);
|
"turquoise emerald peterriver wetasphalt sunflower carrot alizarin"
|
||||||
element.addClass(colorClass(data.color));
|
);
|
||||||
// }
|
element.addClass(colorClass(data.color));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -785,7 +786,6 @@ function start() {
|
|||||||
|
|
||||||
function sliderchange(number) {
|
function sliderchange(number) {
|
||||||
var val = $("#sl" + number).val();
|
var val = $("#sl" + number).val();
|
||||||
console.log("slvalue:" + val + ":" + number);
|
|
||||||
websock.send("slvalue:" + val + ":" + number);
|
websock.send("slvalue:" + val + ":" + number);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user