-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
163 lines (160 loc) · 6.91 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
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>LensCalc</title>
<!-- Le styles -->
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<link href="css/custom.css" rel="stylesheet" >
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="assets/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="brand" href="http://blog.quinnscripter.com">Quinn Scripter</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li><a href="/">Home</a></li>
<li class="active"><a href="/lenscalc">LensCalc</a></li>
<li><a href="/files">File Manager</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<div class='container'>
<div class="row">
<div class="span12">
<h1>Broadcast Lens Calculator</h1>
</div>
</div>
<div class="row">
<div class="span6">
<h4>Inputs</h4>
<form class="form-horizontal">
<div class="control-group">
<label class="control-label" for="focal_length">Focal Length</label>
<div class="controls">
<input type="text" id="focal_length" placeholder="Focal Length (mm)">
</div>
</div>
<div class="control-group">
<label class="control-label" for="distance">Distace to Subject</label>
<div class="controls">
<input type="text" id="distance" placeholder="Distance">
</div>
</div>
<div class="control-group">
<label class="control-label" for="sensor">Sensor Size</label>
<div class="controls">
<select id="sensorSize" class="form-control">
<optgroup label="16:9 Video">
<option sensorWidth="23.62" sensorHeight="13.28">Super 35*</option>
<option selected sensorWidth="9.59" sensorHeight="5.39">2/3-inch</option>
<option sensorWidth="6.97" sensorHeight="3.92">1/2-inch</option>
<option sensorWidth="5.23" sensorHeight="2.94">1/3-inch</option>
<option sensorWidth="3.49" sensorHeight="1.96">1/4-inch</option>
<option sensorWidth="2.37" sensorHeight="1.33">1/6-inch</option>
</optgroup>
<optgroup label="4:3 Video">
<option sensorWidth="20.32" sensorHeight="15.24">1.5-inch</option>
<option sensorWidth="12.70" sensorHeight="9.50">1-inch</option>
<option sensorWidth="8.80" sensorHeight="6.60">2/3-inch</option>
<option sensorWidth="6.40" sensorHeight="4.80">1/2-inch</option>
<option sensorWidth="4.80" sensorHeight="3.60">1/3-inch</option>
<option sensorWidth="3.20" sensorHeight="2.40">1/4-inch</option>
<option sensorWidth="2.20" sensorHeight="1.60">1/6-inch</option>
</optgroup>
<optgroup label="Motion Picture Film">
<option sensorWidth="70.41" sensorHeight="52.63">IMAX® 70mm (15 perf)</option>
<option sensorWidth="52.48" sensorHeight="23.01">65/70mm (5 perf)</option>
<option sensorWidth="37.97" sensorHeight="25.17">VistaVision® 35mm (8 perf)</option>
<option sensorWidth="24.89" sensorHeight="18.67">Super 35 (4 perf)</option>
<option sensorWidth="22.00" sensorHeight="16.00">Academy 35mm (4 perf)</option>
<option sensorWidth="12.52" sensorHeight="7.42">Super 16mm</option>
<option sensorWidth="10.26" sensorHeight="7.49">16mm</option>
</optgroup>
<optgroup label="Digital Still">
<option sensorWidth="35.90" sensorHeight="24.00">35mm*</option>
<option sensorWidth="27.90" sensorHeight="18.60">APS-H</option>
<option sensorWidth="23.50" sensorHeight="15.60">APS-C*</option>
<option sensorWidth="18.00" sensorHeight="13.50">4/3”</option>
<option sensorWidth="12.80" sensorHeight="9.60">1"</option>
<option sensorWidth="8.80" sensorHeight="6.60">2/3"</option>
<option sensorWidth="7.60" sensorHeight="5.70">1/1.7"</option>
<option sensorWidth="7.18" sensorHeight="5.32">1/1.8"</option>
<option sensorWidth="6.40" sensorHeight="4.80">1/2"</option>
<option sensorWidth="6.16" sensorHeight="4.62">1/2.3"</option>
<option sensorWidth="5.76" sensorHeight="4.29">1/2.5"</option>
<option sensorWidth="5.37" sensorHeight="4.04">1/2.7"</option>
<option sensorWidth="4.80" sensorHeight="3.60">1/3"</option>
<option sensorWidth="4.54" sensorHeight="3.42">1/3.2"</option>
<option sensorWidth="4.00" sensorHeight="3.00">1/3.6"</option>
</optgroup>
<optgroup label="Still Film">
<option sensorWidth="36.00" sensorHeight="24.00">35mm (8 perf)</option>
<option sensorWidth="30.20" sensorHeight="16.70">APS-H</option>
<option sensorWidth="25.10" sensorHeight="16.70">APS-C</option>
</optgroup>
</select>
</div>
</div>
<div class="control-group">
<div class="controls">
<a class='btn btn-primary' onclick='calcFrame();'>Calculate</a>
</div>
</div>
</form>
</div>
<div class="span6">
<h4>Output</h4>
<form class="form-horizontal">
<div class="control-group">
<label class="control-label" for="frameWidth">Width</label>
<div class="controls">
<input type="text" id="frameWidth" placeholder="" disabled>
</div>
</div>
<div class="control-group">
<label class="control-label" for="frameHeight">Height</label>
<div class="controls">
<input type="text" id="frameHeight" placeholder="" disabled>
</div>
</div>
</form>
</div>
</div>
<div class="row">
<div class="span12">
<div id='frame'>
<svg id='svg' xmlns="http://www.w3.org/2000/svg" width="640" height="360" xmlns:xlink="http://www.w3.org/1999/xlink" >
<g id='scaler'>
<image id='man' x="0" y="0" height='360' width='640' xlink:href="img/stick_figure_male.svg" />
</g>
</svg>
</div>
</div>
</div>
</div>
<script type="text/javascript" src='js/jquery-1.9.1.js'></script>
<script type="text/javascript" src='js/detectmobilebrowser.js'></script>
<script type="text/javascript" src='js/bootstrap.js'></script>
<script type="text/javascript" src='js/lenscalc.js'></script>
<script type="text/javascript" src='js/detectmobilebrowser.js'></script>
<script>
if (jQuery.browser.mobile)
{
window.location.replace("http://quinnscripter.com/lenscalc/m/");
}
</script>
</body>
</html>