-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshockload.html
146 lines (114 loc) · 5.76 KB
/
shockload.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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!DOCTYPE html>
<html>
<head>
<title>Shock-load Calculator</title>
<link rel="shortcut icon" type="image/png" href="../favicon.png" />
<link rel="apple-touch-icon-precomposed" href="../apple-touch-icon-60x60.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="../apple-touch-icon-76x76.png">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../apple-touch-icon-152x152.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="../apple-touch-icon-120x120.png">
<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/shockload.js"></script>
<script type="text/javascript">$(document).bind("mobileinit", function () {$.mobile.ajaxEnabled = false;});</script>
<script type="text/javascript" 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="shockload_page">
<script type="text/javascript">
LoadNavPanel("#shockload_page");
$(document).on('pageshow', '#shockload_page', function(){
$("#wiretype, #rope_diameter, #rope_length, #rope_load, #rope_stretch, #per_elongation, #wiretype, #energy_absorbsion, #rope_diameter_L, #rope_length_L, #rope_stretch_L, #per_elongation_L, #energy_absorbsion_L, #rope_load_L, #rope_weight, #rope_weight_L").hide('fast');
$("#wiretype").parent().hide();
getShock();
});
$(document).on('change', '.user_values, #wiretype', function(){getShock();});
$(document).on('change', '#calcKind', function(){changeKind(); getShock();});
$(".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>Shockload Force</h1>
</div><!-- /header -->
<div data-role="controlgroup">
<select name="calcKind" id="calcKind" data-mini="true">
<option value="Calculate_null" disabled>Calculate For:</option>
<option value="distance">Distance</option>
<option value="gac">Wire Rope</option>
<option value="elongationpercentage">Percent of Elongation</option>
<!-- <option value="working_energy">Green Working Energy Absorption</option> -->
</select>
</div>
<div role="main" class="ui-content">
<label for="weight">Weight, lbm:</label>
<input class="user_values" type="number" data-clear-btn="true" id="weight" value="200" min="1" />
<div class="ui-grid-a">
<div class="ui-block-a">
<label for="fall">Fall Distance, in:</label>
<input class="user_values" type="number" data-clear-btn="true" id="fall" value="6" min="0" />
</div>
<div class="ui-block-b">
<label for="stop" id="stop_L">Stop Distance, in:</label>
<input class="user_values" type="number" id="stop" value="1" min="0" />
</div>
</div>
<label for="force">Shockload, lbf:</label>
<input class="calculated_values" name="force" id="force" readonly />
<div data-role="controlgroup">
<select id="wiretype" data-mini="true">
<option value="Calculate_null" disabled>Wire Rope Type:</option>
<option value="0.472">7x19 GAC</option>
<option value="0.471">7x7 GAC</option>
<option value="0.416">6x19W, fiber core</option>
<option value="0.482">6x19W, IWRC</option>
<option value="0.419">6x36WS, fiber core</option>
<option value="0.485">6x36WS, IWRC</option>
<option value="0.366">8x19W, fiber core</option>
<option value="0.497">8x19W, IWRC</option>
</select>
</div>
<label for="rope_diameter" id="rope_diameter_L">Rope Diameter, in:</label>
<input class="user_values" type="number" id="rope_diameter" value="0.25" step="0.0625" />
<label for="rope_length" id="rope_length_L">Rope Length, ft:</label>
<input class="user_values" type="number" id="rope_length" value="100" />
<div class="ui-grid-a">
<div class="ui-block-a">
<label for="per_elongation"id="per_elongation_L">Elongation, %:</label>
<input class="user_values" type="number" id="per_elongation" value="1.5" />
</div>
<div class="ui-block-b">
<label for="rope_load" id="rope_load_L">at Rope Load, lbf:</label>
<input class="user_values" type="number" id="rope_load" value="750" />
</div>
</div>
<!-- <div class="ui-grid-a">
<div class="ui-block-a">
<label for="energy_absorbsion" id="energy_absorbsion_L">Energy Absorbsion, ft/lbs per lb of rope:</label>
<input class="user_values" type="number" id="energy_absorbsion" value="291" />
</div>
<div class="ui-block-b">
<label for="rope_weight" id="rope_weight_L">Rope weight, lb/ft:</label>
<input class="user_values" type="number" id="rope_weight" value="0.13" />
</div>
</div>
-->
</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/forces/shockload/" data-role="button" id="button_formulas" data-icon="gear">Formulas</a>
<a href="#diagram" data-role="button" id="shock_diagram" data-rel="dialog" data-icon="info" disabled style=color:#b2b2b2;>Diagram</a>
<a href="disclaimer.html" data-role="button" data-rel="dialog">Disclaimer</a>
</div>
</div> <!-- Footer -->
</div> <!-- Page -->
</body>
</html>