mirror of https://github.com/arendst/Tasmota.git
GUI more compact relay state display
This commit is contained in:
parent
070a3a5ca7
commit
fd52bc4a39
|
@ -2,7 +2,7 @@
|
|||
// compressed by tools/unishox/compress-html-uncompressed.py
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
|
||||
const size_t HTTP_SCRIPT_ROOT_SIZE = 572;
|
||||
const size_t HTTP_SCRIPT_ROOT_SIZE = 507;
|
||||
const char HTTP_SCRIPT_ROOT_COMPRESSED[] PROGMEM = "\x33\xBF\xA3\x14\x78\x30\x2F\x83\xAD\xCE\x41\x59\xDD\x18\x77\x8F\x6D\x9F\x06\x1F"
|
||||
"\xE3\xFC\x7D\x9F\x67\x80\xC2\x77\xF2\xAD\x1A\xF0\x5D\x1D\xD3\x14\x77\x81\x26\x68"
|
||||
"\x54\x77\x8F\x1A\x60\xEE\x9B\x0F\xE1\xF3\x85\x84\x11\xDE\x3D\xA6\xC3\xA5\x8E\xCF"
|
||||
|
@ -15,10 +15,8 @@ const char HTTP_SCRIPT_ROOT_COMPRESSED[] PROGMEM = "\x33\xBF\xA3\x14\x78\x30\x2F
|
|||
"\x89\x42\x8F\x33\x91\xB3\xE8\xFA\x3E\xCF\xC3\xD8\x77\x88\x11\xB0\xAF\x02\x16\x15"
|
||||
"\xF3\xF0\xF4\xA1\x40\x93\x5C\x68\x20\xD7\x3B\x28\x51\xF8\x7A\x50\x80\x93\x93\x9C"
|
||||
"\xA6\x43\x0D\x87\x81\xF1\x5B\x4C\xEB\xF0\xCB\x0D\x9E\x7D\x83\xFF\xB1\x80\x95\x9C"
|
||||
"\xB0\x43\xC7\x84\x3F\x0F\x43\xB2\xBE\x09\x36\x43\x3D\xC7\x60\xF1\xD4\x7B\x0F\xA3"
|
||||
"\xE8\xFB\x3F\x0F\x41\x34\xCC\x10\xF3\xBA\x66\xCA\x3A\xEC\x2D\x1E\xE3\xCC\x37\xD4"
|
||||
"\xFE\x78\x31\x9D\x47\x58\xFB\xD1\xE1\x54\x79\x9E\xC3\xBC\x78\x63\x8E\xE9\xF6\x11"
|
||||
"\xC8\x7D\x9D\xE3\xA1\x6F\x73\xF9\x0A\x2A\x2B\x21\xA4\x11\xF3\xC0\xBD\xC8\x08\x54"
|
||||
"\xB0\x43\xC7\x84\x3F\x0F\x43\xB2\xBE\x7E\x1E\xC3\xBC\x78\x63\x8E\xE9\xF6\x11\xC8"
|
||||
"\x7D\x9D\xE3\xA1\x6F\x73\xF9\x0A\x2A\x2B\x21\xA4\x11\xF3\xC0\xBD\xC6\x2A\x01\x54"
|
||||
"\x7C\xF3\xA0\x44\x9D\x67\x51\xF4\x21\xDE\x3C\x1E\xE3\xDC\x78\x36\x1D\x30\x63\xE3"
|
||||
"\xBA\x7D\x90\xF1\x32\xA3\xEC\xEA\x3E\xCE\x87\x68\x69\xF0\xE4\x3E\xCE\xD9\x59\xD5"
|
||||
"\x5F\x16\xCE\xF1\xE0\xD8\x74\xF3\xE1\x0E\xE9\xDE\x3C\x18\x04\xBC\x68\xE5\x36\xD9"
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
/////////////////////////////////////////////////////////////////////
|
||||
// compressed by tools/unishox/compress-html-uncompressed.py
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
|
||||
const size_t HTTP_SCRIPT_ROOT_SIZE = 444;
|
||||
const char HTTP_SCRIPT_ROOT_COMPRESSED[] PROGMEM = "\x30\x2F\x83\xAD\xCE\x41\x59\xDD\x18\x77\x8F\x6E\x98\x3B\xB4\x64\x31\xE1\x83\xBA"
|
||||
"\x4C\xCD\xF5\x17\xB0\x5F\xC3\x67\x78\xFE\x1F\x0F\x87\xB0\x5F\x08\xCC\x6F\x31\x0F"
|
||||
"\x61\xDE\x3D\xA6\x77\xF4\xCF\x9C\xC7\xD0\x23\x60\x47\x74\xFB\x3B\x43\x4F\x87\x21"
|
||||
"\xF6\x77\x8F\x04\xCE\x99\xC3\x5F\xBD\x63\xCC\xF8\x08\x79\xD9\xDD\x66\x6F\xA8\xEF"
|
||||
"\x1E\xD6\x38\xEE\x9F\x61\x1C\x87\xD9\xDE\x3A\x16\xF7\x3F\x90\xA2\xA2\x1A\x41\x1F"
|
||||
"\x19\x9B\xEA\x3A\x09\x75\x67\x4F\xB1\x81\x58\x6C\xEE\x9D\x87\xB6\x8F\x71\xD8\x3C"
|
||||
"\x75\x1E\xC3\xD2\xAC\x70\x4D\x7A\x8C\x82\x67\xC3\xEC\x7F\x44\xA1\x47\x99\xC8\xD9"
|
||||
"\xF4\x7D\x1F\x67\xE1\xEC\x3B\xC4\x08\xD8\x57\x81\x0B\x0A\xF9\xF8\x7A\x50\xA0\x49"
|
||||
"\xAE\x34\x10\x6B\x9D\x94\x28\xFC\x3D\x28\x40\x49\xC9\xCE\x53\x21\x86\xC3\xC0\xF8"
|
||||
"\xAD\xA6\x75\xF8\x65\x86\xCF\x3E\xC1\xFF\xD8\xC0\x4A\xCE\x58\x21\xE3\xC2\x1F\x87"
|
||||
"\xA1\xD9\x5F\x3F\x0F\x61\xDE\x3C\x1E\xE3\xDD\x67\xC1\x87\xF8\xFF\x1F\x67\xD9\xE0"
|
||||
"\x30\x9D\xFC\xAB\x46\xBC\x17\x47\x74\x2A\x2B\x3B\xC7\x8D\x30\x77\x4D\x87\xF0\xF9"
|
||||
"\xC2\xC2\x08\xEF\x1E\xD3\x61\xD2\xC7\x67\xE8\xEE\x9D\xE3\xDC\x6C\x3E\x73\x1F\x44"
|
||||
"\x6C\x21\xA4\x11\x0A\xAA\x18\x5F\x66\xA1\x6F\xD4\x77\x4E\xF1\xE0\xD8\x74\xC1\x8F"
|
||||
"\x8E\xE9\xF6\x43\xC4\xCA\x8F\xB3\xA8\xFB\x3A\x1D\xA1\xA7\xC3\x90\xFB\x3B\x65\x67"
|
||||
"\x55\x7C\x5B\x3B\xC7\x83\x61\xD3\xCF\x84\x3B\xA7\x78\xF0\x15\x1F\x3C\xE8\x11\x34"
|
||||
"\x1B\x3A\x8E\x53\x6D\x9D\xE3\xC1\xEE";
|
||||
|
||||
#define HTTP_SCRIPT_ROOT Decompress(HTTP_SCRIPT_ROOT_COMPRESSED,HTTP_SCRIPT_ROOT_SIZE).c_str()
|
|
@ -2,7 +2,7 @@
|
|||
// compressed by tools/unishox/compress-html-uncompressed.py
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
|
||||
const size_t HTTP_SCRIPT_ROOT_SIZE = 844;
|
||||
const size_t HTTP_SCRIPT_ROOT_SIZE = 779;
|
||||
const char HTTP_SCRIPT_ROOT_COMPRESSED[] PROGMEM = "\x33\xBF\xAF\x98\xF0\xA3\xE1\xC8\x75\x11\x8A\x3C\x18\x17\xC1\xD6\xE7\x20\xAC\xEE"
|
||||
"\x8C\x3B\xC7\xB6\xCF\x83\x0F\xF1\xFE\x3E\xCF\xB3\xC0\x61\x3B\xF9\x56\x8D\x78\x2E"
|
||||
"\x8E\xE9\x8A\x3B\xC0\x93\x34\x2A\x2B\x3B\xC7\x8D\x30\x77\x4D\x87\xF0\xF9\xC2\xC2"
|
||||
|
@ -15,18 +15,16 @@ const char HTTP_SCRIPT_ROOT_COMPRESSED[] PROGMEM = "\x33\xBF\xAF\x98\xF0\xA3\xE1
|
|||
"\x38\x26\xBD\x46\x41\x33\xE1\xF6\x3F\xA2\x50\xA3\xCC\xE4\x6C\xFA\x3E\x8F\xB3\xF0"
|
||||
"\xF6\x1D\xE2\x04\x6C\x2B\xC0\x85\x85\x7C\xFC\x3D\x28\x50\x24\xD7\x1A\x08\x35\xCE"
|
||||
"\xCA\x14\x7E\x1E\x94\x20\x24\xE4\xE7\x29\x90\xC3\x61\xE0\x7C\x56\xD3\x3A\xFC\x32"
|
||||
"\xC3\x67\x9F\x60\xFF\xEC\x60\x25\x67\x2C\x10\xF1\xE1\x0F\xC3\xD0\xEC\xAF\x82\x4D"
|
||||
"\x90\xCF\x71\xD8\x3C\x75\x1E\xC3\xE8\xFA\x3E\xCF\xC3\xD0\x4D\x33\x04\x3C\xEE\x99"
|
||||
"\xB2\x8E\xBB\x0B\x47\xB8\xF3\x0D\xF5\x3F\x9E\x0C\x67\x51\xD6\x3E\xF4\x78\x55\x1E"
|
||||
"\x67\xB0\xEF\x1E\x18\xE3\xBA\x7D\x84\x72\x1F\x67\x78\xE8\x5B\xDC\xFE\x42\x8A\x88"
|
||||
"\x69\x04\x7C\xF0\x30\x1E\x40\xBE\x63\xC2\x8E\xF1\xED\x0A\x8F\x9E\x74\x08\x95\xEC"
|
||||
"\xEA\x3E\x84\x3B\xC7\x83\xDC\x7B\x8F\x70\x22\xDE\x36\x1D\x30\x63\xE3\xBA\x7D\x90"
|
||||
"\xF1\x32\xA3\xEC\xEA\x3E\xCE\x87\x68\x69\xF0\xE4\x3E\xCE\xD9\x59\xD5\x5F\x16\xCE"
|
||||
"\xF1\xE0\xD8\x74\xF3\xE1\x0E\xE9\xDE\x3C\x18\x04\xBC\x90\xE5\x36\xD9\xDE\x3C\x1E"
|
||||
"\xE3\xDC\x40\x89\xCD\x37\x99\x9D\x9D\xD1\x97\xF3\xAB\x4C\xEF\xE7\x78\xF6\x85\x67"
|
||||
"\x74\xFB\x3F\x5E\x33\x3E\x1F\x67\x6F\x4C\xEF\xE7\x6C\xFB\x3F\x67\xD9\xDB\x19\x7F"
|
||||
"\x3B\xC7\x80\x46\xC3\x74\x12\x30\xD0\x41\xE7\xE4\xF0\x0A\x78\xA7\xCC\x78\x51\xF0"
|
||||
"\xE3\x20\x46\xC6\xC6\x7C\xEE\x98\x3B\xC7\xB7\x4C\x1D\xD3\x07\x78\xF6\x82\x67\x0B"
|
||||
"\xA0\x99\xC3\xF8\x28\x70\xCA\x08\x5A\x79\xEE\x61\x79\x82\xF6\x40\x08\x7A\xF9\xEE";
|
||||
"\xC3\x67\x9F\x60\xFF\xEC\x60\x25\x67\x2C\x10\xF1\xE1\x0F\xC3\xD0\xEC\xAF\x9F\x87"
|
||||
"\xB0\xEF\x1E\x18\xE3\xBA\x7D\x84\x72\x1F\x67\x78\xE8\x5B\xDC\xFE\x42\x8A\x88\x69"
|
||||
"\x04\x7C\xF0\x30\x1E\x30\x7E\x63\xC2\x8E\xF1\xED\x0A\x8F\x9E\x74\x08\x95\xEC\xEA"
|
||||
"\x3E\x84\x3B\xC7\x83\xDC\x7B\x8F\x70\x22\xDE\x36\x1D\x30\x63\xE3\xBA\x7D\x90\xF1"
|
||||
"\x32\xA3\xEC\xEA\x3E\xCE\x87\x68\x69\xF0\xE4\x3E\xCE\xD9\x59\xD5\x5F\x16\xCE\xF1"
|
||||
"\xE0\xD8\x74\xF3\xE1\x0E\xE9\xDE\x3C\x18\x04\xBC\x90\xE5\x36\xD9\xDE\x3C\x1E\xE3"
|
||||
"\xDC\x40\x89\xCB\x2F\x99\x9D\x9D\xD1\x97\xF3\xAB\x4C\xEF\xE7\x78\xF6\x85\x67\x74"
|
||||
"\xFB\x3F\x5E\x33\x3E\x1F\x67\x6F\x4C\xEF\xE7\x6C\xFB\x3F\x67\xD9\xDB\x19\x7F\x3B"
|
||||
"\xC7\x80\x46\xC3\x74\x12\x30\xD0\x41\xE6\xE0\xF0\x0A\x78\xA7\xCC\x78\x51\xF0\xE3"
|
||||
"\x20\x46\xC6\xC6\x7C\xEE\x98\x3B\xC7\xB7\x4C\x1D\xD3\x07\x78\xF6\x82\x67\x0B\xA0"
|
||||
"\x99\xC3\xF8\x28\x70\xCA\x08\x5A\x79\xEE\x61\x79\x82\xF6\x40\x08\x7A\xF9\xEE";
|
||||
|
||||
#define HTTP_SCRIPT_ROOT Decompress(HTTP_SCRIPT_ROOT_COMPRESSED,HTTP_SCRIPT_ROOT_SIZE).c_str()
|
|
@ -11,8 +11,7 @@ const char HTTP_SCRIPT_ROOT[] PROGMEM =
|
|||
".replace(/{s}/g,\"<tr><th>\")"
|
||||
// ".replace(/{m}/g,\"</th><td>\")"
|
||||
".replace(/{m}/g,\"</th><td style='width:20px;white-space:nowrap'>\")" // I want a right justified column with left justified text
|
||||
".replace(/{e}/g,\"</td></tr>\")"
|
||||
".replace(/{c}/g,\"%%'><div style='text-align:center;font-weight:\");"
|
||||
".replace(/{e}/g,\"</td></tr>\");"
|
||||
"eb('l1').innerHTML=s;"
|
||||
"clearTimeout(ft);clearTimeout(lt);"
|
||||
"lt=setTimeout(la,%d);" // Settings.web_refresh
|
||||
|
|
|
@ -7,8 +7,7 @@ const char HTTP_SCRIPT_ROOT[] PROGMEM =
|
|||
".replace(/{s}/g,\"<tr><th>\")"
|
||||
// ".replace(/{m}/g,\"</th><td>\")"
|
||||
".replace(/{m}/g,\"</th><td style='width:20px;white-space:nowrap'>\")" // I want a right justified column with left justified text
|
||||
".replace(/{e}/g,\"</td></tr>\")"
|
||||
".replace(/{c}/g,\"%%'><div style='text-align:center;font-weight:\");"
|
||||
".replace(/{e}/g,\"</td></tr>\");"
|
||||
"}"
|
||||
"}"
|
||||
"a=p||'';"
|
||||
|
|
|
@ -11,8 +11,7 @@ const char HTTP_SCRIPT_ROOT[] PROGMEM =
|
|||
".replace(/{s}/g,\"<tr><th>\")"
|
||||
// ".replace(/{m}/g,\"</th><td>\")"
|
||||
".replace(/{m}/g,\"</th><td style='width:20px;white-space:nowrap'>\")" // I want a right justified column with left justified text
|
||||
".replace(/{e}/g,\"</td></tr>\")"
|
||||
".replace(/{c}/g,\"%%'><div style='text-align:center;font-weight:\");"
|
||||
".replace(/{e}/g,\"</td></tr>\");"
|
||||
"eb('l1').innerHTML=s;"
|
||||
"clearTimeout(ft);clearTimeout(lt);"
|
||||
"if(rfsh){"
|
||||
|
|
|
@ -337,7 +337,7 @@ const char HTTP_END[] PROGMEM =
|
|||
"</html>";
|
||||
|
||||
const char HTTP_DEVICE_CONTROL[] PROGMEM = "<td style='width:%d%%'><button onclick='la(\"&o=%d\");'>%s%s</button></td>"; // ?o is related to WebGetArg("o", tmp, sizeof(tmp));
|
||||
const char HTTP_DEVICE_STATE[] PROGMEM = "<td style='width:%d{c}%s;font-size:%dpx'>%s</div></td>"; // {c} = %'><div style='text-align:center;font-weight:
|
||||
const char HTTP_DEVICE_STATE[] PROGMEM = "<td style='width:%d%%;text-align:center;font-weight:%s;font-size:%dpx'>%s</td>";
|
||||
|
||||
enum ButtonTitle {
|
||||
BUTTON_RESTART, BUTTON_RESET_CONFIGURATION,
|
||||
|
@ -3031,7 +3031,7 @@ void CmndWeblog(void)
|
|||
|
||||
void CmndWebRefresh(void)
|
||||
{
|
||||
if ((XdrvMailbox.payload > 999) && (XdrvMailbox.payload <= 10000)) {
|
||||
if ((XdrvMailbox.payload > 999) && (XdrvMailbox.payload <= 65000)) {
|
||||
Settings.web_refresh = XdrvMailbox.payload;
|
||||
}
|
||||
ResponseCmndNumber(Settings.web_refresh);
|
||||
|
|
|
@ -6320,7 +6320,7 @@ const char HTTP_SCRIPT_FULLPAGE1[] PROGMEM =
|
|||
"x=new XMLHttpRequest();"
|
||||
"x.onreadystatechange=function(){"
|
||||
"if(x.readyState==4&&x.status==200){"
|
||||
"var s=x.responseText.replace(/{t}/g,\"<table style='width:100%%'>\").replace(/{s}/g,\"<tr><th>\").replace(/{m}/g,\"</th><td>\").replace(/{e}/g,\"</td></tr>\").replace(/{c}/g,\"%%'><div style='text-align:center;font-weight:\");"
|
||||
"var s=x.responseText.replace(/{t}/g,\"<table style='width:100%%'>\").replace(/{s}/g,\"<tr><th>\").replace(/{m}/g,\"</th><td>\").replace(/{e}/g,\"</td></tr>\");"
|
||||
"eb('l1').innerHTML=s;"
|
||||
"}"
|
||||
"};"
|
||||
|
|
Loading…
Reference in New Issue