-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
84 lines (77 loc) · 2.98 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<title>Time to WIN</title>
<link rel="shortcut icon" type="image/png" href="https://avatars.githubusercontent.com/heikoengel?s=64"/>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-12" align="center">
<h1>Time to WIN</h1>
</div>
</div>
<div class="row">
<div class="col-md-8 form-group">
<label for="exampleFormControlTextarea1">Enter time ranges:</label>
<textarea class="form-control" id="times" rows="5"
placeholder="9:00 - 12:00 13:00 - now"></textarea>
<button type="button" class="btn btn-primary"
id="btn-update">Update</button>
</div>
<div class="col-md-4">
<div class="alert alert-warning" id="error-message"
role="alert" style="display:none"></div>
</div>
</div>
<div class="row py-3">
<div class="col-md-12">
<table class="table table-striped">
<thead>
<th scope="col">Time range</th>
<th scope="col">Time Delta (hh:mm)</th>
<th scope="col">Time Delta (h)</th>
</thead>
<tbody id="results-table">
</tbody>
</table>
</div>
<div class="col-md-12 alert alert-info" id="result-message"
role="alert" style="display:none">
</div>
</div>
<div class="row py-3">
<div class="col-md-12">
<div class="card">
<div class="card-body">
<h5 class="card-title">How it works</h5>
<p class="card-text"><i>Time to WIN</i> calculates the total
time from a given list of time ranges, automatically
subtracting breaks:</p>
<ul>
<li> 15 min between 9:15 and 9:30</li>
<li> 30 min between 12:00 and 13:00.</li>
</ul>
<p class="card-text">Timestamps are expected in the
format <code>hh:mm</code>, or <code>now</code> for
the current time. Timestamps and ranges have to be
ordered in time.</p>
<p class="card-text">All calculations are done in the
browser, no input data is sent to remote servers.</p>
</div>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="container text-center">
<a href="https://github.com/heikoengel/timetowin">
<img src="img/GitHub-Mark-32px.png"/></a>
</div>
</footer>
<script src="js/timetowin.js"></script>
</body>
</html>