-
Notifications
You must be signed in to change notification settings - Fork 0
/
BarbellCalculator.html
138 lines (108 loc) · 5.99 KB
/
BarbellCalculator.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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="BarbellCalculator.css">
</head>
<body>
<h1 style="color:#FFA500;font-size:35px;font-family:'Oswald', sans-serif;text-shadow: 1px 1px 2px #795208;padding:0px 0px 0px">BARBELL CALCULATOR</h1>
<div id="bbc-metal">
<button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">Setting</button>
<p style="text-align: center;color:black"><b>Enter Weight</b> <input id="Weight" size="3" type="text" value="100" /></p>
<p style="text-align: center;"><input id="Calculate" type="button" value="Calculate" /><input id="Reset" type="button" value="Reset" /></p>
</div>
<div style="text-align: center">
<img src="bar.jpg" width="600">
</div>
<table width="" style="margin-left:145px">
<tr>
<td class="external1 bag_postion_1" >
<svg id="svg1" width="145" height="65"><rect class="rect_style rect_color_1 rect_obvious" x="3" y="3" rx="20" ry="20" width="140" height="60" ></svg>
</td>
<td class="external2 bag_postion_2" >
<svg id="svg4" width="145" height="65"><rect class="rect_style rect_color_2 rect_obvious" x="3" y="3" rx="20" ry="20" width="140" height="60" ></svg>
</td>
<td class="external3 bag_postion_3" >
<svg id="svg7" width="145" height="65"><rect x="3" y="3" rx="20" ry="20" width="140" height="60" class="rect_style rect_color_3 rect_obvious" ></svg>
</td>
<td class="external1 bag_postion_4">
<svg id="svg10" width="145" height="65"><rect x="3" y="3" rx="20" ry="20" width="140" height="60" class="rect_style rect_color_1 rect_obvious"></svg>
</td>
<td class="external2 bag_postion_5">
<svg id="svg13" width="145" height="65"><rect x="3" y="3" rx="20" ry="20" width="140" height="60" class="rect_style rect_color_2 rect_obvious"></svg>
</td>
<td class="external3 bag_postion_6">
<svg id="svg16" width="145" height="65"><rect x="3" y="3" rx="20" ry="20" width="140" height="60" class="rect_style rect_color_3 rect_obvious"></svg>
</td>
</tr>
<tr>
<td class="external1 bag_postion_1">
<svg id="svg2" width="145" height="65"><rect x="3" y="3" rx="20" ry="20" width="140" height="60" class="rect_style rect_color_1 rect_obvious"></svg>
</td>
<td class="external2 bag_postion_2" >
<svg id="svg5" width="145" height="65"><rect x="3" y="3" rx="20" ry="20" width="140" height="60" class="rect_style rect_color_2 rect_obvious"></svg>
</td>
<td class="external3 bag_postion_3">
<svg id="svg8" width="145" height="65"><rect x="3" y="3" rx="20" ry="20" width="140" height="60" class="rect_style rect_color_3 rect_obvious"></svg>
</td>
<td class="external1 bag_postion_4">
<svg id="svg11" width="145" height="65"><rect x="3" y="3" rx="20" ry="20" width="140" height="60" class="rect_style rect_color_1 rect_obvious"></svg>
</td>
<td class="external2 bag_postion_5">
<svg id="svg14" width="145" height="65"><rect x="3" y="3" rx="20" ry="20" width="140" height="60" class="rect_style rect_color_2 rect_obvious"></svg>
</td>
<td class="external3 bag_postion_6">
<svg id="svg17" width="145" height="65"><rect x="3" y="3" rx="20" ry="20" width="140" height="60" class="rect_style rect_color_3 rect_obvious"></svg>
</td>
</tr>
<tr>
<td class="external1 bag_postion_1">
<svg id="svg3" width="145" height="65"><rect x="3" y="3" rx="20" ry="20" width="140" height="60" class="rect_style rect_color_1 rect_obvious"></svg>
</td>
<td class="external2 bag_postion_2" >
<svg id="svg6" width="145" height="65"><rect x="3" y="3" rx="20" ry="20" width="140" height="60" class="rect_style rect_color_2 rect_obvious"></svg>
</td>
<td class="external3 bag_postion_3">
<svg id="svg9" width="145" height="65"><rect x="3" y="3" rx="20" ry="20" width="140" height="60" class="rect_style rect_color_3 rect_obvious"></svg>
</td>
<td class="external1 bag_postion_4">
<svg id="svg12" width="145" height="65"><rect x="3" y="3" rx="20" ry="20" width="140" height="60" class="rect_style rect_color_1 rect_obvious"></svg>
</td>
<td class="external2 bag_postion_5">
<svg id="svg15" width="145" height="65"><rect x="3" y="3" rx="20" ry="20" width="140" height="60" class="rect_style rect_color_2 rect_obvious"></svg>
</td>
<td class="external3 bag_postion_6">
<svg id="svg18" width="145" height="65"><rect x="3" y="3" rx="20" ry="20" width="140" height="60" class="rect_style rect_color_3 rect_obvious"></svg>
</td>
</tr>
</table>
<!-- Setting based on Bootstrap-->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="myModalLabel">Setting</h4>
</div>
<div class="modal-body">
<p>Number of External Bags:
<select id="ExternalBags">
<option value="2">2</option>
<option value="4" selected>4</option>
<option value="6">6</option>
</select>
</p>
<p style="text-align: left;"><b>Bar Weight:</b><input id="BarWeight" value=45 type="text" /></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" onclick="setting()">Save changes</button>
</div>
</div>
</div>
</div>
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="BarbellCalculator.js"></script>
<body>
</html>