[604] | 1 | <!DOCTYPE html> |
---|
| 2 | <html lang="en"> |
---|
| 3 | <head> |
---|
| 4 | <title>Calendar - Customized Days</title> |
---|
| 5 | <meta charset="utf-8" /> |
---|
| 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> |
---|
| 7 | <meta name="description" content="" /> |
---|
| 8 | <meta name="keywords" content="" /> |
---|
| 9 | <meta name="author" content="ComponentOne" /> |
---|
| 10 | |
---|
| 11 | <link href="../../themes/rocket/jquery-wijmo.css" rel="stylesheet" type="text/css" /> |
---|
| 12 | |
---|
| 13 | <script src="../../external/jquery-1.8.0.min.js" type="text/javascript"></script> |
---|
| 14 | <script src="../../external/jquery-ui-1.8.23.custom.min.js" type="text/javascript"></script> |
---|
| 15 | <link href="../../themes/wijmo/jquery.wijmo.wijcalendar.css" rel="stylesheet" type="text/css"/> |
---|
| 16 | <script src="../../external/globalize.min.js" type="text/javascript"></script> |
---|
| 17 | <script src="../../wijmo/jquery.wijmo.wijpopup.js" type="text/javascript"></script> |
---|
| 18 | <script src="../../wijmo/jquery.wijmo.wijcalendar.js" type="text/javascript"></script> |
---|
| 19 | |
---|
| 20 | <script type="text/javascript"> |
---|
| 21 | $(function () { |
---|
| 22 | $("#calendar1").wijcalendar( |
---|
| 23 | { |
---|
| 24 | displayDate: new Date('2010/12/1'), |
---|
| 25 | customizeDate: function($daycell, date, dayType, hover, preview){ |
---|
| 26 | if (date.getMonth() === 11 && date.getDate() === 24){ |
---|
| 27 | var $img = $('<div></div>').width(16).height(16).css('background-image', 'url(http://cdn.wijmo.com/images/xmas.png)'); |
---|
| 28 | |
---|
| 29 | $daycell.attr('align', 'right').empty().append($img); |
---|
| 30 | |
---|
| 31 | if ($daycell.hasClass('ui-datepicker-current-day')) { |
---|
| 32 | $daycell.css('background-color', '#aaa'); |
---|
| 33 | }else |
---|
| 34 | $daycell.css('background-color', hover ? 'lightgray' : ''); |
---|
| 35 | return true; |
---|
| 36 | } |
---|
| 37 | |
---|
| 38 | return false; |
---|
| 39 | } |
---|
| 40 | } |
---|
| 41 | ); |
---|
| 42 | }); |
---|
| 43 | </script> |
---|
| 44 | </head> |
---|
| 45 | |
---|
| 46 | <body class="demo-single"> |
---|
| 47 | <div class="container"> |
---|
| 48 | <div class="header"> |
---|
| 49 | <h2>Overview</h2> |
---|
| 50 | </div> |
---|
| 51 | <div class="main demo"> |
---|
| 52 | <!-- Begin demo markup --> |
---|
| 53 | <div id="calendar1"></div> |
---|
| 54 | <!-- End demo markup --> |
---|
| 55 | <div class="demo-options"> |
---|
| 56 | <!-- Begin options markup --> |
---|
| 57 | |
---|
| 58 | <!-- End options markup --> |
---|
| 59 | </div> |
---|
| 60 | </div> |
---|
| 61 | <div class="footer demo-description"> |
---|
| 62 | <p></p> |
---|
| 63 | </div> |
---|
| 64 | </div> |
---|
| 65 | </body> |
---|
| 66 | |
---|
| 67 | </html> |
---|