Merge pull request #15280 from schlimmchen/downsizing-javascript

Downsizing JavaScript
This commit is contained in:
Theo Arends 2022-04-03 14:49:53 +02:00 committed by GitHub
commit b14bb16378
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 105 additions and 104 deletions

View File

@ -2,7 +2,7 @@
// compressed by tools/unishox/compress-html-uncompressed.py
/////////////////////////////////////////////////////////////////////
const size_t HTTP_SCRIPT_CONSOL_SIZE = 1011;
const size_t HTTP_SCRIPT_CONSOL_SIZE = 985;
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"
"\x87\xD9\xF6\x78\x0C\x27\x7F\x2A\x2B\xD1\xAF\x05\xD1\xDD\x0A\x8E\xF0\x24\xCD\x31"
@ -10,34 +10,35 @@ const char HTTP_SCRIPT_CONSOL_COMPRESSED[] PROGMEM = "\x33\xBF\xAF\x71\xF0\xE3\x
"\x0E\x43\xBC\x7B\x48\x33\xE3\x1C\x77\x4F\xB0\xCE\x43\xEC\xEF\x1E\x0B\x0F\x87\xD9"
"\xFA\x0C\xE4\x3E\x1F\x67\x6C\x9F\x07\x82\x32\x16\x5F\x2D\x20\xF0\x68\xCC\xE7\xD4"
"\x77\x43\x3A\x19\xD8\x42\xD9\xDE\x3C\x02\x14\x53\xE1\xF6\x7D\x9E\x28\xE9\xE0\xFF"
"\x81\x04\x55\x83\x0F\x87\x11\x1B\xD0\xCF\x1E\xE3\xE0\x23\x54\x3C\x1E\xED\x30\x77"
"\x41\x1A\x61\xF8\x7C\xF7\x1D\xE3\xDB\xA6\x0E\xE9\xB0\xFE\x1F\x38\x58\x41\x1D\xE3"
"\xDA\x6C\x3A\x58\xEC\xFD\x1D\xD3\x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C7"
"\xB4\x10\xF9\x8F\x3A\x58\x82\x13\x33\x7D\x44\x16\xFA\x9F\x3F\x9D\xD3\xEC\xD1\x99"
"\x09\x83\xFC\x7D\x9D\x40\x89\xC7\xF3\x04\x1E\x37\x07\x02\x27\x38\xA7\x50\x67\xC6"
"\x74\x34\x66\x44\x1E\x08\xCF\x1A\x60\xEE\x9C\xBF\x9F\x0F\x84\x19\xFE\x3F\xC7\x31"
"\x9F\x0F\x84\x19\xDE\x3D\xA3\x8E\x96\x2E\xB0\x3C\x1A\x30\x27\x4C\xF8\x7D\xE1\x83"
"\x07\xD9\xE0\x11\xB8\x10\x1C\x7C\x3F\x0F\x68\xE3\xA1\x8C\x0C\x5F\x8E\xE9\xDE\x3C"
"\x0E\x3A\x79\xD1\x79\x84\xC3\xAD\xCE\x2F\xDF\x0F\x33\xBA\x72\x13\x38\x8E\xA8\x4C"
"\xE2\x3B\xC7\xB8\xEA\x67\x51\x0E\x3B\xC7\xB8\xE5\xFC\xF8\x7C\x20\xCE\xD1\xDD\x3B"
"\x67\x6C\x3E\x3F\x05\x06\x08\x5C\x84\x1F\xA3\xF4\x77\x43\xE3\xE0\x22\x4B\x3B\xC7"
"\x50\xE0\x42\xE4\xF0\x50\x67\xBC\x1F\x1D\x67\x21\xEF\x9F\xE3\xFC\x7D\x9F\x67\x78"
"\xF3\xC6\x7C\x3E\x10\x67\x68\xEE\x9C\x67\xE1\xD6\x75\x90\x7C\x08\x38\x81\xC6\x40"
"\xA7\x84\x1C\x96\x7C\x3E\x10\x67\xE8\xFD\x1D\xD0\x44\xCC\x4F\xC3\x91\x1F\xA3\xF4"
"\x42\x83\x3A\x0C\xC1\x87\x74\xEF\x1D\x42\x83\x3A\x0B\xE0\x41\xE6\x48\x10\xB1\xC3"
"\xBC\x75\x07\xC7\xC3\x8C\xEF\x1E\xE3\xBC\x78\x3D\xC4\x3E\x11\xDD\x14\x77\x8F\x06";
"\x81\x04\x55\x83\x0F\x87\x21\x33\x9F\x3C\x17\xB8\xF8\x08\xD3\xCF\x07\xBB\x4C\x1D"
"\xD0\x46\x98\x7E\x1F\x3D\xC7\x78\xF6\xE9\x83\xBA\x6C\x3F\x87\xCE\x16\x10\x47\x78"
"\xF6\x9B\x0E\x96\x3B\x3F\x47\x74\xEF\x1E\x0F\x71\xB0\xF9\xCC\x7D\x11\xB0\x86\x90"
"\x44\x2A\x2B\xA8\x61\x7D\x9A\x85\xBF\x51\xDD\x3B\xC7\x83\x61\xD3\x3B\xEE\xC4\x32"
"\xF5\x5D\x30\xC5\x5F\x0F\x33\xE1\xDD\x3B\xC7\xC3\xF0\xF6\xE9\x83\xBA\x6C\x3A\x7D"
"\xD8\x86\x45\xEA\xBA\x67\xC3\xE1\xCC\x3F\x47\xE8\x8D\x87\x4F\x55\xD0\xBF\x1F\x0F"
"\x87\x29\xB2\x04\x1E\x1D\xCD\xA7\x50\x87\x81\x0F\x86\xC3\xA7\xDF\x86\x67\x79\x95"
"\x33\x65\x1D\x3C\x30\x2D\xA3\xBA\x76\x1E\xE3\x90\xEC\x3B\xC7\x82\xD1\x0F\x82\x1D"
"\x3C\x2B\x4C\x51\xDD\x3B\xC7\x8D\x30\x77\x41\x12\x49\xF0\xF8\x71\x9D\xE3\xDA\x54"
"\x08\xBC\x24\x9E\xE3\x68\x24\xE0\xA6\xD3\xA0\x4F\x87\xA8\x51\xF8\x08\xB8\x19\xDB"
"\x3E\x1B\x4F\x07\xB8\x16\xB8\x71\x04\xCE\x3C\x02\xA3\xE7\x9D\x02\x27\x22\x67\x50"
"\x54\x34\xEF\x1E\x0F\x71\xEE\x3C\x1B\x0E\x98\x31\xF1\xDD\x3E\xC8\x78\x99\x51\xF6"
"\x75\x1F\x61\xF8\xED\x06\x72\x8F\x87\xD9\xDB\x2D\x10\xED\xE1\xD5\x5F\x16\xCE\xF1"
"\xE0\xD8\x74\xF3\xE1\x0E\xE9\xDE\x3C\x18\x04\xAC\x78\xE5\x13\x39\x87\x78\xF0\x7B"
"\x89\x85\xE6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\x0C\xE8\x2F\x81\x07\x98"
"\x30\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()

