-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
24 lines (21 loc) · 822 Bytes
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
function fix() {
document.getElementById("coconut").remove();
document.getElementById("coast").remove();
document.getElementById("watermelon").remove();
document.getElementById("sunflowers").remove();
let tree = document.createElement("img");
tree.id = "tree";
tree.src = "to-add/christmasTree.jpg";
let photos = document.getElementById("photos");
photos.appendChild(tree);
let snowmen = document.createElement("img");
snowmen.id = "snowmen";
snowmen.src = "to-add/snowmen.jpg";
photos = document.getElementById("photos");
photos.appendChild(snowmen);
let stockings = document.createElement("img");
stockings.id = "stockings";
stockings.src = "to-add/stockings.jpg";
photos = document.getElementById("photos");
photos.appendChild(stockings);
}