()
| 12 | |
| 13 | } |
| 14 | function generateColor(){ |
| 15 | var randomColor1=Math.floor(Math.random()*16777215).toString(16); |
| 16 | var randomColor2=Math.floor(Math.random()*16777215).toString(16); |
| 17 | body.style.background="linear-gradient(to right, #"+randomColor1+", #"+randomColor2+")"; |
| 18 | css.textContent=body.style.background+";"; |
| 19 | } |
| 20 | h4.textContent="(#ff0000 , #ffff00);" |
| 21 | color1.addEventListener("input", setGradient); |
| 22 | color2.addEventListener("input", setGradient); |
nothing calls this directly
no outgoing calls
no test coverage detected