forked from itscodenation/flw1-u1l6-23-24-student-exercises
-
Notifications
You must be signed in to change notification settings - Fork 0
/
updateImage.js
31 lines (16 loc) · 831 Bytes
/
updateImage.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
25
26
27
28
29
30
31
// variables to store HTML elements
let placeholder = document.querySelector(".placeholder");
let buttonOne = document.querySelector(".button-one");
let buttonTwo = document.querySelector(".button-two");
// click event for buttonOne
buttonOne.addEventListener('click', function() {
// 1. Select the placeholder and update the src.
// - The image address should be a picture of a place you want to travel to.
// - Use Google Search, find a photo you want, right-click, and copy the image address.
});
// click event for buttonTwo
buttonTwo.addEventListener('click', function() {
// 2. Select the placeholder and update the src.
// - The image address should be a picture that represents your mood.
// - Use Google Search, find a photo you want, right-click, and copy the image address.
});