View File

@ -2,24 +2,24 @@
// compressed by tools/unishox/compress-html-uncompressed.py
/////////////////////////////////////////////////////////////////////
const size_t HTTP_SCRIPT_ROOT_SIZE = 507;
const size_t HTTP_SCRIPT_ROOT_SIZE = 499;
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"
"\xD1\xDD\x3B\xC7\xB8\xD8\x7C\xE6\x3E\x88\xD8\x43\x48\x22\x15\x54\x30\xBE\xCD\x42"
"\xDF\xA8\xEE\x9D\xE3\xC1\xB0\xE9\x9D\xF7\x62\x19\x7A\xAE\x98\x62\xAF\x87\x99\xF0"
"\x10\xF5\x73\xBA\x77\x8F\x6E\x98\x3B\xA6\xC3\xA7\xDD\x88\x64\x5E\xAB\xA6\x7C\x3E"
"\x1C\xC3\xF4\x7E\x88\xD8\x74\xF5\x5D\x0B\xF1\xF0\xF8\x72\x9B\x3B\xC7\xB4\x8C\xEF"
"\xEB\xC7\xC3\x61\xD3\xEF\xC3\x33\xBC\xCA\x99\xB2\x8E\x9F\x63\x02\xB0\xD9\xDD\x3B"
"\x0F\x6D\x1E\xE3\xB0\x78\xEA\x3D\x87\xA5\x58\xE0\x9A\xF5\x19\x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10\xB0"
"\xAF\x9F\x87\xA5\x0A\x04\x9A\xE3\x41\x06\xB9\xD9\x42\x8F\xC3\xD2\x84\x04\x9C\x9C"
"\xE5\x32\x18\x6C\x3C\x0F\x8A\xDA\x67\x5F\x86\x58\x6C\xF3\xEC\x1F\xFD\x8C\x04\xAC"
"\xE5\x82\x1E\x3C\x21\xF8\x7A\x1D\x95\xF3\xF0\xF6\x1D\xE3\xC3\x1C\x77\x4F\xB0\x8E"
"\x43\xEC\xEF\x1D\x0B\x7B\x9F\xC8\x51\x51\x0D\x20\x8F\x9E\x05\xEE\x2E\x82\xA3\xE7"
"\x9D\x02\x24\xEB\x3A\x8F\xA1\x0E\xF1\xE0\xF7\x1E\xE3\xC1\xB0\xE9\x83\x1F\x1D\xD3"
"\xEC\x87\x89\x95\x1F\x67\x51\xF6\x74\x3B\x43\x4F\x87\x21\xF6\x76\xCA\xCE\xAA\xF8"
"\xB6\x77\x8F\x06\xC3\xA7\x9F\x08\x77\x4E\xF1\xE0\xC0\x25\xE3\x47\x28\x99\xCC\x3B"
"\xC7\x83\xDC";
#define HTTP_SCRIPT_ROOT Decompress(HTTP_SCRIPT_ROOT_COMPRESSED,HTTP_SCRIPT_ROOT_SIZE).c_str()

