andythsu / holidays

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

holidays

holiday_lib.php returns a JSON object containing holiday names and dates. It is a library and can be used directly

holiday.php is a php class and has functions to create holidays, get holidays, and verify holidays

holiday.js has function that extracts data from holiday_lib using ajax async technique and initializes holidays in JSON format

Sample:

<?php
$holidays = new Holiday();
?>
var holidays = <?php echo $holidays ?>;
 $.each(holidays,function(key,value){
   $("body").append(key + ": " + value + "<br>");
});

About


Languages

Language:PHP 90.8%Language:JavaScript 9.2%