From a6052d7900c3257378ce10e2d33b928e485dd692 Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Tue, 25 Apr 2023 14:27:33 +0200 Subject: [PATCH] Update info text. --- wled00/data/cpal/cpal.htm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/wled00/data/cpal/cpal.htm b/wled00/data/cpal/cpal.htm index 415dd108..023fc075 100644 --- a/wled00/data/cpal/cpal.htm +++ b/wled00/data/cpal/cpal.htm @@ -178,15 +178,15 @@
Currently in use custom palettes
-
- Click on the gradient to add new color slider. Click the colored box below the slider to change color. Click the red box below indicator (and confirm) to delete. Select palette number. Click the cloud icon to upload. -
- Currently in use Custom Palette IDs are 0 to -1. Note!, IDs must be in uninterupted sequece from 0 and cannot excede 9. This number will only be updated on WLED reboot (or equivalent). + Click on the gradient to add new color slider then the colored box below the slider to change its color.
+ Click the red box below indicator (and confirm) to delete.
+ Once finished click the arrow icon to upload into desired slot.
+ To edit existing palette click pencil icon.
@@ -514,7 +514,6 @@ const response = await fetch('http://'+hst+'/json/info'); const json = await response.json(); cpalc = json.cpalcount; - gId('cpaltx').innerHTML = cpalc-1; fetchPalettes(cpalc-1); console.log('cpalc: ', cpalc); console.log(paletteArray); @@ -623,13 +622,14 @@ for (let j = 0; j < colArray.length; j += 2) { const position = colArray[j]; + let hex; if (typeof(colArray[j+1]) === "string") { - const hex = `#${colArray[j+1]}`; + hex = `#${colArray[j+1]}`; } else { const red = colArray[j + 1]; const green = colArray[j + 2]; const blue = colArray[j + 3]; - const hex = rgbToHex(red, green, blue); + hex = rgbToHex(red, green, blue); j += 2; } console.log(position, hex)