Skip to content

Commit 228b0ce

Browse files
committed
V3.1 week2
Created the function to edit the page with blue button
1 parent ecd9d79 commit 228b0ce

File tree

1 file changed

+26
-0
lines changed
  • Week-2/Homework/mandatory/3-project/js

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
var bluebutton = document.getElementById("blueBtn")
3+
4+
function clickBlueButton()
5+
{
6+
var jumbotron=document.querySelector(".jumbotron");
7+
jumbotron.style.backgroundColor=`#588fbd`;
8+
9+
var buttons=document.querySelector(".buttons");
10+
var donateBike=buttons.firstElementChild;
11+
var Volunteer=buttons.lastElementChild;
12+
13+
donateBike.style.backgroundColor=`#ffa500`;
14+
Volunteer.style.backgroundColor="black";
15+
Volunteer.style.color=`white`;
16+
17+
18+
}
19+
20+
bluebutton.addEventListener("click",clickBlueButton)
21+
22+
23+
24+
25+
26+

0 commit comments

Comments
 (0)