Skip to content

Completed tasks: practice JS DOM elements#161

Open
Katalia91 wants to merge 5 commits intodevmentor-pl:masterfrom
Katalia91:master
Open

Completed tasks: practice JS DOM elements#161
Katalia91 wants to merge 5 commits intodevmentor-pl:masterfrom
Katalia91:master

Conversation

@Katalia91
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Owner

@devmentor-pl devmentor-pl left a comment

Choose a reason for hiding this comment

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

Natalio,

Świetnie sobie poradziłaś! - bez uwag! 👍 🥇

if (element) {
const dataSetElement = element.querySelectorAll("[data-info]");
console.log(dataSetElement.length);
}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

👍

if (!el.hasAttribute("href")) {
el.setAttribute("href", url);
}
});
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

👍

console.log(cssProperty);
btn.style.setProperty(cssProperty, buttonSettings.css[cssProperty]);
}
}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

👍

newLiElement.appendChild(newLinkElement);
newLinkElement.append(obj.text);
newLinkElement.setAttribute("href", obj.url);
});
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

👍

articleParrent.lastElementChild.insertBefore(p, lastBtn);

const clonedArticle = currParent.cloneNode(true);
articleParrent.insertBefore(clonedArticle, currParent);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

👍

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.

2 participants