forked from mmistakes/minimal-mistakes
-
Notifications
You must be signed in to change notification settings - Fork 1
/
meeting-calendar.html
53 lines (46 loc) · 2.16 KB
/
meeting-calendar.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Calendar - demo</title>
<link href="/assets/css/zabuto_calendar.min.css" rel="stylesheet" >
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous" >
<script src="https://code.jquery.com/jquery-2.2.4.js"
integrity="sha256-iT6Q9iMJYuQiMWNd9lDyBUStIq/8PuOW33aOqmvFpqI=" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
crossorigin="anonymous"></script>
<script src="/assets/js/zabuto_calendar.min.js"></script>
<script src="/assets/js/date.min.js"></script>
<script>
$(document).ready(function() {
var nextMeetingDate;
var lastMeetingDate;
var futureMeetingDate;
var this_month_meeting_date;
var next_month_meeting_date;
var previous_month_meeting_date;
(function calculateNextMeetingDate() {
var candidate_date = Date.today().second().saturday();
var today_date = Date.today();
//var meeting_remains_this_month = candidate_date.compareTo(today_date);
this_month_meeting_date = Date.today().second().saturday().toString("yyyy-MM-dd");
next_month_meeting_date = Date.today().next().month().second().saturday().toString("yyyy-MM-dd");
previous_month_meeting_date = Date.today().previous().month().second().saturday().toString("yyyy-MM-dd");
})();
(function meetingCalendarWidget() {
var data = [ {"date": previous_month_meeting_date, "badge": true, "title":"Monthly Meeting" }, {"date": next_month_meeting_date, "badge":true, "title":"Monthly Meeting" }, {"date": this_month_meeting_date , "badge": true, "title":"Monthly Meeting" }, ];
$("#meeting-calendar").zabuto_calendar({
today: true,
data: data
});
})();
});
</script>
</head>
<body>
<div id="meeting-calendar"/>
</body>
</html>