diff --git a/change.js b/change.js index f17798a..5105162 100644 --- a/change.js +++ b/change.js @@ -13,12 +13,7 @@ newcss.href = "new1.css"; head.appendChild(newcss); // link要素を追加 }); - /*if(bg2 && bg3){ - newcss.remove(); - newcss = null; - }*/ -//} - //function bg2(){ + cssbtn2.addEventListener("click", (e) => { if (newcss) return; newcss = document.createElement("link"); @@ -26,11 +21,7 @@ newcss.href = "new2.css"; head.appendChild(newcss); // link要素を追加 }); - /*if(bg1 && bg3){ - newcss.remove(); - newcss = null; - }*/ - //} + //function bg3(){ cssbtn3.addEventListener("click", (e) => { if (newcss) return; diff --git a/index.html b/index.html index b4d3144..1e063b3 100644 --- a/index.html +++ b/index.html @@ -22,7 +22,7 @@