-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.html
38 lines (30 loc) · 1.41 KB
/
example.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
<html>
<head>
<script src="js/jquery-1.6.2.js" type="text/javascript"></script>
<script src="js/jquery-ui-1.8.16.custom.js" type="text/javascript"></script>
<script src="js/businessdayfilter.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="css/ui-lightness/jquery-ui-1.8.16.custom.css" />
<script>
$(document).ready(function() {
dateInput = $(".dateEntry");
var holidayList = [
{"holiday":{"name":"New Years Day","date":"1-2-2012"}},
{"holiday":{"name":"Martin Luther King Jr. Day","date":"1-18-2012"}},
{"holiday":{"name":"Presidents Day","date":"2-20-2012"}},
{"holiday":{"name":"Memorial Day","date":"5-28-2012"}},
{"holiday":{"name":"Indpendence Day","date":"7-4-2012"}},
{"holiday":{"name":"Labor Day","date":"9-3-2012"}},
{"holiday":{"name":"Columbus Day","date":"10-8-2012"}},
{"holiday":{"name":"Veterans Day","date":"11-12-2012"}},
{"holiday":{"name":"Thanksgiving Day","date":"11-22-2011"}},
{"holiday":{"name":"Christmas Day","date":"12-25-2012"}}
];
dateInput.datepicker().businessdayfilter({holidayList: holidayList, disableWeekends: true});
});
</script>
</head>
<body class="ui-state-default">
Please enter a date: <input class="dateEntry" type="text" style="width: 75px;">
Please enter a date: <input class="dateEntry" type="text" style="width: 75px;">
</body>
</html>