-
Notifications
You must be signed in to change notification settings - Fork 2
Semenyk roman #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: development
Are you sure you want to change the base?
Semenyk roman #15
Conversation
| const InnerHtml = () => { | ||
| const hw_6 = document.querySelector('#FOR_HOMEWORK'); | ||
| hw_6.innerHTML = ` | ||
| <body> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have already had body tag inside html
| <div class="col"> | ||
| <button type="button" class="btn btn-primary btn-lg w-100 first-line-btn delete">Delete All</button> | ||
| </div> | ||
| <div class="col"> | ||
| <button type="button" class="btn btn-primary btn-lg w-100">Delete Last</button> | ||
| </div> | ||
| <div class="col-6"> | ||
| <input class="form-control form-control-lg w-100" type="text" placeholder="Enter todo ..."> | ||
| </div> | ||
| <div class="col"> | ||
| <button type="button" class="btn btn-primary btn-lg w-100 buttonAdd">Add</button> | ||
| </div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use col- classes on buttons, less code
| const container = document.querySelector(".container-wrap"); | ||
| const content = document.querySelector(".content"); | ||
| const all = document.querySelector(".all"); | ||
| let number = 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please change variable name. Unclear what is the number
| const parentElement = document.querySelector(".buttonAdd"); | ||
| const container = document.querySelector(".container-wrap"); | ||
| const content = document.querySelector(".content"); | ||
| const all = document.querySelector(".all"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same as below. All what? PLease rename
| deleteButtons.forEach(function (button) { | ||
| button.addEventListener("click", function () { | ||
| const item=this.closest(".content"); | ||
| item.remove(); | ||
| }); | ||
| }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good job!
| import './style.scss'; | ||
|
|
||
| // lessonsExamples.lesson_7(); | ||
| HOMEWORK.ROMAN_SEMENYK_HW.ROMAN_SEMENYK_HW_7(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove! It;s only for your using
No description provided.