mirror of
https://github.com/s00500/ESPUI.git
synced 2025-07-04 06:10:18 +00:00
Compare commits
8 Commits
fix_little
...
fix_switch
Author | SHA1 | Date | |
---|---|---|---|
4142e37eae
|
|||
0587918621 | |||
48826caee6 | |||
9ab8a84ff0 | |||
d12da60df4 | |||
8cdedaf3cb | |||
02d981cc2b | |||
4827688635
|
@ -104,7 +104,7 @@ function `ESPUI.prepareFileSystem()`
|
|||||||
Just open the example sketch **prepareFileSystem** and run it on the ESP, (give
|
Just open the example sketch **prepareFileSystem** and run it on the ESP, (give
|
||||||
it up to 30 seconds, you can see the status on the Serial Monitor), The library
|
it up to 30 seconds, you can see the status on the Serial Monitor), The library
|
||||||
will create all needed files. Congratulations, you are done, from now on you
|
will create all needed files. Congratulations, you are done, from now on you
|
||||||
just need to to this again when there is a library update, or when you want to
|
just need to do this again when there is a library update, or when you want to
|
||||||
use another chip :-) Now you can upload your normal sketch, when you do not call
|
use another chip :-) Now you can upload your normal sketch, when you do not call
|
||||||
the `ESPUI.prepareFileSystem()` function the compiler will strip out all the
|
the `ESPUI.prepareFileSystem()` function the compiler will strip out all the
|
||||||
unnecessary strings that are already saved in the chip's filesystem and you have
|
unnecessary strings that are already saved in the chip's filesystem and you have
|
||||||
|
14
data/js/controls.js
vendored
14
data/js/controls.js
vendored
@ -380,28 +380,28 @@ function start() {
|
|||||||
data.id +
|
data.id +
|
||||||
", false)' id='pf" +
|
", false)' id='pf" +
|
||||||
data.id +
|
data.id +
|
||||||
"'>▲</a></li>" +
|
"'>▲</a></li>" +
|
||||||
"<li><a onmousedown='padclick(RIGHT, " +
|
"<li><a onmousedown='padclick(RIGHT, " +
|
||||||
data.id +
|
data.id +
|
||||||
", true)' onmouseup='padclick(RIGHT, " +
|
", true)' onmouseup='padclick(RIGHT, " +
|
||||||
data.id +
|
data.id +
|
||||||
", false)' id='pr" +
|
", false)' id='pr" +
|
||||||
data.id +
|
data.id +
|
||||||
"'>▲</a></li>" +
|
"'>▲</a></li>" +
|
||||||
"<li><a onmousedown='padclick(LEFT, " +
|
"<li><a onmousedown='padclick(LEFT, " +
|
||||||
data.id +
|
data.id +
|
||||||
", true)' onmouseup='padclick(LEFT, " +
|
", true)' onmouseup='padclick(LEFT, " +
|
||||||
data.id +
|
data.id +
|
||||||
", false)' id='pl" +
|
", false)' id='pl" +
|
||||||
data.id +
|
data.id +
|
||||||
"'>▲</a></li>" +
|
"'>▲</a></li>" +
|
||||||
"<li><a onmousedown='padclick(DOWN, " +
|
"<li><a onmousedown='padclick(DOWN, " +
|
||||||
data.id +
|
data.id +
|
||||||
", true)' onmouseup='padclick(DOWN, " +
|
", true)' onmouseup='padclick(DOWN, " +
|
||||||
data.id +
|
data.id +
|
||||||
", false)' id='pb" +
|
", false)' id='pb" +
|
||||||
data.id +
|
data.id +
|
||||||
"'>▲</a></li>" +
|
"'>▲</a></li>" +
|
||||||
"</ul>" +
|
"</ul>" +
|
||||||
(data.type == UI_CPAD
|
(data.type == UI_CPAD
|
||||||
? "<a class='confirm' onmousedown='padclick(CENTER," +
|
? "<a class='confirm' onmousedown='padclick(CENTER," +
|
||||||
@ -799,9 +799,11 @@ function start() {
|
|||||||
websock.onmessage = handleEvent;
|
websock.onmessage = handleEvent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var sliderCache = {};
|
||||||
function sliderchange(number) {
|
function sliderchange(number) {
|
||||||
var val = $("#sl" + number).val();
|
var val = $("#sl" + number).val();
|
||||||
websock.send("slvalue:" + val + ":" + number);
|
sliderCache[number] !== val && websock.send("slvalue:" + val + ":" + number);
|
||||||
|
sliderCache[number] = val;
|
||||||
}
|
}
|
||||||
|
|
||||||
function numberchange(number) {
|
function numberchange(number) {
|
||||||
@ -859,9 +861,11 @@ function switcher(number, state) {
|
|||||||
if ($("#s" + number).is(":checked")) {
|
if ($("#s" + number).is(":checked")) {
|
||||||
websock.send("sactive:" + number);
|
websock.send("sactive:" + number);
|
||||||
$("#sl" + number).addClass("checked");
|
$("#sl" + number).addClass("checked");
|
||||||
|
$("#sl" + number).prop("checked", true);
|
||||||
} else {
|
} else {
|
||||||
websock.send("sinactive:" + number);
|
websock.send("sinactive:" + number);
|
||||||
$("#sl" + number).removeClass("checked");
|
$("#sl" + number).removeClass("checked");
|
||||||
|
$("#sl" + number).prop("checked", false);
|
||||||
}
|
}
|
||||||
} else if (state == 1) {
|
} else if (state == 1) {
|
||||||
$("#sl" + number).addClass("checked");
|
$("#sl" + number).addClass("checked");
|
||||||
|
251
data/js/controls.min.js
vendored
251
data/js/controls.min.js
vendored
File diff suppressed because one or more lines are too long
@ -23,7 +23,7 @@
|
|||||||
"frameworks": "arduino"
|
"frameworks": "arduino"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"version": "2.0.1",
|
"version": "2.0.2",
|
||||||
"frameworks": "arduino",
|
"frameworks": "arduino",
|
||||||
"platforms": "*"
|
"platforms": "*"
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name=ESPUI
|
name=ESPUI
|
||||||
version=2.0.1
|
version=2.0.2
|
||||||
author=Lukas Bachschwell
|
author=Lukas Bachschwell
|
||||||
maintainer=Lukas Bachschwell <lukas@lbsfilm.at>
|
maintainer=Lukas Bachschwell <lukas@lbsfilm.at>
|
||||||
sentence=ESP32 and ESP8266 Web Interface Library
|
sentence=ESP32 and ESP8266 Web Interface Library
|
||||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user