-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
66 lines (53 loc) · 2.22 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
<!DOCTYPE html>
<html>
<head>
<title>Eddington Number Calculator</title>
<meta charset="utf8" />
<meta name="author" content="Paul Egeler" />
<meta name="description" content="Eddington Number Online Calculator" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<script src='/eddington.js'></script>
<link rel='stylesheet' href='/style.css' />
</head>
<body>
<h1>Eddington Number Online Calculator</h1>
<p>This page takes daily ride mileages and will return the
<a href="https://en.wikipedia.org/wiki/Arthur_Eddington#Eddington_number_for_cycling">
Eddington number</a> for cycling.
There are two ways to calculate your Eddington number:
<ul>
<li>Enter your rides in the text box and click "Calculate!"</li>
<li>Load a <em>.txt</em> or <em>.dat</em> file.</li>
</ul>
<p>Both methods allow your distance entries to be either newline separated
(<em>e.g.</em>, one mileage per line), comma separated, or a
combination of both.
<p> Note that this site can also be used to compute an author's
<a href='https://en.wikipedia.org/wiki/H-index'><em>h-index</em></a>.
<h2>Result</h2>
<p><span id='E'><em>no data entered...</em></span>
<h2>Input</h2>
<div class='tab-row'>
<button id='default-tab' class='tab' onclick='loadTab(event, "manual-tab")'>Manual Entry</button>
<button class='tab' onclick='loadTab(event, "file-tab")'>File Selection</button>
</div> <!-- tab-row -->
<div id='manual-tab' class='tab-content'>
<label for="text-input">Enter rides below:</label>
<textarea id="text-input" name="text-input"></textarea>
<button type="button" onclick="submitText();">Calculate!</button>
</div> <!-- manual-tab -->
<div id='file-tab' class='tab-content'>
<div class='file-input'>
<label for='file-input'>Select a file:</label>
<input type='file' id='file-input' name='file-input' accept='.dat,.txt'>
</div> <!-- file-input -->
</div> <!-- file-tab -->
<footer>
©2019 <a href='https://paul.egeler.us/'>Paul Egeler</a> |
<a href='https://github.com/pegeler/eddington2/tree/master/docs'>View source on Github</a> |
Licensed under <a href='https://github.com/pegeler/eddington2/blob/master/LICENSE'>GPL v3</a> |
NO WARRANTY
</footer>
</body>
</html>