-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
60 lines (54 loc) · 2.65 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
<!DOCTYPE html>
<html>
<head>
<!-- These is our main stylesheet -->
<link rel="stylesheet" type="text/css" href="./assets/build/css/styles.css">
<!-- This script takes care of rendering the chart -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.4.0/Chart.bundle.js" integrity="sha256-1qeNeAAFNi/g6PFChfXQfa6CQ8eXoHXreohinZsoJOQ=" crossorigin="anonymous"></script>
<!-- This script takes care of allowing us to write math stuffs -->
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML"></script>
<!-- This script allows us to get a random color with ease -->
<script src="./rcolor.js"></script>
<!-- Latest jQuery 2016-11-25 -->
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
<!-- These are our own scripts, which allow us to organize our project and improve readability and maintainability -->
<script src="./engines.js"></script> <!-- JSON for custom engines -->
<script src="./stockEngines.js"></script> <!-- JSON for stock engines -->
<title>NTR Engine Plot</title>
</head>
<body>
<div class="data-container">
<h2>Big Engines</h2>
<div class="equations-container">
<span>\( \frac{radius (px)}{1}\ = \sqrt{ \frac{\pi \cdot diameter \cdot height}{2}\ } \)</span>
<span>\( \frac{border (px)}{1}\ = \max{( \sqrt{\frac{cost (c)}{1000}}, 0.5)} \)</span>
</div>
<div id="legend-container-0" class="legend-container"></div>
<canvas id="engineChart0" width="400" height="400"></canvas>
</div>
<hr>
<div class="data-container">
<h2>Small Engines</h2>
<div class="equations-container">
<span>\( \frac{radius (px)}{2}\ = \sqrt{ \frac{\pi \cdot diameter \cdot height}{2}\ } \)</span>
<span>\( \frac{border (px)}{2}\ = \max{( \sqrt{\frac{cost (c)}{1000}}, 0.5)} \)</span>
</div>
<div id="legend-container-1" class="legend-container"></div>
<canvas id="engineChart1" width="400" height="400"></canvas>
</div>
<hr>
<div class="data-container">
<h2>Tiny Engines</h2>
<div class="equations-container">
<span>\( \frac{radius (px)}{10}\ = \sqrt{ \frac{\pi \cdot diameter \cdot height}{2}\ } \)</span>
<span>\( \frac{border (px)}{10}\ = \max{( \sqrt{\frac{cost (c)}{1000}}, 0.5)} \)</span>
</div>
<div id="legend-container-2" class="legend-container"></div>
<canvas id="engineChart2" width="400" height="400"></canvas>
</div>
<!-- Chart rendering script (canvas) -->
<script src="./charts.js"></script>
<!-- Legends rendering script (HTML5) -->
<script src="./legends.js"></script>
</body>
</html>