Skip to content

Conversation

@horidon
Copy link
Collaborator

@horidon horidon commented Aug 1, 2018

No description provided.

Balashov Nikita added 2 commits August 1, 2018 16:17
const cell = reversedTable[rowNumber][index];
cell.classList.toggle('active');
}

Copy link
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
Member

Choose a reason for hiding this comment

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

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

Sign up for free to 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.

3 participants