-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
158 lines (119 loc) · 5.67 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
<!DOCTYPE html>
<html lang="en" ng-app>
<head>
<meta charset="utf-8">
<title>Brenizer-Calc · Tim Gamma</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="description" content="A calculator for the Brenizer Method (Photography)">
<meta name="author" content="Tim Gamma">
<!-- Javascript Part 1
================================================== -->
<script src="https://code.angularjs.org/1.0.0/angular-1.0.0.min.js"></script>
<script src="./script.js"></script>
<!-- Styles -->
<link href="https://netdna.bootstrapcdn.com/bootstrap/2.0.4/css/bootstrap.min.css" rel="stylesheet">
<link href="./css/docs.css" rel="stylesheet">
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- icons -->
<link rel="shortcut icon" href="./ico/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="./ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="./ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="./ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="./ico/apple-touch-icon-57-precomposed.png">
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-32906560-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body data-spy="scroll" data-target=".subnav" data-offset="50">
<!-- Navbar
================================================== -->
<div class="navbar 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="./index.html">Brenizer-Calc</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li class="">
<a href="http://www.thiemo.ch">Home</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="container">
<!-- Masthead
================================================== -->
<header class="jumbotron subhead">
<div class="inner">
<h1>Brenizer-Calc</h1>
<p class="lead">You surely already know the <a href="http://ryanbrenizer.com/category/brenizer-method/" target="_blank">Brenizer-Method</a> of Photography! Ever wondered what imaginary lens it would take to create your Brenizerized photograph? Well, hack your data into this form and find out!</p>
</div>
<div class="bs-links">
<ul class="quick-links">
<li class="tweet-btn">
<iframe allowtransparency="true" frameborder="0" scrolling="no" src="http://platform.twitter.com/widgets/tweet_button.html" class="twitter-share-button twitter-count-horizontal" style="width:107px; height:20px;" title="Twitter Tweet Button"></iframe>
</li>
<li class="tweet-btn">
<iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fcalc.thiemo.ch&send=false&layout=button_count&width=100&show_faces=false&action=like&colorscheme=light&font=&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:120px; height:20px; font: italic bold 30px arial, sans-serif !important;" allowTransparency="true"></iframe>
</li>
</ul>
</div>
</header>
<div ng-controller="CalcController" class="row-fluid">
<div class="span5">
<form class="well" ng-submit="calculate()" name="inputForm">
<fieldset>
<div class="input-append">
<input class="span10" id="appendedInput" size="" type="text" ng-model="inputFocal" placeholder="Real focal length used" required><span class="add-on">mm</span>
</div>
<div class="input-prepend">
<span class="add-on">ƒ/</span><input type="text" class="span10" ng-model="inputAperture" placeholder="Real aperture used" required>
</div>
<div class="input-append">
<input type="text" class="span10" ng-model="inputWidth" placeholder="Single frame width" required><span class="add-on">px</span>
</div>
<div class="input-append">
<input type="text" class="span10" id="inputError" ng-model="inputHeight" placeholder="Single frame height" required><span class="add-on">px</span>
</div>
<div class="input-append">
<input type="text" class="span10" ng-model="outputWidth" placeholder="Final cropped width" required><span class="add-on">px</span>
</div>
<div class="input-append">
<input type="text" class="span10" ng-model="outputHeight" placeholder="Final cropped height" required><span class="add-on">px</span>
</div>
</fieldset>
</form>
</div>
<div class="span7">
<div class="well">
<div class="span6">
<h1>{{calcFocal()}}</h1>
<h6>mm</h6>
</div>
<h1>{{calcApert()}}</h1>
<h6>/ƒ</h6>
</div>
</div>
</div> <!-- row end -->
</div> <!-- Container end -->
<!-- Javascript Part 2, meta-package includes all bootstrap stuff
================================================== -->
<script src="http://netdna.bootstrapcdn.com/bootstrap/2.0.4/js/bootstrap.min.js"></script>
</body>
</html>