122 lines
3.0 KiB
HTML
122 lines
3.0 KiB
HTML
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Keyboard Navigation</title>
|
|
|
|
<link rel="stylesheet" type="text/css" href="../src/DateTimePicker.css" />
|
|
|
|
<script type="text/javascript" src="jquery-1.11.0.min.js"></script>
|
|
<script type="text/javascript" src="../src/DateTimePicker.js"></script>
|
|
|
|
<!--[if lt IE 9]>
|
|
<link rel="stylesheet" type="text/css" href="../src/DateTimePicker-ltie9.css" />
|
|
<script type="text/javascript" src="../src/DateTimePicker-ltie9.js"></script>
|
|
<![endif]-->
|
|
|
|
<style type="text/css">
|
|
|
|
p
|
|
{
|
|
margin-left: 20px;
|
|
}
|
|
|
|
input
|
|
{
|
|
width: 200px;
|
|
padding: 10px;
|
|
margin-left: 20px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<form>
|
|
|
|
<!------------------------ Date Picker ------------------------>
|
|
<p>Date : </p>
|
|
<input type="text" data-field="date" tabindex="1" readonly>
|
|
|
|
<!------------------------ Time Picker ------------------------>
|
|
<p>Time : </p>
|
|
<input type="text" data-field="time" tabindex="2" readonly>
|
|
|
|
<!---------------------- DateTime Picker ---------------------->
|
|
<p>DateTime : </p>
|
|
<input type="text" data-field="datetime" tabindex="3" readonly>
|
|
|
|
<!------------------------ Date Picker ------------------------>
|
|
<p>Date : </p>
|
|
<input type="text" data-field="date" data-min="01-10-2012" data-max="01-05-2015" tabindex="4" readonly>
|
|
|
|
<!------------------------ Time Picker ------------------------>
|
|
<p>Time : </p>
|
|
<input type="text" data-field="time" data-min="10:00" data-max="16:30" tabindex="5" readonly>
|
|
|
|
<!---------------------- DateTime Picker ---------------------->
|
|
<p>DateTime : </p>
|
|
<input type="text" data-field="datetime" data-min="01-10-2012 09:30" data-max="01-05-2015 17:30" tabindex="6" readonly>
|
|
|
|
</form>
|
|
|
|
<div id="dtBox"></div>
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function()
|
|
{
|
|
$("#dtBox").DateTimePicker({
|
|
|
|
buttonClicked: function(sButtonType, oInputElement)
|
|
{
|
|
console.log(sButtonType + " Button clicked on ");
|
|
console.log(oInputElement);
|
|
}
|
|
|
|
});
|
|
});
|
|
|
|
</script>
|
|
|
|
<!-- Default dateFormat: "dd-MM-yyyy"
|
|
|
|
dateFormat Options :
|
|
1. "dd-MM-yyyy"
|
|
2. "MM-dd-yyyy"
|
|
3. "yyyy-MM-dd"
|
|
|
|
Specify (data-min & data-max) / (minDate & maxDate) values in the same dateFormat specified in settings parameters
|
|
-->
|
|
|
|
<!-- Default timeFormat: "HH:mm"
|
|
|
|
timeFormat Options :
|
|
1. "HH:mm"
|
|
2. "hh:mm AA"
|
|
|
|
Specify (data-min & data-max) / (minTime & maxTime) values in the same timeFormat specified in settings parameters
|
|
-->
|
|
|
|
<!-- Default dateTimeFormat: "dd-MM-yyyy HH:mm:ss"
|
|
|
|
dateTimeFormat Options :
|
|
1. "dd-MM-yyyy HH:mm:ss"
|
|
2. "dd-MM-yyyy hh:mm:ss AA"
|
|
3. "MM-dd-yyyy HH:mm:ss"
|
|
4. "MM-dd-yyyy hh:mm:ss AA"
|
|
5. "yyyy-MM-dd HH:mm:ss"
|
|
6. "yyyy-MM-dd hh:mm:ss AA"
|
|
|
|
Specify (data-min & data-max) / (minDateTime & maxDateTime) values in the same dateTimeFormat specified in settings parameters
|
|
-->
|
|
|
|
</body>
|
|
|
|
</html> |