palitday
Version:
Pikaday with Buddhist calendar support
34 lines (29 loc) • 798 B
HTML
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
<title>Palitday</title>
<meta name="author" content="David Bushell">
<link rel="stylesheet" href="css/palitday.css">
<link rel="stylesheet" href="css/site.css">
</head>
<body>
<h1>Palitday</h1>
<label for="datepicker">Date:</label>
<br>
<input type="text" id="datepicker">
<script src="palitday.js"></script>
<script>
var picker = new Palitday(
{
field: document.getElementById('datepicker'),
firstDay: 1,
minDate: new Date(),
maxDate: new Date(2020, 12, 31),
yearRange: [2000,2020],
nuchYearFormat: ['BE', 'AD']
});
</script>
</body>
</html>