-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
73 lines (70 loc) · 3.19 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/>
<link rel="stylesheet" href="custom.css">
<title>Days Counter</title>
</head>
<body>
<section class="section">
<div class="section1">
<!--<div><h5 class="center grey-text text-lighten-4">Days Counted</h5></div>-->
<div><h5 class="center grey-text text-lighten-4" id="monthday"></h5></div>
<div><h2 class="center grey-text text-lighten-4" id="total"></h2></div>
</div>
</section>
<section class="section grey lighten-3">
<div class="container">
<div class="row">
<form id="form">
<div class="row">
<div class="col s12 l12 offset-l1 center">
<div class="row">
<div class="input-field col s12 l3">
<input type="date" id="firstDateInput" onchange="rangeDays()">
<label for="icon-prefix">First Date</label>
</div>
<div class="input-field col s12 l3">
<input type="date" id="secondDateInput" onchange="rangeDays()">
<label for="icon-prefix">Second Date</label>
</div>
<div class="input-field col s12 l2">
<input type="number" id="daysInput" class="center-align">
</div>
<div class="col s12 l1">
<a class="btn-floating btn-large waves-effect waves-light" id="addBtn" ><i class="material-icons">check</i></a>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</section>
<section class="section">
<table class="striped centered grey lighten-2">
<thead>
<tr>
<th>First Date</th>
<th>Second Date</th>
<th>Number of Days</th>
<th>Delete</th>
</tr>
</thead>
<tbody id="tbodyTable">
<tr>
<td><span class="firstdate">22/02/2020</span></td>
<td><span class="secondDate">23/02/2020</span></td>
<td><span class="rangeDays">2</span></td>
<td><a class="btn-floating btn-large waves-effect waves-light" id="addBtn"><i class="material-icons">add</i></a></td>
</tr>
</tbody>
</table>
</section>
<script type="text/javascript" src="js/materialize.min.js"></script>
<script src="js/script.js"></script>
</body>
</html>