diff --git a/TODO.txt b/TODO.txt
index 08b68665..c3e3f8ae 100644
--- a/TODO.txt
+++ b/TODO.txt
@@ -5,8 +5,6 @@ fade transition
simple slide transition
add toolbar conf in settings
additional color picker field
-change slider height to relative values
-improve firefox UI appearance
implement all settings setters
implement OTA lock / security
implement button
@@ -14,11 +12,8 @@ implement HSB slider option
implement ranges
implement discrete range color setter
implement discrete single color setter
-change color submit from get to post, rewrite with args, requires no buffer
-change color submit from rgb to hex
do not reboot after settings set -> add reboot button
svg icons in html
-(get rid of spiffs, use progmem for html??)
BUGS
static ip disables mdns
diff --git a/wled00/data/index.htm b/wled00/data/index.htm
index 12e82103..929e3b82 100644
--- a/wled00/data/index.htm
+++ b/wled00/data/index.htm
@@ -9,11 +9,12 @@
function Startup()
{
- setInterval('GetColor()', 5000);
- GetColor();
+ setInterval('GetArduinoIO()', 5000);
+ GetArduinoIO();
}
- function GetColor()
+ function GetArduinoIO()
{
+ nocache = "&nocache=" + Math.random() * 1000000;
var request = new XMLHttpRequest();
request.onreadystatechange = function()
{
@@ -30,13 +31,23 @@
}
}
// send HTTP request
- request.open("GET", "/get", true);
+ request.open("GET", "ajax_in/" + strA + strR + strG + strB + nocache, true);
request.send(null);
+ strA = "";
+ strR = "";
+ strG = "";
+ strB = "";
}
function GetCheck()
- {
+ {
+
+ strA = "&A=" + Ctrl_form.SA.value;
+ strR = "&R=" + Ctrl_form.SR.value;
+ strG = "&G=" + Ctrl_form.SG.value;
+ strB = "&B=" + Ctrl_form.SB.value;
+
UpdateVals();
- post('/set', {'COL': rgb2hex(Ctrl_form.SR.value, Ctrl_form.SG.value, Ctrl_form.SB.value)});
+ GetArduinoIO();
}
function rgb2hex(red, green, blue) {
var rgb = blue | (green << 8) | (red << 16);
@@ -53,26 +64,6 @@
{
window.open("/settings","_self");
}
- function post(path, params, method) { //http://stackoverflow.com/questions/133925/
- method = method || "post"; // Set method to post by default.
-
- var form = document.createElement("form");
- form.setAttribute("method", method);
- form.setAttribute("action", path);
-
- for(var key in params) {
- if(params.hasOwnProperty(key)) {
- var hiddenField = document.createElement("input");
- hiddenField.setAttribute("type", "hidden");
- hiddenField.setAttribute("name", key);
- hiddenField.setAttribute("value", params[key]);
-
- form.appendChild(hiddenField);
- }
- }
- document.body.appendChild(form);
- form.submit();
- }
@@ -212,6 +196,6 @@