mirror of
https://github.com/seigler/fhqwhgads
synced 2025-07-26 22:46:08 +00:00
transition for screen backlight
This commit is contained in:
parent
ea3f9cd900
commit
8b0507ba84
2 changed files with 3 additions and 2 deletions
|
@ -75,6 +75,7 @@ html, body {
|
||||||
background-repeat: repeat-y;
|
background-repeat: repeat-y;
|
||||||
background-position: 50% 0%;
|
background-position: 50% 0%;
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
|
transition: background-color 2s;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,10 +40,10 @@
|
||||||
document.getElementById("scanlines").style.backgroundColor = "hsl(120, 100%, " + (16 * brightness) + "%)";
|
document.getElementById("scanlines").style.backgroundColor = "hsl(120, 100%, " + (16 * brightness) + "%)";
|
||||||
}
|
}
|
||||||
document.getElementById("knobup").onmousedown = function() {
|
document.getElementById("knobup").onmousedown = function() {
|
||||||
alterBrightness(0.0625);
|
alterBrightness(1.0/6);
|
||||||
};
|
};
|
||||||
document.getElementById("knobdown").onmousedown = function() {
|
document.getElementById("knobdown").onmousedown = function() {
|
||||||
alterBrightness(-0.0625);
|
alterBrightness(-1.0/6);
|
||||||
};
|
};
|
||||||
|
|
||||||
function handleForm() {
|
function handleForm() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue