Commit a585c638 authored by Benjamin Gallois's avatar Benjamin Gallois

Stripes color

parent 899f16b8
......@@ -3,10 +3,10 @@
height: 100%;
background: repeating-linear-gradient(
90deg,
white,
white 1%,
black 1%,
black 2%
#C8C8C8 ,
#C8C8C8 1%,
#383838 1%,
#383838 2%
);
position: fixed;
left: 0%;
......
......@@ -44,12 +44,12 @@ window.addEventListener("keyup", function(event) {
if (event.keyCode === 38) {
dw += 0.1;
body.style.background = 'repeating-linear-gradient( 90deg, white, white ' + dw + '%, black '+ dw + '%, black ' + dw*2+'%)'
body2.style.background = 'repeating-linear-gradient( 90deg, white, white ' + dw + '%, black '+ dw + '%, black ' + dw*2+'%)'
body.style.background = 'repeating-linear-gradient( 90deg, #C8C8C8, #C8C8C8 ' + dw + '%, #383838 '+ dw + '%, #383838 ' + dw*2+'%)'
body2.style.background = 'repeating-linear-gradient( 90deg, #C8C8C8, #C8C8C8 ' + dw + '%, #383838 '+ dw + '%, #383838 ' + dw*2+'%)'
}
if (event.keyCode === 40) {
dw -= 0.1;
body.style.background = 'repeating-linear-gradient( 90deg, white, white ' + dw + '%, black '+ dw + '%, black ' + dw*2+'%)'
body2.style.background = 'repeating-linear-gradient( 90deg, white, white ' + dw + '%, black '+ dw + '%, black ' + dw*2+'%)'
body.style.background = 'repeating-linear-gradient( 90deg, #C8C8C8, #C8C8C8 ' + dw + '%, #383838 '+ dw + '%, #383838 ' + dw*2+'%)'
body2.style.background = 'repeating-linear-gradient( 90deg, #C8C8C8, #C8C8C8 ' + dw + '%, #383838 '+ dw + '%, #383838 ' + dw*2+'%)'
}
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment