-
Notifications
You must be signed in to change notification settings - Fork 0
/
datetimepicker.html
82 lines (76 loc) · 2.81 KB
/
datetimepicker.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
<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>Datetimepicker Component Sample</title>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="css/j-components.css">
<style>
body{
padding: 64px;
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-sm-4">
<div class="bordered box shadow display-table full-width">
<strong>Default</strong>
<input type="text" class="datepicker" placeholder="Select date now...">
</div>
</div>
</div>
<br>
<div class="row">
<div class="col-sm-4">
<div class="bordered box shadow display-table full-width">
<strong>With Format</strong>
<input type="text" class="datepicker" placeholder="Select date now..." data-format="YYYY/MM/DD">
</div>
</div>
</div>
<br>
<div class="row">
<div class="col-sm-4">
<div class="bordered box shadow display-table full-width">
<strong>With Past Years</strong>
<input type="text" class="datepicker" placeholder="Select date now..." data-format="DD-MM-YYYY">
</div>
</div>
</div>
<br>
<div class="row">
<div class="col-sm-4">
<div class="bordered box shadow display-table full-width">
<strong>With Future Date where date-future="10" is the number of interation onwards</strong>
<input type="text" class="datepicker future" placeholder="Select date now..." data-future="10">
</div>
</div>
</div>
<br>
<div class="row">
<div class="col-sm-4">
<div class="bordered box shadow display-table full-width">
<strong>Timepicker</strong>
<input type="text" class="timepicker" placeholder="Select time now...">
</div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.1/moment.min.js"></script>
<script src="js/helpers.js"></script>
<script src="js/datepicker.js"></script>
<script src="js/timepicker.js"></script>
<script>
$(function(){
$('.datepicker').datepicker();
$('.timepicker').timepicker();
});
</script>
</body>
</html>