Skip to content

Commit

Permalink
new change
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchitrathore2004 committed May 8, 2024
1 parent 65f4e86 commit 7149e03
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions supportScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ let classTitle;
let colour;
let colarr;
let crr = [];
let flag=0;
export function Movement(){
console.log(posPiece);
ID=this.id;
Expand All @@ -25,6 +26,7 @@ console.log(colarr[1]);
if(colarr[1]=="semirico" || colarr[1]=="rico")
{
rotation.classList.add("rico");
flag=1;
}
if(colarr[1]=="CANON")
{
Expand Down Expand Up @@ -109,6 +111,10 @@ for (let i=0;i<brr.length;i++) {
function handleTankClick () {
console.log(brr);
this.innerHTML = html;
if(flag=1)
{
rotation.classList.remove("rico");
}
console.log(html);
let posTank = document.querySelector(`#box${ID}`);
posTank.innerHTML = "";
Expand Down

0 comments on commit 7149e03

Please sign in to comment.