aboutsummaryrefslogtreecommitdiffstats
path: root/library/fullcalendar/gcal.min.js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-12-30 10:18:05 +0100
committerMario Vavti <mario@mariovavti.com>2016-12-30 10:18:05 +0100
commitc9cbd2f4f6cb432c6558bd88d783b356f0311a09 (patch)
treedda4a64fefab7be0eea83aff839ce31b650baeee /library/fullcalendar/gcal.min.js
parent90a99fc2213bc498bb11df4f4afe0f7bbe391dd0 (diff)
downloadvolse-hubzilla-c9cbd2f4f6cb432c6558bd88d783b356f0311a09.tar.gz
volse-hubzilla-c9cbd2f4f6cb432c6558bd88d783b356f0311a09.tar.bz2
volse-hubzilla-c9cbd2f4f6cb432c6558bd88d783b356f0311a09.zip
update fullcalendar to version 3.1
Diffstat (limited to 'library/fullcalendar/gcal.min.js')
-rw-r--r--library/fullcalendar/gcal.min.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/library/fullcalendar/gcal.min.js b/library/fullcalendar/gcal.min.js
new file mode 100644
index 000000000..08876848f
--- /dev/null
+++ b/library/fullcalendar/gcal.min.js
@@ -0,0 +1,6 @@
+/*!
+ * FullCalendar v3.1.0 Google Calendar Plugin
+ * Docs & License: http://fullcalendar.io/
+ * (c) 2016 Adam Shaw
+ */
+!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){function a(a,t,d,c,i){function s(o,r){var l=r||[{message:o}];(a.googleCalendarError||e.noop).apply(i,l),(i.options.googleCalendarError||e.noop).apply(i,l),n.warn.apply(null,[o].concat(r||[]))}var u,g,p=r+"/"+encodeURIComponent(a.googleCalendarId)+"/events?callback=?",m=a.googleCalendarApiKey||i.options.googleCalendarApiKey,f=a.success;return m?(t.hasZone()||(t=t.clone().utc().add(-1,"day")),d.hasZone()||(d=d.clone().utc().add(1,"day")),c&&"local"!=c&&(g=c.replace(" ","_")),u=e.extend({},a.data||{},{key:m,timeMin:t.format(),timeMax:d.format(),timeZone:g,singleEvents:!0,maxResults:9999}),e.extend({},a,{googleCalendarId:null,url:p,data:u,startParam:!1,endParam:!1,timezoneParam:!1,success:function(a){var r,n,t=[];if(a.error)s("Google Calendar API: "+a.error.message,a.error.errors);else if(a.items&&(e.each(a.items,function(e,a){var r=a.htmlLink||null;g&&null!==r&&(r=o(r,"ctz="+g)),t.push({id:a.id,title:a.summary,start:a.start.dateTime||a.start.date,end:a.end.dateTime||a.end.date,url:r,location:a.location,description:a.description})}),r=[t].concat(Array.prototype.slice.call(arguments,1)),n=l(f,this,r),e.isArray(n)))return n;return t}})):(s("Specify a googleCalendarApiKey. See http://fullcalendar.io/docs/google_calendar/"),{})}function o(e,a){return e.replace(/(\?.*?)?(#|$)/,function(e,o,r){return(o?o+"&":"?")+a+r})}var r="https://www.googleapis.com/calendar/v3/calendars",n=e.fullCalendar,l=n.applyAll;n.sourceNormalizers.push(function(e){var a,o=e.googleCalendarId,r=e.url;!o&&r&&(/^[^\/]+@([^\/\.]+\.)*(google|googlemail|gmail)\.com$/.test(r)?o=r:((a=/^https:\/\/www.googleapis.com\/calendar\/v3\/calendars\/([^\/]*)/.exec(r))||(a=/^https?:\/\/www.google.com\/calendar\/feeds\/([^\/]*)/.exec(r)))&&(o=decodeURIComponent(a[1])),o&&(e.googleCalendarId=o)),o&&(null==e.editable&&(e.editable=!1),e.url=o)}),n.sourceFetchers.push(function(e,o,r,n){if(e.googleCalendarId)return a(e,o,r,n,this)})}); \ No newline at end of file