bayern web style

This commit is contained in:
ragu 2022-05-05 12:07:05 +02:00
parent 7ede282b7b
commit cc031094eb
8 changed files with 67 additions and 23 deletions

View file

@ -19,12 +19,12 @@ function change_contrast(){
const fgcol = style.color;
console.log(fgcol);
if(bgcol == ('rgb(0, 141, 210)')){ //008dd2 (blue)
if(bgcol == ('rgb(0, 156, 217)')){ //009cd9 (blue)
element[i].style.backgroundColor = "rgb(63, 63, 63)";//3f3f3f (black)
element[i].style.color = "rgb(255, 255, 254)";//fffffe (white)
}
if(bgcol == ('rgb(63, 63, 63)')){ //black
element[i].style.backgroundColor = "rgb(0, 141, 210)";
element[i].style.backgroundColor = "rgb(0, 156, 217)";
element[i].style.color = "rgb(255, 255, 254)";
}
//hover active
@ -39,7 +39,7 @@ function change_contrast(){
}
//if only font ist colored and backround is white
if(fgcol == ('rgb(0, 141, 210)') && bgcol == ('rgb(255, 255, 255)')){ //008dd2
if(fgcol == ('rgb(0, 156, 217)') && bgcol == ('rgb(255, 255, 255)')){ //009cd9
element[i].style.color = "rgb(63, 63, 63)";
element[i].style.backgroundColor = "rgb(255, 255, 255)";
}
@ -48,7 +48,7 @@ function change_contrast(){
element[i].style.backgroundColor = "rgb(3, 101, 149)";
}
if(fgcol == ('rgb(63, 63, 63)') && bgcol == ('rgb(255, 255, 255)')){ //black
element[i].style.color = "rgb(0, 141, 210)";
element[i].style.color = "rgb(0, 156, 217)";
element[i].style.backgroundColor = "rgb(255, 255, 255)";
}