diff bootstrap-year-calendar/index.html @ 103:4043aaa41075

add bootstrap-year-calendar
author paulo
date Thu, 07 Mar 2019 00:52:02 -0800
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/bootstrap-year-calendar/index.html	Thu Mar 07 00:52:02 2019 -0800
     1.3 @@ -0,0 +1,25 @@
     1.4 +<html>
     1.5 +    <head>
     1.6 +        <link rel="stylesheet" type="text/css" href="bootstrap.min.css">
     1.7 +        <link rel="stylesheet" type="text/css" href="bootstrap-year-calendar.min.css">
     1.8 +    </head>
     1.9 +    <body>
    1.10 +        <script src="jquery-1.10.min.js"></script>
    1.11 +        <script src="bootstrap.min.js"></script>
    1.12 +        <script src="bootstrap-year-calendar.min.js"></script>
    1.13 +
    1.14 +        <div id="calendar"></div>
    1.15 +    </body>
    1.16 +
    1.17 +<script>
    1.18 +$("#calendar").calendar({
    1.19 +    customDayRenderer: function(cellContent, currentDate) {
    1.20 +        var todayDateString = (new Date()).toDateString();
    1.21 +        if (currentDate.toDateString() == todayDateString) {
    1.22 +            cellContent.css('background', '#EEE');
    1.23 +        }
    1.24 +    }
    1.25 +});
    1.26 +</script>
    1.27 +
    1.28 +</html>