-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
107 lines (93 loc) · 4.71 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Test -->
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="2D In-Browser Particle Engine">
<meta name="author" content="Owen Maschal">
<title>In-browser Particle System</title>
<!-- Latest compiled and minified jQuery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<!-- Latest compiled Bootstrap and minified CSS -->
<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 that makes things look nicer. -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css"
integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp"
crossorigin="anonymous">
<!-- Latest compiled and minified Bootstrap Code -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
crossorigin="anonymous"></script>
<!-- Custom styles for this template -->
<link href="jumbotron-narrow.css" rel="stylesheet">
<!-- Import physics related Javascript -->
<script type="text/javascript" src="physics.js"></script>
<!-- Import particle Javascript. -->
<script type="text/javascript" src="Particle.js"></script>
<!-- Import canvas and basic buffer functions. -->
<script type="text/javascript" src="main.js"></script>
</head>
<body>
<div class="container">
<div class="header clearfix">
<h3 class="text-muted">In-browser Particle System</h3>
</div>
<div class="jumbotron">
<div id="intro">
<h1>2D GAME</h1>
<p class="lead">Which simulation would you like to start with first?</p>
<p><button id="startSnowButton" class="btn btn-sm btn-primary" type="button">Snow blowing and falling</button></p>
<p><button id="startRainButton" class="btn btn-sm btn-primary" type="button">Rain falling</button></p>
<p><button id="startInsectButton" class="btn btn-sm btn-primary" type="button">Insect Swarm</button></p>
</div>
</div>
<!-- Don't display this until the simulation has started. -->
<div class="row marketing" id="control-panel" style="display: none">
<div class="col-lg-6">
<h4>Advanced Options</h4>
<button id="rainButton" class="btn btn-sm btn-primary" type="button">Rain</button>
<button id="snowButton" class="btn btn-sm btn-primary" type="button">Snow</button>
<button id="insectButton" class="btn btn-sm btn-primary" type="button">Insect</button>
<button id="playPauseButton" class="btn btn-sm btn-primary" type="button">Play/Pause</button>
<button id="windToggleButton" class="btn btn-sm btn-primary" type="button">Wind: Enabled</button>
<!-- Alert message when one of the input fields is invalid. -->
<div id="alert" class="alert alert-danger" role="alert" style="display: none; margin-bottom: 0 !important;">
<strong>ERROR:</strong> Invalid number!
</div>
<!-- Input for emission rate -->
<div class="input-group">
<span class="input-group-btn">
<button id="rateButton" class="btn btn-default" type="button">Emission Rate</button>
</span>
<input id="rateInput" type="text" class="form-control" placeholder="between 1 and 100 (inclusive)">
</div>
<!-- Input for Maxiumum particle count -->
<div class="input-group">
<span class="input-group-btn">
<button id="particlesButton" class="btn btn-default" type="button">Maximum Particles</button>
</span>
<input id="particlesInput" type="text" class="form-control" placeholder="between 1 and 100 (inclusive)">
</div>
<!-- Input for particle size -->
<div class="input-group">
<span class="input-group-btn">
<button id="particleSizeButton" class="btn btn-default" type="button">Particle size</button>
</span>
<input id="particleSizeInput" type="text" class="form-control" placeholder="between 1 and 100 (inclusive)">
</div>
</div>
</div>
<footer class="footer">
<p class="text-muted">By Owen Maschal</p>
<p class="text-muted"><a href="https://github.com/maschaltosis/In-browser-Particle-System">GitHub Link</a></p>
</footer>
</div>
<!-- Import button-related functions. -->
<script type="text/javascript" src="Buttons.js"></script>
</body>
</html>