-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
51 lines (51 loc) · 2.27 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<html>
<head>
<meta charset="utf-8">
<title>Testing different text colors on various background colors</title>
<link rel="stylesheet" href="bootstrap.css" type="text/css"/>
<link rel="stylesheet" href="styles.css" type="text/css"/>
</head>
<body class="container">
<div class="page-header">
<h1><span class="my-text-color">Red</span> on <span class="my-background-color">white</span> <small>A color combination that <span class="does-it-work">works</span>!</small></h1>
</div>
<div class="jumbotron">
<p>On this page you'll be able to test if a particular text color works on a chosen background color.
<p>Choose the text and the background color, and press the <strong>Change Colors!</strong> button. This will change the named colors on the page, as well as the colors of the preview.</p>
<p>If the combination works, choose <strong>Works</strong>, otherwise choose <strong>Doesn't work</strong>. By doing so, you'll change the header text accordingly.
</div>
<div class="row">
<div class="col-md-9">
<p id="example"><span class="my-text-color">Red</span> on <span class="my-background-color">White</span></p>
</div>
<div class="col-md-3">
<div class="btn-group" role="group">
<button type="button" class="btn btn-success" onclick="rightCombo()">Works</button>
<button type="button" class="btn btn-danger" onclick="wrongCombo()">Doesn't work</button>
</div>
</div>
</div>
<div class="row select-colors">
<form submit="post">
<div class="col-md-4">
<select class="form-control" name="set-text-color" id="set-text-color">
<option value="red">Select text color</option>
<!-- Options generated by JavaScript -->
</select>
</div>
<div class="col-md-4">
<select class="form-control" name="set-background-color" id="set-background-color">
<option value="white">Select background color</option>
<!-- Options generated by JavaScript -->
</select>
</div>
<div class="col-md-4">
<button class="btn btn-default" type="submit">Change colors!</button>
</div>
</form>
</div>
</body>
<script src="http://code.jquery.com/jquery-2.2.1.min.js"></script>
<script src="css-colors.js"></script>
<script src="myscript.js"></script>
</html>