File tree Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Original file line number Diff line number Diff line change 1
1
< html >
2
2
< head >
3
3
< 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 ">
4
5
< style >
5
6
* {
6
7
font-family : monospace;
20
21
</ style >
21
22
</ head >
22
23
< 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
-
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 >
31
36
</ div >
32
37
< table id ="grid " class ="color-table ">
33
38
</ table >
@@ -36,6 +41,10 @@ <h1>Colors!</h1>
36
41
< source src ="audio/fairy.mp3 " type ="audio/mp3 ">
37
42
</ audio >
38
43
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 >
39
48
< script >
40
49
const nRows = 25 ;
41
50
const nCols = 25 ;
You can’t perform that action at this time.
0 commit comments