-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (50 loc) · 2.16 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
<!doctype html>
<html ng-app="KSPLaunchCalculator">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>KSP Launch Calculator</title>
<link rel="stylesheet" href="css/main.css">
<link href="css/bootstrap/bootstrap.css" rel="stylesheet">
</head>
<body ng-controller="MainCtrl">
<div class="container">
<div class="row">
<div class="col-md-2">
</div>
<div class="col-md-8">
<div class="box">
<div class="col-md-12">
<h1 class="header">Kerbal Space Program<br> Launch Calculator</h1>
</div>
<div class="col-md-6">
<input type="number" ng-model="thrust"placeholder="Input thrust"/>
<input type="number" ng-model="weight" placeholder="Input weight"/>
<select ng-model="gravityVal">
<option ng-repeat="planet in planetGravity | orderBy: 'name'" ng-value="planet.gravity">{{planet.name}}</option>
</select>
<p>{{calculate}}</p>
<button class="btn btn-default" type="submit" ng-click="calculate()">Calculate</button>
</div>
<div class="col-md-6">
<p>{{planet.name}}</p>
<p>{{thrust}}</p>
<p>Acceleration = {{accel}}</p>
</div>
<div class="col-md-12">
</div>
</div>
</div>
<div class="col-md-2">
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script type="text/javascript" src="scripts/jquery-bxslider/jquery.bxslider.min.js"></script>
<script type="text/javascript" src="scripts/jquery-fancybox/jquery.fancybox.pack.js"></script>
<script type="text/javascript" src="scripts/site.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<script type="text/javascript" src="scripts/launch-calculator.js"></script>
</body>
</html>