forked from apocolipse/RotorPirates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
78 lines (74 loc) · 4.77 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
<html>
<head>
<!-- <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script> -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css" integrity="sha384-Zug+QiDoJOrZ5t4lssLdxGhVrurbmBWopoEl+M6BdEfwnCJZtKxi1KgxUyJq13dy" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.rawgit.com/apocolipse/RotorPirates/3b92df58/js/style.css">
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script src="https://cdn.rawgit.com/apocolipse/RotorPirates/ae2f80f1/js/RotorPirates.js"></script>
</head>
<body>
<h3>RotorPirates!</h3>
<div id="curve_chart" style="width: 900px; height: 500px; margin-top:-70px"></div>
<div class="rateBox">
<span class="block-title">RaceFlight Rates</span>
<button onclick="calcFromRF()" class="btn btn-secondary">Calc Others</button>
<div>
<span class="input-title">Rate:</span>
<span class="input-title">Expo:</span>
<span class="input-title">Acro+:</span>
</div>
<div>
<input type="number" id="rfRate" min="0" max="2000" value="400" class="input-field"/>
<input type="number" id="rfExpo" min="0" max="100" value="50" class="input-field"/>
<input type="number" id="rfAcro" min="0" max="1000" value="140" class="input-field"/>
</div>
<div>
<input type="range" id="rfRateSlider" class="slider" min="0" max="2000" value="400"/>
<input type="range" id="rfExpoSlider" class="slider" min="0" max="100" value="50" />
<input type="range" id="rfAcroSlider" class="slider" min="0" max="1000" value="140"/>
</div>
</div>
<div class="rateBox">
<span class="block-title">BetaFlight Rates</span>
<button onclick="calcFromBF()" class="btn btn-secondary">Calc Others</button>
<div>
<span class="input-title">RC Rate:</span>
<span class="input-title">Super Rate:</span>
<span class="input-title">RC Expo:</span>
</div>
<div>
<input type="number" id="bfRate" step="0.01" min="0.00" max="3.00" value="1.00" placeholder='0.00' class="input-field"/>
<input type="number" id="bfSuper" step="0.01" min="0.00" max="1.00" value="0.70" placeholder='0.00' class="input-field"/>
<input type="number" id="bfExpo" step="0.01" min="0.00" max="1.00" value="0.00" placeholder='0.00' class="input-field"/>
</div>
<div>
<input type="range" id="bfRateSlider" class="slider" step="0.01" min="0.00" max="3.00" value="1.00" placeholder='0.00'/>
<input type="range" id="bfSuperSlider" class="slider" step="0.01" min="0.00" max="1.00" value="0.70" placeholder='0.00'/>
<input type="range" id="bfExpoSlider" class="slider" step="0.01" min="0.00" max="1.00" value="0.00" placeholder='0.00'/>
</div>
</div>
<div class="rateBox">
<span class="block-title">KISS Rates</span>
<button onclick="calcFromKiss()" class="btn btn-secondary">Calc Others</button>
<div>
<span class="input-title">RC Rate:</span>
<span class="input-title">Rate:</span>
<span class="input-title">RC Curve:</span>
</div>
<div>
<input type="number" id="kissRcRate" step="0.01" min="0.00" max="10.00" value="0.70" placeholder='0.00' class="input-field"/>
<input type="number" id="kissRate" step="0.01" min="0.00" max="1.00" value="0.70" placeholder='0.00' class="input-field"/>
<input type="number" id="kissCurve" step="0.01" min="0.00" max="1.00" value="0.40" placeholder='0.00' class="input-field"/>
</div>
<div>
<input type="range" id="kissRcRateSlider" class="slider" step="0.01" min="0.00" max="10.00" value="0.70" placeholder='0.00'/>
<input type="range" id="kissRateSlider" class="slider" step="0.01" min="0.00" max="1.00" value="0.70" placeholder='0.00'/>
<input type="range" id="kissCurveSlider" class="slider" step="0.01" min="0.00" max="1.00" value="0.40" placeholder='0.00'/>
</div>
</div>
<div class="footer">
See original code on <a href="https://github.com/apocolipse/RotorPirates">GitHub</a>
</div>
</body>
</html>