View File

@ -2,23 +2,23 @@
// compressed by tools/unishox/compress-html-uncompressed.py
/////////////////////////////////////////////////////////////////////
const size_t HTTP_SCRIPT_ROOT_SIZE = 444;
const size_t HTTP_SCRIPT_ROOT_SIZE = 434;
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\x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xF6\x77\x8F\x04\xCE\x99\xC3\x5F\xBD\x63\xCC\xF8\xCC\xDF\x51\xF0\xFC\x3D\xAC\x71"
"\xDD\x3E\xC2\x39\x0F\xB3\xBC\x74\x2D\xEE\x7F\x21\x45\x44\x34\x82\x04\x1A\xE7\x41"
"\x2E\xAC\xE9\xF6\x30\x2B\x0D\x9D\xD3\xB0\xF6\xD1\xEE\x3B\x07\x8E\xA3\xD8\x7A\x55"
"\x8E\x09\xAF\x51\x90\x4C\xF8\x7D\x8F\xE8\x94\x28\xF3\x39\x1B\x3E\x8F\xA3\xEC\xFC"
"\x3D\x87\x78\x81\x1B\x0A\xF0\x21\x61\x5F\x3F\x0F\x4A\x14\x09\x35\xC6\x82\x0D\x73"
"\xB2\x85\x1F\x87\xA5\x08\x09\x39\x39\xCA\x64\x30\xD8\x78\x1F\x15\xB4\xCE\xBF\x0C"
"\xB0\xD9\xE7\xD8\x3F\xFB\x18\x09\x59\xCB\x04\x3C\x78\x43\xF0\xF4\x3B\x2B\xE7\xE1"
"\xEC\x3B\xC7\x83\xDC\x7B\xAC\xF8\x30\xFF\x1F\xE3\xEC\xFB\x3C\x06\x13\xBF\x95\x68"
"\xD7\x82\xE8\xEE\x85\x47\x78\xF1\xA6\x0E\xE9\xB0\xFE\x1F\x38\x58\x41\x1D\xE3\xDA"
"\x6C\x3A\x58\xEC\xFD\x1D\xD3\xBC\x7B\x8D\x87\xCE\x63\xE8\x8D\x84\x34\x82\x21\x55"
"\x43\x0B\xEC\xD4\x2D\xFA\x8E\xE9\xDE\x3C\x1B\x0E\x98\x31\xF1\xDD\x3E\xC8\x78\x99"
"\x51\xF6\x75\x1F\x67\x43\xB4\x34\xF8\x72\x1F\x67\x6C\xAC\xEA\xAF\x8B\x67\x78\xF0"
"\x6C\x3A\x79\xF0\x87\x74\xEF\x1E\x02\xA3\xE7\x9D\x02\x26\x83\x67\x51\xCA\x26\x73"
"\x0E\xF1\xE0\xF7\x1B";
#define HTTP_SCRIPT_ROOT Decompress(HTTP_SCRIPT_ROOT_COMPRESSED,HTTP_SCRIPT_ROOT_SIZE).c_str()

