one more improvement

This commit is contained in:
InsanusMokrassar 2023-09-25 16:30:17 +06:00
parent 8f80b7e066
commit 0ad8e61c0c
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ fun main() {
val hex = Color.Hex("#${r.toString(16)}${g.toString(16)}${b.toString(16)}")
webApp.setHeaderColor(hex)
(this as? HTMLButtonElement) ?.style ?.backgroundColor = hex.value
textContent = hex.value
textContent = "Header color: ${hex.value.uppercase()} (click to change)"
}
addEventListener("click", {
updateHeaderColor()