mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-19 22:24:15 +01:00
test color picker
This commit is contained in:
@@ -79,3 +79,13 @@ nspanel_screensaver_notification:
|
||||
mode: single
|
||||
icon: mdi:message-badge
|
||||
```
|
||||
|
||||
## Color Picker
|
||||
<input type="color" id="colorpicker" onchange="calcRGB565()" value="#000000">
|
||||
<p id="color-out"></p>
|
||||
<script>
|
||||
function calcRGB565() {
|
||||
let show = document.getElementById('color-out');
|
||||
show.innerHTML = this.value;
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user