View File

@ -2,31 +2,31 @@
// compressed by tools/unishox/compress-html-uncompressed.py
/////////////////////////////////////////////////////////////////////
const size_t HTTP_SCRIPT_ROOT_SIZE = 880;
const size_t HTTP_SCRIPT_ROOT_SIZE = 872;
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"
"\x08\xEF\x1E\xD3\x61\xD2\xC7\x67\xE8\xEE\x9D\xE3\xC1\xEE\x36\x1F\x39\x8F\xA2\x36"
"\x10\xD2\x08\x85\x55\x0C\x2F\xB3\x50\xB7\xEA\x3B\xA7\x78\xF0\x6C\x3A\x67\x7D\xD8"
"\x86\x5E\xAB\xA6\x18\xAB\xE1\xE6\x7C\x04\x3D\x60\xEE\x9D\xE3\xDB\xA6\x0E\xE9\xB0"
"\xE9\xF7\x62\x19\x17\xAA\xE9\x9F\x0F\x87\x30\xFD\x1F\xA2\x36\x1D\x3D\x57\x42\xFC"
"\x7C\x3E\x1C\xA6\xCE\xF1\xED\x23\x3B\xFA\xF1\xF0\xD8\x74\xFB\xF0\xCC\xEF\x32\xA6"
"\x6C\xA3\xA7\xD8\xC0\xAC\x36\x77\x4E\xC3\xDB\x47\xB8\xEC\x1E\x3A\x8F\x61\xE9\x56"
"\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\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\x4A\xC6\xE8\x13\x71\xC1\x97\xF4\x7C\x43\x2F\xE7\x4F\x05\xA1\xB3\xBA\x71\x9D"
"\x47\x72\x8E\xF1\xDC\x3B\x64\x08\xD3\x8E\x59\xDE\x20\x60\xBA\x08\xCF\x9D\xD3\x07"
"\x78\xF6\xE9\x83\xBA\x60\xEF\x1E\xD0\x4C\xE3\x08\x13\x38\xE4\x05\x0E\x32\x81\x0B"
"\x74\x3D\xCC\x2F\x30\x5E\xC8\x01\x0F\x5F\x3D\xC6";
"\x86\x5E\xAB\xA6\x18\xAB\xE1\xE6\x7C\x3B\xA7\x78\xF8\x7E\x1E\xDD\x30\x77\x4D\x87"
"\x4F\xBB\x10\xC8\xBD\x57\x4C\xF8\x7C\x39\x87\xE8\xFD\x11\xB0\xE9\xEA\xBA\x17\xE3"
"\xE1\xF0\xE5\x36\x77\x8F\x69\x19\xDF\xD7\x8F\x86\xC3\xA7\xDF\x86\x67\x79\x95\x33"
"\x65\x1D\x3E\xC6\x05\x61\xB3\xBA\x76\x1E\xDA\x3D\xC7\x60\xF1\xD4\x7B\x0F\x4A\xB1"
"\xC1\x35\xEA\x32\x09\x9F\x0F\xB1\xFD\x12\x85\x1E\x67\x23\x67\xD1\xF4\x7D\x9F\x87"
"\xB0\xEF\x10\x23\x61\x5E\x04\x2C\x2B\xE7\xE1\xE9\x42\x81\x26\xB8\xD0\x41\xAE\x76"
"\x50\xA3\xF0\xF4\xA1\x01\x27\x27\x39\x4C\x86\x1B\x0F\x03\xE2\xB6\x99\xD7\xE1\x96"
"\x1B\x3C\xFB\x07\xFF\x63\x01\x2B\x39\x60\x87\x8F\x08\x7E\x1E\x87\x65\x7C\xFC\x3D"
"\x87\x78\xF0\xC7\x1D\xD3\xEC\x23\x90\xFB\x3B\xC7\x42\xDE\xE7\xF2\x14\x54\x43\x48"
"\x23\xE7\x81\x80\xF1\x77\xF3\x1E\x14\x77\x8F\x68\x54\x7C\xF3\xA0\x44\xAF\x67\x51"
"\xF4\x21\xDE\x3C\x1E\xE3\xDC\x7B\x81\x16\xF1\xB0\xE9\x83\x1F\x1D\xD3\xEC\x87\x89"
"\x95\x1F\x67\x51\xF6\x74\x3B\x43\x4F\x87\x21\xF6\x76\xCA\xCE\xAA\xF8\xB6\x77\x8F"
"\x06\xC3\xA7\x9F\x08\x77\x4E\xF1\xE0\xC0\x25\xE4\x87\x28\x99\xCC\x3B\xC7\x83\xDC"
"\x7B\x88\x11\x39\x5D\xF3\x33\xB3\xBA\x32\xFE\x75\x69\x9D\xFC\xEF\x1E\xD0\xAC\xEE"
"\x9F\x67\xEB\xC6\x67\xC3\xEC\xED\xE9\x9D\xFC\xED\x9F\x67\xEC\xFB\x3B\x63\x2F\xE7"
"\x78\xF0\x08\xD8\x6E\x82\x46\x1A\x08\x3C\xD8\x1E\x01\x4F\x14\xF9\x8F\x0A\x3E\x1C"
"\x64\x09\x58\xDD\x02\x6E\x38\x32\xFE\x8F\x88\x65\xFC\xE9\xE0\xB4\x36\x77\x4E\x33"
"\xA8\xEE\x51\xDE\x3B\x87\x6C\x81\x1A\x71\xCB\x3B\xC4\x0C\x17\x41\x19\xF3\xBA\x60"
"\xEF\x1E\xDD\x30\x77\x4C\x1D\xE3\xDA\x09\x9C\x60\x02\x67\x1C\x40\xA1\xC6\x40\x21"
"\x6E\x87\xB9\x85\xE6\x0B\xD9\x2A\x01\x21\xEB\xE7\xB8";
#define HTTP_SCRIPT_ROOT Decompress(HTTP_SCRIPT_ROOT_COMPRESSED,HTTP_SCRIPT_ROOT_SIZE).c_str()

