MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / setgradient

Function setgradient

assets/js/gradientBackgroundGen.js:16–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14
15// function to dynamically set css values for linear gradient
16function setgradient() {
17 body.style.background =
18 "linear-gradient(to right , " + color1.value + ", " + color2.value + ")";
19 css.textContent = body.style.background + ";";
20}
21
22// function to receive random hexadecimal values from getRandomColor()
23function randomgradient() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected