6 lines
162 B
JavaScript
6 lines
162 B
JavaScript
|
const color = document.getElementById('color');
|
||
|
|
||
|
function changeColor() {
|
||
|
console.log(color.value);
|
||
|
document.body.style.setProperty('--color', color.value);
|
||
|
}
|