Skip to content

Conversation

@xxsamgelik
Copy link
Collaborator

No description provided.

const InnerHtml = () => {
const hw_6 = document.querySelector('#FOR_HOMEWORK');
hw_6.innerHTML = `
<body>
Copy link
Owner

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

Comment on lines +13 to +24
<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>
Copy link
Owner

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;
Copy link
Owner

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");
Copy link
Owner

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

Comment on lines +119 to +124
deleteButtons.forEach(function (button) {
button.addEventListener("click", function () {
const item=this.closest(".content");
item.remove();
});
});
Copy link
Owner

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();
Copy link
Owner

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

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