View File

@ -2,19 +2,19 @@
// 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"
"\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"
"\xEE\xD0\xAD\xF1\xD3\xEE\xC4\x32\x2F\x55\xD3\x3E\x1F\x0E\x61\xFA\x3F\x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0\x41\xDE\x74\xEA\x35\x9D\x43\xC7\x51\xA1\xD5\x87\x8C\x3E"
"\x0E\x3A\x7D\xF8\x66\x77\x99\x53\x36\x51\xD3\xC3\x02\xDA\x3B\xA7\x61\xEE\x39\x0E"
"\xC3\xBC\x78\x23\x43\xE6\x1D\x3C\x2B\x4C\x51\xDD\x3B\xC7\x8D\x30\x77\x58\xE3\xBA"
"\x7D\xF8\xE4\x3E\xCE\xF1\xD0\x8C\xEC\x21\x6C\xF8\x7C\x3E\xCF\xB3\xBC\x7B\x41\x2A"
"\x2B\x81\xA1\xE0\xF7\x0F\x02\x2E\x22\x08\x59\x49\xF6\x75\x1F\x67\x78\xF1\x9E\x3E"
"\x1E\xC3";
#define HTTP_SCRIPT_TEMPLATE Decompress(HTTP_SCRIPT_TEMPLATE_COMPRESSED,HTTP_SCRIPT_TEMPLATE_SIZE).c_str()

View File

