Bugfix.
- centered Settings buttons - disallow preset ID >250
This commit is contained in:
parent
094e130544
commit
4e8030bd81
@ -350,7 +350,7 @@ function checkUsed(i)
|
||||
if (pJson[id] && (i == 0 || id != i))
|
||||
gId(`p${i}warn`).innerHTML = `⚠ Overwriting ${pName(id)}!`;
|
||||
else
|
||||
gId(`p${i}warn`).innerHTML = "";
|
||||
gId(`p${i}warn`).innerHTML = id>250?"⚠ ID must be 250 or less.":"";
|
||||
}
|
||||
|
||||
function pName(i)
|
||||
@ -2035,6 +2035,7 @@ function saveP(i,pl)
|
||||
{
|
||||
pI = parseInt(gId(`p${i}id`).value);
|
||||
if (!pI || pI < 1) pI = (i>0) ? i : getLowestUnusedP();
|
||||
if (pI > 250) {alert("Preset ID must be 250 or less."); return;}
|
||||
pN = gId(`p${i}txt`).value;
|
||||
if (pN == "") pN = (pl?"Playlist ":"Preset ") + pI;
|
||||
var obj = {};
|
||||
|
@ -30,7 +30,7 @@
|
||||
font-size: 6vmin;
|
||||
height: var(--h);
|
||||
width: calc(100% - 40px);
|
||||
margin-top: 2vh;
|
||||
margin: 2vh auto 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
|
@ -64,52 +64,52 @@ const uint8_t PAGE_settingsCss[] PROGMEM = {
|
||||
|
||||
|
||||
// Autogenerated from wled00/data/settings.htm, do not edit!!
|
||||
const uint16_t PAGE_settings_length = 694;
|
||||
const uint16_t PAGE_settings_length = 696;
|
||||
const uint8_t PAGE_settings[] PROGMEM = {
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x13, 0xad, 0x55, 0x6d, 0x6f, 0xd3, 0x30,
|
||||
0x10, 0xfe, 0xde, 0x5f, 0x61, 0x32, 0xc1, 0x5a, 0xa9, 0x69, 0xbb, 0x0e, 0x21, 0xc8, 0x4b, 0x91,
|
||||
0xb6, 0x6e, 0x30, 0x89, 0x69, 0x93, 0xf6, 0x06, 0x1f, 0x1d, 0xfb, 0x92, 0x1c, 0x4b, 0xec, 0xc8,
|
||||
0x76, 0xfa, 0x42, 0xd5, 0xff, 0xce, 0x25, 0x2d, 0xdb, 0x10, 0x13, 0x4c, 0xa8, 0x5f, 0xe2, 0xdc,
|
||||
0xd9, 0x79, 0xee, 0xb9, 0xe7, 0x39, 0x2b, 0xd1, 0xab, 0xe9, 0xc5, 0xf1, 0xf5, 0xb7, 0xcb, 0x13,
|
||||
0x96, 0xbb, 0xb2, 0x98, 0x44, 0xcd, 0x93, 0x15, 0x5c, 0x65, 0xb1, 0x07, 0xca, 0xa3, 0x18, 0xb8,
|
||||
0x9c, 0x44, 0x25, 0x38, 0xce, 0x44, 0xce, 0x8d, 0x05, 0x17, 0x7b, 0x37, 0xd7, 0xa7, 0xfe, 0x7b,
|
||||
0x6f, 0x9b, 0xed, 0x08, 0xad, 0x1c, 0x28, 0x4a, 0xcf, 0x51, 0xba, 0x3c, 0x96, 0x30, 0x43, 0x01,
|
||||
0x7e, 0x1b, 0xf4, 0x51, 0xa1, 0x43, 0x5e, 0xf8, 0x56, 0xf0, 0x02, 0xe2, 0x83, 0x7e, 0xc9, 0x17,
|
||||
0x58, 0xd6, 0xe5, 0x43, 0x5c, 0x5b, 0x30, 0x6d, 0xc0, 0x13, 0x8a, 0x95, 0xf6, 0x58, 0x47, 0xf1,
|
||||
0x12, 0x62, 0x6f, 0x86, 0x30, 0xaf, 0xb4, 0x71, 0x54, 0xc5, 0xa1, 0x2b, 0x60, 0x72, 0xf7, 0xe5,
|
||||
0x64, 0xca, 0xae, 0xc0, 0x39, 0x54, 0x99, 0x8d, 0x86, 0x9b, 0x64, 0x64, 0x85, 0xc1, 0xca, 0x4d,
|
||||
0x3a, 0x33, 0x6e, 0x98, 0x8c, 0xa5, 0x16, 0x75, 0x49, 0x54, 0xc2, 0xb4, 0x56, 0xc2, 0xa1, 0x56,
|
||||
0x2c, 0x3b, 0x93, 0x5d, 0xd5, 0x5b, 0x19, 0x70, 0xb5, 0x51, 0x4c, 0x0e, 0x32, 0x70, 0x27, 0x05,
|
||||
0x34, 0x67, 0x8e, 0x96, 0xed, 0xd6, 0xfa, 0xe1, 0xe8, 0x55, 0xb7, 0xb7, 0xfa, 0x04, 0xee, 0xb6,
|
||||
0xdb, 0x5b, 0x77, 0xa2, 0xe1, 0x16, 0x78, 0x5b, 0x80, 0x59, 0x23, 0x62, 0x6f, 0x68, 0xb7, 0xe5,
|
||||
0x87, 0x76, 0xf0, 0xdd, 0x7e, 0xac, 0xe2, 0x11, 0xb1, 0x7b, 0x3c, 0xe9, 0x96, 0xc4, 0xa8, 0x93,
|
||||
0x68, 0xb9, 0x5c, 0x39, 0x58, 0x38, 0x9f, 0x17, 0x98, 0xa9, 0x40, 0x50, 0x2d, 0x30, 0x61, 0xc2,
|
||||
0xc5, 0x7d, 0x66, 0x74, 0xad, 0x64, 0xb0, 0x37, 0x1e, 0x8f, 0xc3, 0x1c, 0x30, 0xcb, 0x5d, 0x70,
|
||||
0x30, 0x1a, 0x55, 0x8b, 0xb0, 0xe4, 0x26, 0x43, 0x15, 0x8c, 0xd6, 0x8d, 0xf8, 0x2b, 0xdf, 0xcf,
|
||||
0x83, 0x0f, 0xb3, 0x7c, 0x9d, 0xd4, 0xce, 0x69, 0xb5, 0x7a, 0xfa, 0xe5, 0xe1, 0xe1, 0x61, 0x28,
|
||||
0x74, 0xa1, 0x4d, 0xb0, 0x97, 0xa6, 0x69, 0x98, 0x92, 0xf2, 0x7e, 0xca, 0x4b, 0x2c, 0x96, 0xc1,
|
||||
0x2d, 0x18, 0xc9, 0x15, 0xef, 0x7f, 0x86, 0x62, 0x06, 0x0e, 0x05, 0xef, 0x5b, 0xae, 0xac, 0x4f,
|
||||
0xfa, 0x62, 0x1a, 0x4a, 0xb4, 0x55, 0xc1, 0x97, 0x41, 0x52, 0x68, 0x71, 0x1f, 0x26, 0xda, 0x48,
|
||||
0x30, 0xc1, 0x41, 0xb5, 0x60, 0x56, 0x17, 0x28, 0x59, 0x8b, 0xbb, 0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b, 0x95, 0x62, 0x56, 0x9b, 0xf6, 0xc8,
|
||||
0x6e, 0xe4, 0xa8, 0x1b, 0x31, 0x6e, 0x68, 0xa8, 0xd8, 0x59, 0xe3, 0x63, 0xca, 0x05, 0x3c, 0x23,
|
||||
0x48, 0x63, 0x92, 0x2c, 0x17, 0x89, 0x53, 0x1e, 0x6b, 0x6d, 0xa6, 0x70, 0x3b, 0x81, 0x4a, 0x2b,
|
||||
0xf0, 0xfe, 0xab, 0x34, 0x01, 0x52, 0xed, 0xe9, 0xf9, 0x57, 0x76, 0x51, 0xbb, 0xaa, 0x76, 0xbb,
|
||||
0x31, 0xc2, 0x2e, 0x95, 0x20, 0xd8, 0x2b, 0x5a, 0x1e, 0x5b, 0xda, 0x91, 0x11, 0x0e, 0x4b, 0x68,
|
||||
0xac, 0xb8, 0xa6, 0x95, 0xbd, 0x61, 0xe7, 0x5c, 0x18, 0x6d, 0x77, 0xe4, 0x43, 0xb9, 0xf5, 0xa1,
|
||||
0xd4, 0xd2, 0xee, 0x48, 0x09, 0x68, 0x85, 0x00, 0xba, 0xa9, 0xe8, 0x96, 0xc4, 0xf7, 0xa6, 0x92,
|
||||
0xdc, 0x3d, 0xd5, 0x82, 0x5e, 0xe8, 0x96, 0x36, 0x57, 0xb6, 0xf9, 0x53, 0xfc, 0x04, 0xe7, 0xc3,
|
||||
0x64, 0x44, 0x39, 0x06, 0x00, 0x00
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x13, 0xad, 0x95, 0x6d, 0x6f, 0xd3, 0x30,
|
||||
0x10, 0xc7, 0xdf, 0xf7, 0x53, 0x98, 0x4c, 0xb0, 0x56, 0x6a, 0xda, 0xae, 0x43, 0x08, 0xf2, 0x50,
|
||||
0xa4, 0xd1, 0x0d, 0x26, 0x31, 0x6d, 0xd2, 0x9e, 0xe0, 0xa5, 0x63, 0x5f, 0xd2, 0x63, 0x89, 0x1d,
|
||||
0xd9, 0x4e, 0xdb, 0x50, 0xf5, 0xbb, 0x73, 0x49, 0xbb, 0x07, 0xc4, 0x04, 0x13, 0xea, 0x9b, 0x24,
|
||||
0x67, 0xbb, 0xff, 0xbb, 0xfb, 0xfd, 0xcf, 0x6a, 0xf4, 0x6a, 0x7a, 0xfe, 0xe9, 0xea, 0xfb, 0xc5,
|
||||
0x31, 0x9b, 0xb9, 0x22, 0x9f, 0x44, 0xcd, 0x93, 0xe5, 0x5c, 0x65, 0xb1, 0x07, 0xca, 0xa3, 0x18,
|
||||
0xb8, 0x9c, 0x44, 0x05, 0x38, 0xce, 0xc4, 0x8c, 0x1b, 0x0b, 0x2e, 0xf6, 0xae, 0xaf, 0x4e, 0xfc,
|
||||
0xf7, 0xde, 0x76, 0xb5, 0x23, 0xb4, 0x72, 0xa0, 0x68, 0x79, 0x81, 0xd2, 0xcd, 0x62, 0x09, 0x73,
|
||||
0x14, 0xe0, 0xb7, 0x41, 0x1f, 0x15, 0x3a, 0xe4, 0xb9, 0x6f, 0x05, 0xcf, 0x21, 0x3e, 0xe8, 0x17,
|
||||
0x7c, 0x89, 0x45, 0x55, 0x3c, 0xc4, 0x95, 0x05, 0xd3, 0x06, 0x3c, 0xa1, 0x58, 0x69, 0x8f, 0x75,
|
||||
0x14, 0x2f, 0x20, 0xf6, 0xe6, 0x08, 0x8b, 0x52, 0x1b, 0x47, 0x59, 0x1c, 0xba, 0x1c, 0x26, 0xb7,
|
||||
0x5f, 0x8f, 0xa7, 0xec, 0x12, 0x9c, 0x43, 0x95, 0xd9, 0x68, 0xb8, 0x59, 0x8c, 0xac, 0x30, 0x58,
|
||||
0xba, 0x49, 0x67, 0xce, 0x0d, 0x93, 0xb1, 0xd4, 0xa2, 0x2a, 0xa8, 0x94, 0x30, 0xad, 0x94, 0x70,
|
||||
0xa8, 0x15, 0xcb, 0x4e, 0x65, 0x57, 0xf5, 0x56, 0x06, 0x5c, 0x65, 0x14, 0x93, 0x83, 0x0c, 0xdc,
|
||||
0x71, 0x0e, 0xc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
||||
0xd3, 0x1e, 0xd9, 0x0d, 0x8e, 0xaa, 0x81, 0x71, 0x4d, 0x73, 0xc5, 0x4e, 0x1b, 0x1f, 0x53, 0x2e,
|
||||
0xe0, 0x19, 0x20, 0x8d, 0x49, 0xb2, 0x58, 0x26, 0x4e, 0x79, 0xac, 0xb5, 0x99, 0xc2, 0xed, 0x10,
|
||||
0x2a, 0xad, 0xc0, 0xfb, 0xaf, 0xd4, 0x24, 0x48, 0xb9, 0xa7, 0x67, 0xdf, 0xd8, 0x79, 0xe5, 0xca,
|
||||
0xca, 0xed, 0xc6, 0x08, 0x5b, 0x2b, 0x41, 0xb2, 0x97, 0xf4, 0x7a, 0x6c, 0x69, 0x47, 0x46, 0x38,
|
||||
0x2c, 0xa0, 0xb1, 0xe2, 0x8a, 0xde, 0xec, 0x0d, 0x3b, 0xe3, 0xc2, 0x68, 0xbb, 0x23, 0x1f, 0x8a,
|
||||
0xad, 0x0f, 0x85, 0x96, 0x76, 0x47, 0x24, 0xa0, 0x05, 0x01, 0x74, 0x53, 0xd1, 0xd5, 0x54, 0xef,
|
||||
0x75, 0x29, 0xb9, 0x7b, 0xca, 0x82, 0x3e, 0xe8, 0x96, 0x36, 0x57, 0xb6, 0xf9, 0xb3, 0xf8, 0x05,
|
||||
0x20, 0x89, 0x88, 0xc4, 0x3c, 0x06, 0x00, 0x00
|
||||
};
|
||||
|
||||
|
||||
|
1739
wled00/html_ui.h
1739
wled00/html_ui.h
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user