Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new event date type #7

Open
wants to merge 1 commit into
base: boot3
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ Event object

- date(string):
- "17/8/1989"
- "09/09/2014"
- "09/9/2014"
- "09/12/2014"
- title (string)
- "Event Barberà"
- link (string)
Expand Down
24 changes: 24 additions & 0 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,30 @@
displayMonthController: true,
displayYearController: true,
nMonths: 6
},
{
date: "02/11/2014",
title: 'SPORT & WELLNESS',
link: 'http://bic.cat',
linkTarget: '_blank',
color: '',
content: '<img src="http://gettingcontacts.com/upload/jornadas/sport-wellness_portada.png" ><br>06-11-2013 - 09:00 <br> Tecnocampus Mataró Auditori',
class: '',
displayMonthController: true,
displayYearController: true,
nMonths: 6
},
{
date: "02/09/2014",
title: 'SPORT & WELLNESS',
link: 'http://bic.cat',
linkTarget: '_blank',
color: '',
content: '<img src="http://gettingcontacts.com/upload/jornadas/sport-wellness_portada.png" ><br>06-11-2013 - 09:00 <br> Tecnocampus Mataró Auditori',
class: '',
displayMonthController: true,
displayYearController: true,
nMonths: 6
}
];

Expand Down
9 changes: 9 additions & 0 deletions js/bic_calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ $.fn.bic_calendar = function(options) {
var calendarId = "bic_calendar";

var events = opts.events;

// change dates 02/11/2014 to 2/11/2014
$.each(events, function(k, v) {
var array = v.date.split('/');
var d = parseInt(array[0]);
var m = parseInt(array[1]);
v = d + '/' + m +'/'+ array[2];
events[k].date = v;
});

//Date obj to calc the day
var objFecha;
Expand Down
4 changes: 2 additions & 2 deletions js/bic_calendar.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.