web-html5-scripts/web-techniques/neumorphism-study-change-color-with-dot/script.js

6 lines
162 B
JavaScript
Raw Normal View History

2020-01-20 21:00:54 +01:00
const color = document.getElementById('color');
function changeColor() {
console.log(color.value);
document.body.style.setProperty('--color', color.value);
}