Skip to content

Commit

Permalink
Fixed Linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
daksh4469 authored and meganindya committed Feb 3, 2021
1 parent 37aa9c7 commit 3b1f058
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions js/widgets/temperament.js
Original file line number Diff line number Diff line change
Expand Up @@ -865,25 +865,25 @@ class TemperamentWidget {
for(let i = 0;i<4;i++){
menuItems[i].onmouseover = () => {
menuItems[i].style.backgroundColor = "#7bb5ee";
}
};
}

for(let i = 0;i<4;i++){
menuItems[i].onmouseout = () => {
if((i==0 && this.editMode!="equal")
if((i==0 && this.editMode!="equal")
|| (i==1 && this.editMode!="ratio")
|| (i==2 && this.editMode!="arbitrary")
|| (i==2 && this.editMode!="arbitrary")
|| (i==3 && this.editMode!="octave")){
menuItems[i].style.backgroundColor = "#8cc6ff";
}
}
};
}

for(let i = 0;i<4;i++){
menuItems[i].onclick = () => {
for(let j = 0;j<4;j++){
if(i!=j){
menuItems[j].style.background = platformColor.selectorBackground;
menuItems[j].style.background = platformColor.selectorBackground;
}
else{
menuItems[i].style.background = "#FFFFFF";
Expand All @@ -901,7 +901,7 @@ class TemperamentWidget {
else{
this.octaveSpaceEdit();
}
}
};
}
}

Expand Down

0 comments on commit 3b1f058

Please sign in to comment.