mirror of https://github.com/arendst/Tasmota.git
javascript: use arrow functions where possible
replacing anonymous functions by arrow functions saves 40 Bytes of JavaScript code.
This commit is contained in:
parent
db387c959e
commit
09a4c62fee
|
@ -2,7 +2,7 @@
|
||||||
// compressed by tools/unishox/compress-html-uncompressed.py
|
// compressed by tools/unishox/compress-html-uncompressed.py
|
||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
const size_t HTTP_SCRIPT_CONSOL_SIZE = 1011;
|
const size_t HTTP_SCRIPT_CONSOL_SIZE = 997;
|
||||||
const char HTTP_SCRIPT_CONSOL_COMPRESSED[] PROGMEM = "\x33\xBF\xAF\x71\xF0\xE3\x3A\x8B\x44\x3E\x1C\x67\x51\x18\xA3\xA8\x2A\x2B\x1A\x7C"
|
const char HTTP_SCRIPT_CONSOL_COMPRESSED[] PROGMEM = "\x33\xBF\xAF\x71\xF0\xE3\x3A\x8B\x44\x3E\x1C\x67\x51\x18\xA3\xA8\x2A\x2B\x1A\x7C"
|
||||||
"\x3E\x84\x3C\x18\x17\xC1\xD6\xE7\x20\x8E\xE8\xC3\xBC\x7B\x4C\xEF\xE8\x33\xAB\x0F"
|
"\x3E\x84\x3C\x18\x17\xC1\xD6\xE7\x20\x8E\xE8\xC3\xBC\x7B\x4C\xEF\xE8\x33\xAB\x0F"
|
||||||
"\x87\xD9\xF6\x78\x0C\x27\x7F\x2A\x2B\xD1\xAF\x05\xD1\xDD\x0A\x8E\xF0\x24\xCD\x31"
|
"\x87\xD9\xF6\x78\x0C\x27\x7F\x2A\x2B\xD1\xAF\x05\xD1\xDD\x0A\x8E\xF0\x24\xCD\x31"
|
||||||
|
@ -14,30 +14,31 @@ const char HTTP_SCRIPT_CONSOL_COMPRESSED[] PROGMEM = "\x33\xBF\xAF\x71\xF0\xE3\x
|
||||||
"\x41\x1A\x61\xF8\x7C\xF7\x1D\xE3\xDB\xA6\x0E\xE9\xB0\xFE\x1F\x38\x58\x41\x1D\xE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E\x0B\x44\x3E\x08\x74\xF0"
|
||||||
"\x74\xEF\x1E\x34\xC1\xDD\x04\x49\x27\xC3\xE1\xC6\x77\x8F\x69\x50\x22\xF0\xA8\x7B"
|
"\xAD\x31\x47\x74\xEF\x1E\x34\xC1\xDD\x04\x49\x27\xC3\xE1\xC6\x77\x8F\x69\x50\x22"
|
||||||
"\x8D\xA0\x93\x82\x9B\x4E\x81\x3E\x1E\xA1\x47\xE0\x22\xE0\x67\x6C\xF8\x6D\x3C\x1E"
|
"\xF0\x9C\x7B\x8D\xA0\x93\x82\x9B\x4E\x81\x3E\x1E\xA1\x47\xE0\x22\xE0\x67\x6C\xF8"
|
||||||
"\xE0\x5F\xE1\xF0\x13\x39\x2A\x01\x0A\x8F\x9E\x74\x08\x9C\x91\x9D\x41\x50\xD3\xBC"
|
"\x6D\x3C\x1E\xE0\x5F\xE1\xD8\x13\x38\xFA\x0A\x8F\x9E\x74\x08\x9C\x8E\x9D\x41\x50"
|
||||||
"\x78\x3D\xC7\xB8\xF0\x6C\x3A\x60\xC7\xC7\x74\xFB\x21\xE2\x65\x47\xD9\xD4\x7D\x87"
|
"\xD3\xBC\x78\x3D\xC7\xB8\xF0\x6C\x3A\x60\xC7\xC7\x74\xFB\x21\xE2\x65\x47\xD9\xD4"
|
||||||
"\xE3\xB4\x19\xCA\x3E\x1F\x67\x6C\xB4\x43\xB7\x87\x55\x7C\x5B\x3B\xC7\x83\x61\xD3"
|
"\x7D\x87\xE3\xB4\x19\xCA\x3E\x1F\x67\x6C\xB4\x43\xB7\x87\x55\x7C\x5B\x3B\xC7\x83"
|
||||||
"\xCF\x84\x3B\xA7\x78\xF0\x60\x12\xB1\xE3\x94\xDB\x67\x78\xF0\x7B\x89\x85\xE6\x7B"
|
"\x61\xD3\xCF\x84\x3B\xA7\x78\xF0\x60\x12\xB1\xE3\x94\xDB\x67\x78\xF0\x7B\x89\x85"
|
||||||
"\x41\x47\x3B\xFB\xA1\x7F\xE4\x62\xC2\xF3\x3C\x1E\xE1\xF0\x8E\xE8\x47\x78\xF0\x67"
|
"\xE6\x7B\x41\x47\x3B\xFB\xA1\x7F\xE4\x62\xC2\xF3\x3C\x1E\xE1\xF0\x8E\xE8\x47\x78"
|
||||||
"\x7F\x42\x83\x3E\x1E\xF1\xEF\x9D\x41\xF1\xF0\xE3\x20\x45\xE7\x4C\x51\xDD\x3B\xC7"
|
"\xF0\x67\x7F\x42\x83\x3E\x1E\xF1\xEF\x9D\x41\xF1\xF0\xE3\x20\x45\xE7\x34\x51\xDD"
|
||||||
"\xB4\x10\xF9\x8F\x3A\x58\x82\x13\x33\x7D\x44\x16\xFA\x9F\x3F\x9D\xD3\xEC\xD1\x99"
|
"\x3B\xC7\xB4\x10\xF9\x89\x3A\x58\x82\x13\x33\x7D\x44\x16\xFA\x9F\x3F\x9D\xD3\xEC"
|
||||||
"\x09\x83\xFC\x7D\x9D\x40\x89\xC7\xF3\x04\x1E\x37\x07\x02\x27\x38\xA7\x50\x67\xC6"
|
"\xD1\x99\x09\x83\xFC\x7D\x9D\x4C\xF8\x7E\x1E\xD3\x3B\xFA\x1C\x08\x9C\xDB\x9D\x41"
|
||||||
"\x74\x34\x66\x44\x1E\x08\xCF\x1A\x60\xEE\x9C\xBF\x9F\x0F\x84\x19\xFE\x3F\xC7\x31"
|
"\x9F\x19\xD0\xD1\x99\x10\x78\x23\x3C\x69\x83\xBA\x72\xFE\x7C\x3E\x10\x67\xF8\xFF"
|
||||||
"\x9F\x0F\x84\x19\xDE\x3D\xA3\x8E\x96\x2E\xB0\x3C\x1A\x30\x27\x4C\xF8\x7D\xE1\x83"
|
"\x1C\xC6\x7C\x3E\x10\x67\x78\xF6\x8E\x3A\x58\xBA\xC0\xF0\x68\xC0\x9D\x33\xE1\xF7"
|
||||||
"\x07\xD9\xE0\x11\xB8\x10\x1C\x7C\x3F\x0F\x68\xE3\xA1\x8C\x0C\x5F\x8E\xE9\xDE\x3C"
|
"\x86\x0C\x1F\x67\x80\x46\xE0\x20\x71\xF0\xFC\x3D\xA3\x8E\x86\x30\x31\x7E\x3B\xA7"
|
||||||
"\x0E\x3A\x79\xD1\x79\x84\xC3\xAD\xCE\x2F\xDF\x0F\x33\xBA\x72\x13\x38\x8E\xA8\x4C"
|
"\x78\xF0\x38\xE9\xE7\x45\xE6\x13\x0E\xB7\x38\xBF\x7C\x3C\xCE\xE9\xC8\x4C\xE2\x3A"
|
||||||
"\xE2\x3B\xC7\xB8\xEA\x67\x51\x0E\x3B\xC7\xB8\xE5\xFC\xF8\x7C\x20\xCE\xD1\xDD\x3B"
|
"\xA1\x33\x88\xEF\x1E\xE3\xA9\x9D\x44\x38\xEF\x1E\xE3\x97\xF3\xE1\xF0\x83\x3B\x47"
|
||||||
"\x67\x6C\x3E\x3F\x05\x06\x08\x5C\x84\x1F\xA3\xF4\x77\x43\xE3\xE0\x22\x4B\x3B\xC7"
|
"\x74\xED\x9D\xB0\xF8\xFC\x14\x18\x21\x72\x2A\x01\x7E\x8F\xD1\xDD\x0F\x8F\x80\x89"
|
||||||
"\x50\xE0\x42\xE4\xF0\x50\x67\xBC\x1F\x1D\x67\x21\xEF\x9F\xE3\xFC\x7D\x9F\x67\x78"
|
"\x2C\xEF\x1D\x43\x81\x0B\x93\x41\x41\x9E\xF0\x7C\x75\x9C\x87\xBE\x7F\x8F\xF1\xF6"
|
||||||
"\xF3\xC6\x7C\x3E\x10\x67\x68\xEE\x9C\x67\xE1\xD6\x75\x90\x7C\x08\x38\x81\xC6\x40"
|
"\x7D\x9D\xE3\xCF\x19\xF0\xF8\x41\x9D\xA3\xBA\x71\x9F\x87\x59\xD6\x41\xF0\x20\xE2"
|
||||||
"\xA7\x84\x1C\x96\x7C\x3E\x10\x67\xE8\xFD\x1D\xD0\x44\xCC\x4F\xC3\x91\x1F\xA3\xF4"
|
"\x07\x19\x02\x9E\x10\x72\x59\xF0\xF8\x41\x9F\xA3\xF4\x77\x41\x13\x31\x3F\x0E\x44"
|
||||||
"\x42\x83\x3A\x0C\xC1\x87\x74\xEF\x1D\x42\x83\x3A\x0B\xE0\x41\xE6\x48\x10\xB1\xC3"
|
"\x7E\x8F\xD1\x0A\x0C\xE8\x33\x06\x1D\xD3\xBC\x75\x0A\x0C\xE8\x2F\x81\x07\x98\xA0"
|
||||||
"\xBC\x75\x07\xC7\xC3\x8C\xEF\x1E\xE3\xBC\x78\x3D\xC4\x3E\x11\xDD\x14\x77\x8F\x06";
|
"\x42\xC7\x0E\xF1\xD4\x1F\x1F\x0E\x33\xBC\x7B\x8E\xF1\xE0\xF7\x10\xF8\x47\x74\x51"
|
||||||
|
"\xDE\x3C\x1B";
|
||||||
|
|
||||||
#define HTTP_SCRIPT_CONSOL Decompress(HTTP_SCRIPT_CONSOL_COMPRESSED,HTTP_SCRIPT_CONSOL_SIZE).c_str()
|
#define HTTP_SCRIPT_CONSOL Decompress(HTTP_SCRIPT_CONSOL_COMPRESSED,HTTP_SCRIPT_CONSOL_SIZE).c_str()
|
|
@ -2,24 +2,24 @@
|
||||||
// compressed by tools/unishox/compress-html-uncompressed.py
|
// compressed by tools/unishox/compress-html-uncompressed.py
|
||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
const size_t HTTP_SCRIPT_ROOT_SIZE = 507;
|
const size_t HTTP_SCRIPT_ROOT_SIZE = 501;
|
||||||
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"
|
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"
|
"\xE3\xFC\x7D\x9F\x67\x80\xC2\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78\x36\x1D\x30\x63\xE3"
|
"\x9D\x02\x24\xEB\x3A\x8F\xA1\x0E\xF1\xE0\xF7\x1E\xE3\xC1\xB0\xE9\x83\x1F\x1D\xD3"
|
||||||
"\xBA\x7D\x90\xF1\x32\xA3\xEC\xEA\x3E\xCE\x87\x68\x69\xF0\xE4\x3E\xCE\xD9\x59\xD5"
|
"\xEC\x87\x89\x95\x1F\x67\x51\xF6\x74\x3B\x43\x4F\x87\x21\xF6\x76\xCA\xCE\xAA\xF8"
|
||||||
"\x5F\x16\xCE\xF1\xE0\xD8\x74\xF3\xE1\x0E\xE9\xDE\x3C\x18\x04\xBC\x68\xE5\x36\xD9"
|
"\xB6\x77\x8F\x06\xC3\xA7\x9F\x08\x77\x4E\xF1\xE0\xC0\x25\xE3\x47\x29\xB6\xCE\xF1"
|
||||||
"\xDE\x3C\x1E\xE3";
|
"\xE0\xF7\x1B";
|
||||||
|
|
||||||
#define HTTP_SCRIPT_ROOT Decompress(HTTP_SCRIPT_ROOT_COMPRESSED,HTTP_SCRIPT_ROOT_SIZE).c_str()
|
#define HTTP_SCRIPT_ROOT Decompress(HTTP_SCRIPT_ROOT_COMPRESSED,HTTP_SCRIPT_ROOT_SIZE).c_str()
|
|
@ -2,23 +2,23 @@
|
||||||
// compressed by tools/unishox/compress-html-uncompressed.py
|
// compressed by tools/unishox/compress-html-uncompressed.py
|
||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
const size_t HTTP_SCRIPT_ROOT_SIZE = 444;
|
const size_t HTTP_SCRIPT_ROOT_SIZE = 436;
|
||||||
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"
|
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"
|
"\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"
|
"\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"
|
"\xF6\x77\x8F\x04\xCE\x99\xC3\x5F\xBD\x63\xCC\xF8\xCC\xDF\x51\xF0\xFC\x3D\xAC\x71"
|
||||||
"\x1E\xD6\x38\xEE\x9F\x61\x1C\x87\xD9\xDE\x3A\x16\xF7\x3F\x90\xA2\xA2\x1A\x41\x1F"
|
"\xDD\x3E\xC2\x39\x0F\xB3\xBC\x74\x2D\xEE\x7F\x21\x45\x44\x34\x82\x04\x1A\xE7\x41"
|
||||||
"\x19\x9B\xEA\x3A\x09\x75\x67\x4F\xB1\x81\x58\x6C\xEE\x9D\x87\xB6\x8F\x71\xD8\x3C"
|
"\x2E\xAC\xE9\xF6\x30\x2B\x0D\x9D\xD3\xB0\xF6\xD1\xEE\x3B\x07\x8E\xA3\xD8\x7A\x55"
|
||||||
"\x75\x1E\xC3\xD2\xAC\x70\x4D\x7A\x8C\x82\x67\xC3\xEC\x7F\x44\xA1\x47\x99\xC8\xD9"
|
"\x8E\x09\xAF\x51\x90\x4C\xF8\x7D\x8F\xE8\x94\x28\xF3\x39\x1B\x3E\x8F\xA3\xEC\xFC"
|
||||||
"\xF4\x7D\x1F\x67\xE1\xEC\x3B\xC4\x08\xD8\x57\x81\x0B\x0A\xF9\xF8\x7A\x50\xA0\x49"
|
"\x3D\x87\x78\x81\x1B\x0A\xF0\x21\x61\x5F\x3F\x0F\x4A\x14\x09\x35\xC6\x82\x0D\x73"
|
||||||
"\xAE\x34\x10\x6B\x9D\x94\x28\xFC\x3D\x28\x40\x49\xC9\xCE\x53\x21\x86\xC3\xC0\xF8"
|
"\xB2\x85\x1F\x87\xA5\x08\x09\x39\x39\xCA\x64\x30\xD8\x78\x1F\x15\xB4\xCE\xBF\x0C"
|
||||||
"\xAD\xA6\x75\xF8\x65\x86\xCF\x3E\xC1\xFF\xD8\xC0\x4A\xCE\x58\x21\xE3\xC2\x1F\x87"
|
"\xB0\xD9\xE7\xD8\x3F\xFB\x18\x09\x59\xCB\x04\x3C\x78\x43\xF0\xF4\x3B\x2B\xE7\xE1"
|
||||||
"\xA1\xD9\x5F\x3F\x0F\x61\xDE\x3C\x1E\xE3\xDD\x67\xC1\x87\xF8\xFF\x1F\x67\xD9\xE0"
|
"\xEC\x3B\xC7\x83\xDC\x7B\xAC\xF8\x30\xFF\x1F\xE3\xEC\xFB\x3C\x06\x13\xBF\x95\x68"
|
||||||
"\x30\x9D\xFC\xAB\x46\xBC\x17\x47\x74\x2A\x2B\x3B\xC7\x8D\x30\x77\x4D\x87\xF0\xF9"
|
"\xD7\x82\xE8\xEE\x85\x47\x78\xF1\xA6\x0E\xE9\xB0\xFE\x1F\x38\x58\x41\x1D\xE3\xDA"
|
||||||
"\xC2\xC2\x08\xEF\x1E\xD3\x61\xD2\xC7\x67\xE8\xEE\x9D\xE3\xDC\x6C\x3E\x73\x1F\x44"
|
"\x6C\x3A\x58\xEC\xFD\x1D\xD3\xBC\x7B\x8D\x87\xCE\x63\xE8\x8D\x84\x34\x82\x21\x55"
|
||||||
"\x6C\x21\xA4\x11\x0A\xAA\x18\x5F\x66\xA1\x6F\xD4\x77\x4E\xF1\xE0\xD8\x74\xC1\x8F"
|
"\x43\x0B\xEC\xD4\x2D\xFA\x8E\xE9\xDE\x3C\x1B\x0E\x98\x31\xF1\xDD\x3E\xC8\x78\x99"
|
||||||
"\x8E\xE9\xF6\x43\xC4\xCA\x8F\xB3\xA8\xFB\x3A\x1D\xA1\xA7\xC3\x90\xFB\x3B\x65\x67"
|
"\x51\xF6\x75\x1F\x67\x43\xB4\x34\xF8\x72\x1F\x67\x6C\xAC\xEA\xAF\x8B\x67\x78\xF0"
|
||||||
"\x55\x7C\x5B\x3B\xC7\x83\x61\xD3\xCF\x84\x3B\xA7\x78\xF0\x15\x1F\x3C\xE8\x11\x34"
|
"\x6C\x3A\x79\xF0\x87\x74\xEF\x1E\x02\xA3\xE7\x9D\x02\x26\x83\x67\x51\xCA\x6D\xB3"
|
||||||
"\x1B\x3A\x8E\x53\x6D\x9D\xE3\xC1\xEE";
|
"\xBC\x78\x3D\xC6";
|
||||||
|
|
||||||
#define HTTP_SCRIPT_ROOT Decompress(HTTP_SCRIPT_ROOT_COMPRESSED,HTTP_SCRIPT_ROOT_SIZE).c_str()
|
#define HTTP_SCRIPT_ROOT Decompress(HTTP_SCRIPT_ROOT_COMPRESSED,HTTP_SCRIPT_ROOT_SIZE).c_str()
|
|
@ -2,31 +2,31 @@
|
||||||
// compressed by tools/unishox/compress-html-uncompressed.py
|
// compressed by tools/unishox/compress-html-uncompressed.py
|
||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
const size_t HTTP_SCRIPT_ROOT_SIZE = 880;
|
const size_t HTTP_SCRIPT_ROOT_SIZE = 874;
|
||||||
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"
|
const char HTTP_SCRIPT_ROOT_COMPRESSED[] PROGMEM = "\x33\xBF\xAF\x98\xF0\xA3\xE1\xC8\x75\x11\x8A\x3C\x18\x17\xC1\xD6\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xED\x23\x3B\xFA\xF1\xF0\xD8\x74\xFB\xF0\xCC\xEF\x32\xA6"
|
"\xE1\xF0\xE5\x36\x77\x8F\x69\x19\xDF\xD7\x8F\x86\xC3\xA7\xDF\x86\x67\x79\x95\x33"
|
||||||
"\x6C\xA3\xA7\xD8\xC0\xAC\x36\x77\x4E\xC3\xDB\x47\xB8\xEC\x1E\x3A\x8F\x61\xE9\x56"
|
"\x65\x1D\x3E\xC6\x05\x61\xB3\xBA\x76\x1E\xDA\x3D\xC7\x60\xF1\xD4\x7B\x0F\x4A\xB1"
|
||||||
"\x38\x26\xBD\x46\x41\x33\xE1\xF6\x3F\xA2\x50\xA3\xCC\xE4\x6C\xFA\x3E\x8F\xB3\xF0"
|
"\xC1\x35\xEA\x32\x09\x9F\x0F\xB1\xFD\x12\x85\x1E\x67\x23\x67\xD1\xF4\x7D\x9F\x87"
|
||||||
"\xF6\x1D\xE2\x04\x6C\x2B\xC0\x85\x85\x7C\xFC\x3D\x28\x50\x24\xD7\x1A\x08\x35\xCE"
|
"\xB0\xEF\x10\x23\x61\x5E\x04\x2C\x2B\xE7\xE1\xE9\x42\x81\x26\xB8\xD0\x41\xAE\x76"
|
||||||
"\xCA\x14\x7E\x1E\x94\x20\x24\xE4\xE7\x29\x90\xC3\x61\xE0\x7C\x56\xD3\x3A\xFC\x32"
|
"\x50\xA3\xF0\xF4\xA1\x01\x27\x27\x39\x4C\x86\x1B\x0F\x03\xE2\xB6\x99\xD7\xE1\x96"
|
||||||
"\xC3\x67\x9F\x60\xFF\xEC\x60\x25\x67\x2C\x10\xF1\xE1\x0F\xC3\xD0\xEC\xAF\x9F\x87"
|
"\x1B\x3C\xFB\x07\xFF\x63\x01\x2B\x39\x60\x87\x8F\x08\x7E\x1E\x87\x65\x7C\xFC\x3D"
|
||||||
"\xB0\xEF\x1E\x18\xE3\xBA\x7D\x84\x72\x1F\x67\x78\xE8\x5B\xDC\xFE\x42\x8A\x88\x69"
|
"\x87\x78\xF0\xC7\x1D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||||||
"\xC7\x80\x46\xC3\x74\x12\x30\xD0\x41\xE6\xE0\xF0\x0A\x78\xA7\xCC\x78\x51\xF0\xE3"
|
"\x3C\x02\x36\x1B\xA0\x91\x86\x82\x0F\x36\x47\x80\x53\xC5\x3E\x63\xC2\x8F\x87\x19"
|
||||||
"\x20\x4A\xC6\xE8\x13\x71\xC1\x97\xF4\x7C\x43\x2F\xE7\x4F\x05\xA1\xB3\xBA\x71\x9D"
|
"\x02\x56\x37\x40\x9B\x8E\x0C\xBF\xA3\xE2\x19\x7F\x3A\x78\x2D\x0D\x9D\xD3\x8C\xEA"
|
||||||
"\x47\x72\x8E\xF1\xDC\x3B\x64\x08\xD3\x8E\x59\xDE\x20\x60\xBA\x08\xCF\x9D\xD3\x07"
|
"\x3B\x94\x77\x8E\xE1\xDB\x20\x46\x9C\x72\xCE\xF1\x03\x05\xD0\x46\x7C\xEE\x98\x3B"
|
||||||
"\x78\xF6\xE9\x83\xBA\x60\xEF\x1E\xD0\x4C\xE3\x08\x13\x38\xE4\x05\x0E\x32\x81\x0B"
|
"\xC7\xB7\x4C\x1D\xD3\x07\x78\xF6\x82\x67\x18\x40\x99\xC7\x20\x28\x71\x94\x08\x5B"
|
||||||
"\x74\x3D\xCC\x2F\x30\x5E\xC8\x01\x0F\x5F\x3D\xC6";
|
"\xA1\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()
|
#define HTTP_SCRIPT_ROOT Decompress(HTTP_SCRIPT_ROOT_COMPRESSED,HTTP_SCRIPT_ROOT_SIZE).c_str()
|
|
@ -2,19 +2,19 @@
|
||||||
// compressed by tools/unishox/compress-html-uncompressed.py
|
// compressed by tools/unishox/compress-html-uncompressed.py
|
||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
const size_t HTTP_SCRIPT_TEMPLATE_SIZE = 303;
|
const size_t HTTP_SCRIPT_TEMPLATE_SIZE = 297;
|
||||||
const char HTTP_SCRIPT_TEMPLATE_COMPRESSED[] PROGMEM = "\x30\x2F\x83\xAD\xCE\x41\x08\x77\x45\x9D\x46\x0E\xF1\xED\x33\xBF\xA3\x61\xF3\x98"
|
const char HTTP_SCRIPT_TEMPLATE_COMPRESSED[] PROGMEM = "\x30\x2F\x83\xAD\xCE\x41\x08\x77\x45\x9D\x46\x0E\xF1\xED\x33\xBF\xA3\x61\xF3\x98"
|
||||||
"\xFA\x23\x61\x0D\x20\x88\x55\x50\xC2\xFB\x35\x0B\x7E\xA3\xBA\x77\x8F\x06\xC3\xA6"
|
"\xFA\x23\x61\x0D\x20\x88\x55\x50\xC2\xFB\x35\x0B\x7E\xA3\xBA\x77\x8F\x06\xC3\xA6"
|
||||||
"\x77\xDD\x88\x65\xEA\xBA\x61\x8A\xBE\x1E\x67\xC0\x43\xC7\x4E\xE9\xDE\x3D\xBA\x60"
|
"\x77\xDD\x88\x65\xEA\xBA\x61\x8A\xBE\x1E\x67\xC3\xBA\x77\x8F\x87\xE1\xED\xD3\x07"
|
||||||
"\xEE\xD0\xAD\xF1\xD3\xEE\xC4\x32\x2F\x55\xD3\x3E\x1F\x0E\x61\xFA\x3F\x45\x42\xB7"
|
"\x76\x85\x6F\x8E\x9F\x76\x21\x91\x7A\xAE\x99\xF0\xF8\x73\x0F\xD1\xFA\x2A\x2B\x15"
|
||||||
"\xC7\x4F\x55\xD0\xBF\x1F\x0F\x87\x29\xB3\xBC\x7B\x48\x10\x70\x43\xBC\x78\x3D\xC7"
|
"\xBE\x3A\x7A\xAE\x85\xF8\xF8\x7C\x39\x4D\x9D\xE3\xDA\x40\x83\x82\x1D\xE3\xC1\xEE"
|
||||||
"\xB8\xF0\x6C\x3A\x60\xC7\xC7\x74\xFB\x21\xE2\x65\x47\xD9\xD4\x2C\xEA\xAF\x8B\x67"
|
"\x3D\xC7\x83\x61\xD3\x06\x3E\x3B\xA7\xD9\x0F\x13\x2A\x2B\x3E\xCE\xA1\x67\x55\x7C"
|
||||||
"\x78\xF0\x6C\x3A\x79\xF0\x87\x74\xEF\x1E\x0F\x71\x9D\xFD\x06\x78\x04\x4E\x2A\x01"
|
"\x5B\x3B\xC7\x83\x61\xD3\xCF\x84\x3B\xA7\x78\xF0\x7B\x8C\xEF\xE8\x33\xC0\x22\x6F"
|
||||||
"\x4D\x87\x21\xDD\x21\xC0\x83\xBF\xE9\xD4\x6B\x3A\x87\x8E\xA3\x43\xAB\x0F\x18\x7C"
|
"\x66\xC3\x90\xEE\x90\xE0\x41\xDE\x74\xEA\x35\x9D\x43\xC7\x51\xA1\xD5\x87\x8C\x3E"
|
||||||
"\x1C\x74\xFB\xF0\xCC\xEF\x32\xA6\x6C\xA3\xA7\x86\x05\xB4\x77\x4E\xC3\xDC\x72\x1D"
|
"\x0E\x3A\x7D\xF8\x66\x77\x99\x53\x36\x51\xD3\xC3\x02\xDA\x3B\xA7\x61\xEE\x39\x0E"
|
||||||
"\x87\x78\xF0\x46\x87\xCC\x3A\x78\x56\x98\xA3\xBA\x77\x8F\x1A\x60\xEE\xB1\xC7\x74"
|
"\xC3\xBC\x78\x23\x43\xE6\x1D\x3C\x2B\x4C\x51\xDD\x3B\xC7\x8D\x30\x77\x58\xE3\xBA"
|
||||||
"\xFB\xF1\xC8\x7D\x9D\xE3\xA1\x19\xD8\x42\xD9\xF0\xF8\x7D\x9F\x67\x78\xF6\x82\x55"
|
"\x7D\xF8\xE4\x3E\xCE\xF1\xD0\x8C\xEC\x21\x6C\xF8\x7C\x3E\xCF\xB3\xBC\x7B\x41\x2A"
|
||||||
"\x03\x43\xC1\xEE\x1E\x04\x5C\x44\x10\xB2\x93\xEC\xEA\x3E\xCE\xF1\xE3\x3C\x7C\x3D"
|
"\x2B\x81\xA1\xE0\xF7\x0F\x02\x2E\x22\x08\x59\x49\xF6\x75\x1F\x67\x78\xF1\x9E\x3E"
|
||||||
"\x86";
|
"\x1E\xC3";
|
||||||
|
|
||||||
#define HTTP_SCRIPT_TEMPLATE Decompress(HTTP_SCRIPT_TEMPLATE_COMPRESSED,HTTP_SCRIPT_TEMPLATE_SIZE).c_str()
|
#define HTTP_SCRIPT_TEMPLATE Decompress(HTTP_SCRIPT_TEMPLATE_COMPRESSED,HTTP_SCRIPT_TEMPLATE_SIZE).c_str()
|
|
@ -15,7 +15,7 @@ const char HTTP_SCRIPT_CONSOL[] PROGMEM =
|
||||||
"if(t.scrollTop>=sn){" // User scrolled back so no updates
|
"if(t.scrollTop>=sn){" // User scrolled back so no updates
|
||||||
"if(x!=null){x.abort();}" // Abort if no response within 2 seconds (happens on restart 1)
|
"if(x!=null){x.abort();}" // Abort if no response within 2 seconds (happens on restart 1)
|
||||||
"x=new XMLHttpRequest();"
|
"x=new XMLHttpRequest();"
|
||||||
"x.onreadystatechange=function(){"
|
"x.onreadystatechange=()=>{"
|
||||||
"if(x.readyState==4&&x.status==200){"
|
"if(x.readyState==4&&x.status==200){"
|
||||||
"var z,d;"
|
"var z,d;"
|
||||||
"d=x.responseText.split(/}1/);" // Field separator
|
"d=x.responseText.split(/}1/);" // Field separator
|
||||||
|
@ -43,7 +43,7 @@ const char HTTP_SCRIPT_CONSOL[] PROGMEM =
|
||||||
"var hc=[],cn=0;" // hc = History commands, cn = Number of history being shown
|
"var hc=[],cn=0;" // hc = History commands, cn = Number of history being shown
|
||||||
"function h(){"
|
"function h(){"
|
||||||
// "if(!(navigator.maxTouchPoints||'ontouchstart'in document.documentElement)){eb('c1').autocomplete='off';}" // No touch so stop browser autocomplete
|
// "if(!(navigator.maxTouchPoints||'ontouchstart'in document.documentElement)){eb('c1').autocomplete='off';}" // No touch so stop browser autocomplete
|
||||||
"eb('c1').addEventListener('keydown',function(e){"
|
"eb('c1').addEventListener('keydown',e=>{"
|
||||||
"var b=eb('c1'),c=e.keyCode;" // c1 = Console command id
|
"var b=eb('c1'),c=e.keyCode;" // c1 = Console command id
|
||||||
"if(38==c||40==c){" // ArrowUp or ArrowDown
|
"if(38==c||40==c){" // ArrowUp or ArrowDown
|
||||||
"b.autocomplete='off';" // ArrowUp or ArrowDown must be a keyboard so stop browser autocomplete
|
"b.autocomplete='off';" // ArrowUp or ArrowDown must be a keyboard so stop browser autocomplete
|
||||||
|
|
|
@ -5,7 +5,7 @@ const char HTTP_SCRIPT_ROOT[] PROGMEM =
|
||||||
"clearTimeout(ft);clearTimeout(lt);"
|
"clearTimeout(ft);clearTimeout(lt);"
|
||||||
"if(x!=null){x.abort()}" // Abort if no response within 2 seconds (happens on restart 1)
|
"if(x!=null){x.abort()}" // Abort if no response within 2 seconds (happens on restart 1)
|
||||||
"x=new XMLHttpRequest();"
|
"x=new XMLHttpRequest();"
|
||||||
"x.onreadystatechange=function(){"
|
"x.onreadystatechange=()=>{"
|
||||||
"if(x.readyState==4&&x.status==200){"
|
"if(x.readyState==4&&x.status==200){"
|
||||||
"var s=x.responseText.replace(/{t}/g,\"<table style='width:100%%'>\")"
|
"var s=x.responseText.replace(/{t}/g,\"<table style='width:100%%'>\")"
|
||||||
".replace(/{s}/g,\"<tr><th>\")"
|
".replace(/{s}/g,\"<tr><th>\")"
|
||||||
|
|
|
@ -2,7 +2,7 @@ const char HTTP_SCRIPT_ROOT[] PROGMEM =
|
||||||
"function la(p){"
|
"function la(p){"
|
||||||
"if(typeof(EventSource)!==\"undefined\"){"
|
"if(typeof(EventSource)!==\"undefined\"){"
|
||||||
"var e=new EventSource('?m=1');"
|
"var e=new EventSource('?m=1');"
|
||||||
"e.onmessage=function(event){"
|
"e.onmessage=event=>{"
|
||||||
"eb('l1').innerHTML=event.data.replace(/{t}/g,\"<table style='width:100%%'>\")"
|
"eb('l1').innerHTML=event.data.replace(/{t}/g,\"<table style='width:100%%'>\")"
|
||||||
".replace(/{s}/g,\"<tr><th>\")"
|
".replace(/{s}/g,\"<tr><th>\")"
|
||||||
// ".replace(/{m}/g,\"</th><td>\")"
|
// ".replace(/{m}/g,\"</th><td>\")"
|
||||||
|
|
|
@ -5,7 +5,7 @@ const char HTTP_SCRIPT_ROOT[] PROGMEM =
|
||||||
"clearTimeout(ft);clearTimeout(lt);"
|
"clearTimeout(ft);clearTimeout(lt);"
|
||||||
"if(x!=null){x.abort();}" // Abort if no response within 2 seconds (happens on restart 1)
|
"if(x!=null){x.abort();}" // Abort if no response within 2 seconds (happens on restart 1)
|
||||||
"x=new XMLHttpRequest();"
|
"x=new XMLHttpRequest();"
|
||||||
"x.onreadystatechange=function(){"
|
"x.onreadystatechange=()=>{"
|
||||||
"if(x.readyState==4&&x.status==200){"
|
"if(x.readyState==4&&x.status==200){"
|
||||||
"var s=x.responseText.replace(/{t}/g,\"<table style='width:100%%'>\")"
|
"var s=x.responseText.replace(/{t}/g,\"<table style='width:100%%'>\")"
|
||||||
".replace(/{s}/g,\"<tr><th>\")"
|
".replace(/{s}/g,\"<tr><th>\")"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
const char HTTP_SCRIPT_TEMPLATE[] PROGMEM =
|
const char HTTP_SCRIPT_TEMPLATE[] PROGMEM =
|
||||||
"function ld(u,f){"
|
"function ld(u,f){"
|
||||||
"var x=new XMLHttpRequest();"
|
"var x=new XMLHttpRequest();"
|
||||||
"x.onreadystatechange=function(){"
|
"x.onreadystatechange=()=>{"
|
||||||
"if(this.readyState==4&&this.status==200){"
|
"if(this.readyState==4&&this.status==200){"
|
||||||
"f(this);"
|
"f(this);"
|
||||||
"}"
|
"}"
|
||||||
|
|
Loading…
Reference in New Issue