We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
runnig Pet.remove() will remove sheeps most of the time, but the "black" ones wont be removed
The text was updated successfully, but these errors were encountered:
Do you mean on the webpage? The script on the webpage is not able to create "childs" like a black sheep.
Sorry, something went wrong.
i did this to fix it: added a "sheep" prefix to the creation of div: this.id = "sheep" + Date.now() + Math.random(),
to remove all sheeps var elements = document.querySelectorAll([id^="sheep"]); for (let i = 0; i < elements.length; i++) {
[id^="sheep"]
while (elements[i].firstChild) { elements[i].firstChild.remove() } }
No branches or pull requests
runnig Pet.remove() will remove sheeps most of the time, but the "black" ones wont be removed
The text was updated successfully, but these errors were encountered: