Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
パレットの色数を間違えていたので修正
  • Loading branch information
cardcapt committed May 14, 2020
1 parent 2be7c4d commit d240ecb
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions index.html
Expand Up @@ -198,16 +198,13 @@

//カラー選択関数
function Color(obj){
try {
for ( i = 1; i <= 18; i++ ) {
id_name = "color_" + i;
if (id_name == obj.id){
document.getElementById(id_name).classList.add('active');
} else {
document.getElementById(id_name).classList.remove('active');
}
for ( i = 1; i <= 15; i++ ) {
id_name = "color_" + i;
if (id_name == obj.id){
document.getElementById(id_name).classList.add('active');
} else {
document.getElementById(id_name).classList.remove('active');
}
} catch (error) {
}
}

Expand Down

0 comments on commit d240ecb

Please sign in to comment.