6 lines
234 B
JavaScript
6 lines
234 B
JavaScript
{a6fedaf590fb53f4264b3342ced10bec061b08f3 true 234 main.js 0xc0084dec40}
rangeInput = document.getElementById('range');
|
|
container = document.getElementsByClassName('container')[0];
|
|
|
|
rangeInput.addEventListener("change",function(){
|
|
container.style.filter = "brightness(" + rangeInput.value + "%)";
|
|
}); |