transition for screen backlight

This commit is contained in:
Joshua Seigler 2014-12-22 13:34:22 -05:00
parent ea3f9cd900
commit 8b0507ba84
2 changed files with 3 additions and 2 deletions

View file

@ -75,6 +75,7 @@ html, body {
background-repeat: repeat-y;
background-position: 50% 0%;
z-index: -1;
transition: background-color 2s;
}
}
}

View file

@ -40,10 +40,10 @@
document.getElementById("scanlines").style.backgroundColor = "hsl(120, 100%, " + (16 * brightness) + "%)";
}
document.getElementById("knobup").onmousedown = function() {
alterBrightness(0.0625);
alterBrightness(1.0/6);
};
document.getElementById("knobdown").onmousedown = function() {
alterBrightness(-0.0625);
alterBrightness(-1.0/6);
};
function handleForm() {