-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
32 lines (24 loc) · 1.09 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HexColors</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css"
integrity="sha512-NhSC1YmyruXifcj/KFRWoC561YpHpc5Jtzgvbuzx5VozKpWvQ+4nXhPdFgmx8xqexRcpAglTj9sIBWINXa8x5w=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="hexColor">
<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">000000</span>, #<span
id="hexcode2">000000</span>);
</h2>
<button onclick="changeColor()" class="btn btn-primary">Click Me</button>
</div>
<script src="js/style.js"></script>
</body>
</html>