-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
21 lines (21 loc) · 720 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<html>
<head>
<title>Gradient Background</title>
<link href="https://fonts.googleapis.com/css?family=Do+Hyeon" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body id="gradient">
<h1>Background Generator</h1>
<h3 class="text">Pick two colors</h3>
<input class="color1" type="color" name="color1" value="#ff0000">
<input class="color2" type="color" name="color2" value="#00ff00">
<h3 class="text">or</h3>
<button id="random">Randomize!</button>
<br>
<br>
<h2>Current CSS Background:</h2>
<h3 class="current-background">linear-gradient(to right, rgb(192,0,0) , rgb(247,179,45));</h3>
<script type="text/javascript" src="script.js"></script>
</body>
</html>