web-html5-scripts/web-techniques/neumorphism-study-change-color-with-dot/script.js
2020-02-03 20:51:43 +01:00

6 lines
162 B
JavaScript

const color = document.getElementById('color');
function changeColor() {
console.log(color.value);
document.body.style.setProperty('--color', color.value);
}