Skip to content

Commit 2ff9e68

Browse files
committed
bootstrap
1 parent 2f94aca commit 2ff9e68

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

html/colors/index.html

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<html>
22
<head>
33
<title>Colors</title>
4+
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
45
<style>
56
* {
67
font-family: monospace;
@@ -20,14 +21,18 @@
2021
</style>
2122
</head>
2223
<body onload="init()">
23-
<div class="center">
24-
<h1>Colors!</h1>
25-
</div>
26-
<div class="center">
27-
<button onclick="scramble()">Scramble!</button>
28-
</div>
29-
<div>
30-
&nbsp;
24+
<div class="jumbotron jumbotron-fluid">
25+
<div class="container">
26+
<h1 class="display-4">Colors!</h1>
27+
<p class="lead">
28+
Color generator
29+
</p>
30+
<hr class="my-4">
31+
<p>
32+
Hit scramble to generate new colors
33+
</p>
34+
<button type="button" class="btn btn-primary" onclick="scramble()">Scramble!</button>
35+
</div>
3136
</div>
3237
<table id="grid" class="color-table">
3338
</table>
@@ -36,6 +41,10 @@ <h1>Colors!</h1>
3641
<source src="audio/fairy.mp3" type="audio/mp3">
3742
</audio>
3843

44+
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
45+
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
46+
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
47+
<script src="https://cdnjs.cloudflare.com/ajax/libs/howler/2.2.0/howler.min.js" crossorigin="anonymous"></script>
3948
<script>
4049
const nRows = 25;
4150
const nCols = 25;

0 commit comments

Comments
 (0)