Skip to content

homework-18 - #39

Open
horidon wants to merge 3 commits into
masterfrom
homework-18
Open

homework-18#39
horidon wants to merge 3 commits into
masterfrom
homework-18

Conversation

@horidon

Copy link
Copy Markdown
Collaborator

No description provided.

const cell = reversedTable[rowNumber][index];
cell.classList.toggle('active');
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if(!e.target.tagName === 'TD') {
return }

cell.classList.toggle('active');
}

if(e.target.tagName === 'TD' && e.target.parentElement.id ==='first') {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consthashMap={'first': 0,'second': 1,'third': 2,}if(hashMap[e.target.parentElement.id]){toggleFunc(hashMap[e.target.parentElement.id])}

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@horidon@OlegLustenko