-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
executable file
·73 lines (67 loc) · 3.54 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<!-- this line removes any default padding and style. you might only need one of these values set. -->
<link rel="stylesheet" type="text/css" href="style.css">
<script language="javascript" type="text/javascript" src="libraries/p5.js"></script>
<!-- uncomment lines below to include extra p5 libraries -->
<script language="javascript" src="libraries/p5.dom.js"></script>
<!--<script language="javascript" src="libraries/p5.sound.js"></script>-->
<script language="javascript" type="text/javascript" src="sketch.js"></script>
<script language="javascript" type="text/javascript" src="dot.js"></script>
<script language="javascript" type="text/javascript" src="dice.js"></script>
<script
src="https://code.jquery.com/jquery-1.12.4.min.js"
integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ="
crossorigin="anonymous"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<!-- Latest compiled and minified CSS -->
</head>
<body>
<!-- Fixed navbar -->
<nav class="navbar navbar-default navbar-fixed-top navbar-inverse">
<div class="container">
<ul class="nav navbar-nav">
<a class="navbar-brand" href="#">Chaos Game</a>
<li class="pull-right"><a href="#" data-toggle="modal" data-target="#aboutPage">About</a></li>
</ul>
</div>
</nav>
<div id="game">
</div>
<div id="aboutPage" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">About</h4>
</div>
<div class="modal-body">
<p>So what is this page all about?<br>
Check out the following video for an explaination of what the Chaos Game is all about
</p>
<iframe class="embed-responsive-item" width="100%" height="300px"src="https://www.youtube.com/embed/kbKtFN71Lfs" frameborder="0" allowfullscreen></iframe>
<p><br>After watching this video I decided to try making this using p5.js, and this is the result. Enjoy :-)</p>
</div>
<div class="modal-footer">
<p class="pull-left">Created by <a href="https://github.com/digitalight/">digitalight</a></p>
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<footer class="footer navbar-default navbar-inverse">
<div class="container text-center">
<h1 class="pull-left"><span id="dice" class="label label-info">1</span></h1>
<button type="button" id="start" class="btn btn-success text-center">Start</button>
<button type="button" id="restart" class="btn btn-warning text-center">Restart</button>
<h3 class="pull-right"><span id="counter" class="label label-default">0</span></h3>
</div>
</footer>
</body>
</html>