-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
21 lines (21 loc) · 927 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>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hex Colors</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="shortcut icon" type="image/png" href="colors.png" />
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<div class="hex-colors">
<h1>Click the button bellow to display the hex color code of a random color</h1>
<h2>background: linear-gradient(to right, #<span id="hexcode1">ffffff</span>, #<span id="hexcode2">ffffff</span>);</h2>
<button onclick="changeBackgroundColor()" class="btn btn-light">click me</button>
</div>
</div>
<script src="script.js"></script>
</body>
</html>