Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
bibinthomas123 authored Oct 14, 2022
1 parent 09eea1d commit 536ca43
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,11 @@ <h1>Background color changer</h1>
var inputVal = document.getElementById("myInput").value;
var color_Two = document.getElementById("col2").value;

console.log(inputVal);
console.log(color_Two);
//console.log(inputVal);
//console.log(color_Two);

var elements = ["label", "label2"];




document.body.style.backgroundImage =
"linear-gradient( to right ," + inputVal + ", " + color_Two + ")";

Expand Down

0 comments on commit 536ca43

Please sign in to comment.