-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
86 lines (72 loc) · 2.87 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Angstrom to Bohr and Bohr to Angstrom conversion</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.3/angular.min.js"></script>
<script src="script.js"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</head>
<body ng-app="myapp">
<div ng-controller="mycontroller">
<div class="container">
<div class="page-header">
<h1>Angstrom to Bohr and Bohr to Angstrom conversion</h1>
<p>
A simplistic "Google Translate" for Angstrom to Bohr and Bohr to
Angstrom conversion page. Whatever (space separated) numbers you type or paste in
there get converted preserving the (im)precision. You can paste in entire xyz
files. You can also abuse this page to convert other data using other
conversion factors.
</p>
</div>
<div class="row">
<div class="col-md-6">
<h4>Conversion factor (<a href="http://physics.nist.gov/cgi-bin/cuu/Value?bohrrada0">source</a>)</h4>
<input ng-model="factor" ng-change="change()" type="text">
</div>
</div>
<div class="row">
<div class="col-md-6">
<h4>Type or paste text block in Angstrom</h4>
<textarea ng-model="angstrom" ng-change="change()" rows="10" cols="60"></textarea>
</div>
<div class="col-md-6">
<h4>Result in Bohr</h4>
<pre>{{angstrom|convert : 1.0/factor}}</pre><br>
</div>
</div>
<div class="row">
<div class="col-md-6">
<h4>Type or paste text block in Bohr</h4>
<textarea ng-model="bohr" ng-change="change()" rows="10" cols="60"></textarea>
</div>
<div class="col-md-6">
<h4>Result in Angstrom</h4>
<pre>{{bohr|convert : factor}}</pre><br>
</div>
</div>
</div>
<footer class="footer">
<div class="container">
<p class="text-muted">
<div ng-show="loaded">
Version:
<a href="https://github.com/bast/angstrom-bohr/commit/{{last_sha}}" target="_blank">{{last_sha_short}}</a>
({{last_version_date}}).
</div>
<a href="https://github.com/bast/angstrom-bohr">Source code</a>.
Copyright (c) 2015-2016, <a href="http://bast.fr">Radovan Bast</a>.
All rights reserved.
Privacy: All data you enter stays between you and your browser.
</p>
</div>
</footer>
</div>
</body>
</html>