mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-20 14:37:01 +01:00
Update notifications.md
This commit is contained in:
@@ -82,10 +82,11 @@ nspanel_screensaver_notification:
|
|||||||
|
|
||||||
## Color Picker
|
## Color Picker
|
||||||
<input type="color" id="colorpicker" onchange="calcRGB565()" value="#000000">
|
<input type="color" id="colorpicker" onchange="calcRGB565()" value="#000000">
|
||||||
<p id="color-out"></p>
|
Use this value in your Message (converted to RGB565 in Decimal) <p id="color-out"></p>
|
||||||
<script>
|
<script>
|
||||||
function calcRGB565() {
|
function calcRGB565() {
|
||||||
let show = document.getElementById('color-out');
|
let in = document.getElementById('colorpicker');
|
||||||
show.innerHTML = this.value;
|
let out = document.getElementById('color-out');
|
||||||
|
out.innerHTML = in.value;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user