-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
79 lines (72 loc) · 2.51 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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Date Picker</title>
<link rel="stylesheet" href="bootstrap-3.3.6/css/bootstrap.min.css" />
<link rel="stylesheet" href="font-awesome-4.5.0/css/font-awesome.min.css" />
</head>
<body>
<button class="btn btn-warning backBtn" style="display:none" onclick="showCalendar()">Back</button>
<div class="selectedDate alert alert-success" style="display:none"></div>
<!--<input id="date-input" />-->
<div class="js-date-picker">
<div class="container">
<div class="btn-group btn-group-justified">
<div class="btn btn-default" onclick="previousMonth()"><i class="fa fa-angle-left"></i></div>
<div class="btn-group">
<button class="btn btn-default displayMonth" onclick="displayMonthCal()"></button>
</div>
<div class="btn-group ">
<button class="btn btn-default displayYear" onclick="displayYearCal()"></button>
</div>
<div class="btn btn-default" onclick="nextMonth()"><i class="fa fa-angle-right"></i></div>
</div>
</div>
<div class="container">
<table class="table table-stripe js-dates">
<thead>
<tr>
<th>Sun</th>
<th>Mon</th>
<th>Tue</th>
<th>Wen</th>
<th>Thr</th>
<th>Fri</th>
<th>Sat</th>
</tr>
</thead>
</table>
</div>
</div>
<style>
.js-date-picker {
max-width: 330px;
margin: 10px;
border: 1px solid #dddddd;
}
.js-date-picker .container {
max-width: 100%;
}
.js-date-picker .container {
padding: 0;
}
.js-date-picker .table {
margin: 0;
text-align: center;
}
.js-date-picker .date--cell {
cursor: pointer;
}
.js-date-picker .date--cell:hover {
background: #f2f2f2;
}
.today {
background: #ffd800;
}
.js-date-picker .monthCalendar thead, .js-date-picker .yearCalendar thead {
display: none;
}
</style>
<script src="calendar.js"></script>
</body>
</html>