typo
This commit is contained in:
15
hearts.js
15
hearts.js
@@ -59,17 +59,16 @@ function createHearts() {
|
||||
document.body.appendChild(container);
|
||||
}
|
||||
|
||||
// Array of snowflake characters
|
||||
const snowflakeSymbols = ['❤️', '💕', '💞', '💓', '💗', '💖'];
|
||||
|
||||
for (let i = 0; i < 12; i++) {
|
||||
images.forEach(imageSrc => {
|
||||
const heartsDiv = document.createElement("div");
|
||||
heartsDiv.className = "hearts";
|
||||
const heartsDiv = document.createElement("div");
|
||||
heartsDiv.className = "hearts";
|
||||
|
||||
const img = document.createElement("img");
|
||||
img.src = imageSrc;
|
||||
|
||||
heartsDiv.appendChild(img);
|
||||
container.appendChild(heartsDiv);
|
||||
});
|
||||
heartsDiv.appendChild(img);
|
||||
container.appendChild(heartsDiv);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user