-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwinch_yoyo.html
126 lines (82 loc) · 4.55 KB
/
winch_yoyo.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<!DOCTYPE html>
<html>
<head>
<title>Winch Calculator: Yoyo</title>
<meta content="width=device-width, minimum-scale=1, maximum-scale=1" name="viewport">
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" />
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="script/mdj.math.library.js"></script>
<script type="text/javascript" src="script/winch_yoyo.js"></script>
<script type="text/javascript">$(document).bind("mobileinit", function () {$.mobile.ajaxEnabled = false;});</script>
<script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
</head>
<body>
<!-- ###################
##### PAGE #####
################### -->
<div data-role="page" id="yoyo_winch">
<script>
LoadNavPanel("#yoyo_winch");
$(document).on('pageshow', "#yoyo_winch", function () {calc_typ();});
$(document).on('change', "#hp, #empty_diam, #full_diam, #rpm, #ratio, #efficiency", function(){calc_typ();});
$(document).on('change', "#empty_speed", function(){Calculate_from_empty_speed();});
$(document).on('change', "#full_speed", function(){Calculate_from_full_speed();});
$(document).on('change', "#empty_force", function(){Calculate_from_empty_force();});
$(document).on('change', "#full_force", function(){Calculate_from_full_force();});
$(".calculated_values").prop("readonly",true);
</script>
<div data-role="panel" id="navpanel" class="navpanel" data-display="reveal" data-position="left">
</div> <!-- Panel -->
<div data-role="header" data-position="fixed" data-theme="b">
<a href="#navpanel" data-role="button" data-icon="bars" data-iconpos="notext">Navigation</a>
<h1>Winch Calculator: Yoyo</h1>
</div> <!-- header -->
<div role="main" class="ui-content">
<label for="hp">HP:</label>
<input class="user_values" type="number" data-clear-btn="true" name="hp" id="hp" value="5" min="0" maxlength="4" />
<label for="rpm">RPM:</label>
<input class="user_values" type="number" data-clear-btn="true" name="rpm" id="rpm" value="2700" min="0" maxlength="4" />
<label for="ratio">Ratio:</label>
<input type="range" name="ratio" id="ratio" value="33" min="1" max="300" step="0.1" data-highlight="true"/>
<label for="efficiency">Efficiency (%):</label>
<input type="range" name="efficiency" id="efficiency" value="79" min="1" max="100" step="1" data-highlight="true" />
<div class="ui-grid-a">
<div class="ui-block-a">
<label for="empty_diam">Empty Diam. (in):</label>
<input class="user_values" type="number" data-clear-btn="true" name="empty_diam" id="empty_diam" value="4.5" min="0" maxlength="4" />
<label for="empty_speed">Empty Speed (ft/s):</label>
<input class="user_values" type="number" data-clear-btn="true" id="empty_speed" name="empty_speed" min="0" />
<label for="empty_force">Empty Force (lbs):</label>
<input class="user_values" type="number" data-clear-btn="true" id="empty_force" name="empty_force" min="0" />
</div>
<div class="ui-block-b">
<label for="full_diam">Full Diam. (in):</label>
<input class="user_values" type="number" data-clear-btn="true" name="full_diam" id="full_diam" value="11" min="0" maxlength="4" />
<label for="full_speed">Full Speed (ft/s):</label>
<input class="user_values" type="number" data-clear-btn="true" id="full_speed" name="full_speed" min="0" />
<label for="full_force">Full Force (lbs):</label>
<input class="user_values" type="number" data-clear-btn="true" id="full_force" name="full_force" min="0" />
</div>
</div> <!-- GRID -->
</div> <!-- Content -->
<!-- ##### FOOTER ##### -->
<div data-role="footer" data-position="fixed" data-theme="b">
<div data-role="controlgroup" data-type="horizontal" align="center">
<a href="https://formulae.scenic-shop.com/power-transmission/winch_yoyo/" data-role="button" id="button_formula" data-icon="gear">Formulas</a>
<a href="#diagram" data-role="button" id="yoyo_diagram" data-icon="info">Diagram</a>
<a href="disclaimer.html" data-role="button" data-rel="dialog">Disclaimer</a>
</div>
</div>
</div> <!-- Page -->
<!-- ##### DIAGRAM ##### -->
<div data-role="page" id="diagram" data-dialog="true">
<div data-role="header" data-position="fixed" data-theme="b">
<h1>Yoyo Diagram</h1>
</div><!-- /header -->
<div data-role="content">
<h1> <img class="centered" src="image/drum_yoyo_payout.jpg" alt="Diagram" /> </h1>
</div>
</div> <!-- Page -->
</body>
</html>