@ -9,13 +9,13 @@ const char HTTP_SCRIPT_CONSOL[] PROGMEM =
"c=eb('c1');" // Console command id
"o='&c1='+encodeURIComponent(c.value);"
"c.value='';"
"t.scrollTop=99999999;"
"t.scrollTop=1e8;"
"sn=t.scrollTop;"
"}"
"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)
"x=new XMLHttpRequest();"
"x.onreadystatechange=function(){"
"x.onreadystatechange=()=>{"
"if(x.readyState==4&&x.status==200){"
"var z,d;"
"d=x.responseText.split(/}1/);" // Field separator
@ -23,7 +23,7 @@ const char HTTP_SCRIPT_CONSOL[] PROGMEM =
"if(d.shift()==0){t.value='';}"
"z=d.shift();"
"if(z.length>0){t.value+=z;}"
"t.scrollTop=99999999;"
"t.scrollTop=1e8;"
"sn=t.scrollTop;"
"clearTimeout(ft);"
"lt=setTimeout(l,ltm);" // webrefresh timer....
@ -31,7 +31,7 @@ const char HTTP_SCRIPT_CONSOL[] PROGMEM =
"};"
"x.open('GET','cs?c2='+id+o,true);" // Related to Webserver->hasArg("c2") and WebGetArg("c2", stmp, sizeof(stmp))
"x.send();"
"ft=setTimeout(l,20000);" // fail timeout, triggered 20s after asking for XHR
"ft=setTimeout(l,2e4);" // fail timeout, triggered 20s after asking for XHR
"}else{"
"lt=setTimeout(l,ltm);" // webrefresh timer....
"}"
@ -43,7 +43,7 @@ const char HTTP_SCRIPT_CONSOL[] PROGMEM =
"var hc=[],cn=0;" // hc = History commands, cn = Number of history being shown
"function h(){"
// "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
"if(38==c||40==c){" // ArrowUp or ArrowDown
"b.autocomplete='off';" // ArrowUp or ArrowDown must be a keyboard so stop browser autocomplete

View File

@ -5,7 +5,7 @@ const char HTTP_SCRIPT_ROOT[] PROGMEM =
"clearTimeout(ft);clearTimeout(lt);"
"if(x!=null){x.abort()}" // Abort if no response within 2 seconds (happens on restart 1)
"x=new XMLHttpRequest();"
"x.onreadystatechange=function(){"
"x.onreadystatechange=()=>{"
"if(x.readyState==4&&x.status==200){"
"var s=x.responseText.replace(/{t}/g,\"<table style='width:100%%'>\")"
".replace(/{s}/g,\"<tr><th>\")"
@ -19,5 +19,5 @@ const char HTTP_SCRIPT_ROOT[] PROGMEM =
"};"
"x.open('GET','.?m=1'+a,true);" // ?m related to Webserver->hasArg("m")
"x.send();"
"ft=setTimeout(la,20000);" // 20s failure timeout
"ft=setTimeout(la,2e4);" // 20s failure timeout
"}";

View File

@ -2,7 +2,7 @@ const char HTTP_SCRIPT_ROOT[] PROGMEM =
"function la(p){"
"if(typeof(EventSource)!==\"undefined\"){"
"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%%'>\")"
".replace(/{s}/g,\"<tr><th>\")"
// ".replace(/{m}/g,\"</th><td>\")"
@ -16,5 +16,5 @@ const char HTTP_SCRIPT_ROOT[] PROGMEM =
"x=new XMLHttpRequest();"
"x.open('GET','.?m=1'+a,true);" // ?m related to Webserver->hasArg("m")
"x.send();"
"lt=setTimeout(la,20000);" // 20s failure timeout
"lt=setTimeout(la,2e4);" // 20s failure timeout
"}";

View File

@ -5,7 +5,7 @@ const char HTTP_SCRIPT_ROOT[] PROGMEM =
"clearTimeout(ft);clearTimeout(lt);"
"if(x!=null){x.abort();}" // Abort if no response within 2 seconds (happens on restart 1)
"x=new XMLHttpRequest();"
"x.onreadystatechange=function(){"
"x.onreadystatechange=()=>{"
"if(x.readyState==4&&x.status==200){"
"var s=x.responseText.replace(/{t}/g,\"<table style='width:100%%'>\")"
".replace(/{s}/g,\"<tr><th>\")"
@ -22,7 +22,7 @@ const char HTTP_SCRIPT_ROOT[] PROGMEM =
"if(rfsh){"
"x.open('GET','.?m=1'+a,true);" // ?m related to Webserver->hasArg("m")
"x.send();"
"ft=setTimeout(la,20000);" // 20s failure timeout
"ft=setTimeout(la,2e4);" // 20s failure timeout
"}"
"}"
"function seva(par,ivar){"

View File

@ -1,7 +1,7 @@
const char HTTP_SCRIPT_TEMPLATE[] PROGMEM =
"function ld(u,f){"
"var x=new XMLHttpRequest();"
"x.onreadystatechange=function(){"
"x.onreadystatechange=()=>{"
"if(this.readyState==4&&this.status==200){"
"f(this);"
"}"