-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
73 lines (60 loc) · 1.28 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
<html>
<body>
<style>
body{
background: wheat;
}
.input{
display:inline-block;
}
.result{
display:inline-block
}
.version{
bottom: 2;
right: 2;
position: absolute;
}
</style>
<h1>Calculate time strings here:</h1>
<table>
<tr>
<td>
<div class='input'>
Input hours:
<br>
<input class='dates_input' id='dates_input' value="12:47-16:34" oninput=parse_dates(this.value)>
<button onclick="this.previousElementSibling.value='';parse_dates()">X</button>
<input type=button value=">" onclick="calculate_dates()">
<br>
Parsed data: <div class='parsed_value'>12:47-16:34</div>
<br>
One big string:
<br>
<input class='date_string' id='date_string' value="15:15 - 21 :14,08:11-11:52">
<button onclick="this.previousElementSibling.value='';">X</button>
<input type=button value=">" onclick="parse_date_string()">
</div>
</td>
<td class='result'>
<div class='stack'>
Result:
<br>
<input class='calculated_input' id='calculated_input' value="" >
<button onclick="javascript:calculated_input.value=''">X</button>
<input type=button value="V" onclick="add_more_dates()">
<br>
</div>
<br>
Total:
<br>
<input class='total' id='total' value="" >
<input type=button value="<" onclick="calculate_total()">
<br>
</td>
</tr>
</table>
<p class=version>v</p>
</body>
<script src='./script.js'></script>
</html>