Пример #1
0
Front.prototype.init = function() {
  this.$agendaContainer = $('#agenda-items');
  this.$agendaItem = $('#agenda-tpl');
  this.$error = $('#agenda-error');

  this.calendarth = calendarth({
    apiKey: 'AIzaSyC75rnKyEkGxmVyG7hlqFicwPBgDmQLN_w',
    calendarId: '2ul10sd9g30mnk1vpmcnnp5qv4@group.calendar.google.com',
    maxResults: 12
  });

  this.calendarth.fetch(this._handleCalResult.bind(this));

};
Пример #2
0
Front.prototype.init = function() {
  this.$agendaContainer = $('#agenda-items');
  this.$agendaItem = $('#agenda-tpl');
  this.$error = $('#agenda-error');

  this.calendarth = calendarth({
    apiKey: window.serv.calendarApiKey,
    calendarId: window.serv.callendarId,
    maxResults: 12
  });

  this.calendarth.fetch(this._handleCalResult.bind(this));

  this._fixPanels();
};
Пример #3
0
Front.prototype.init = function () {
  this.$agendaContainer = $('#agenda-items');
  this.$agendaItem = $('#agenda-tpl');
  this.$error = $('#agenda-error');
  this.calendarth = calendarth({
    apiKey: window.serv.calendarApiKey,
    calendarId: window.serv.callendarId,
    maxResults: 12
  });

  if (serv.calendarStyle === 'roots') {
    this.calendarth.fetch(this._handleCalResult.bind(this));
  }

  $('body').on('click', '.show-map', this._showMapModal);
};