Skip to content

Commit b19e12f

Browse files
committed
replaces calendar widget with fullcalendar.io JS widget
1 parent f35aed0 commit b19e12f

File tree

7 files changed

+26
-1
lines changed

7 files changed

+26
-1
lines changed

Gemfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
source 'https://rubygems.org'
2+
gem 'bundler', '>= 1.7.0'
3+
24
gem 'jekyll'
35
gem 'jekyll-assets'
46
gem 'uglifier'
@@ -9,4 +11,10 @@ gem 'rake'
911
gem 'rake-jekyll'
1012
gem 'html-proofer'
1113

14+
group :rails_assets do
15+
gem 'rails-assets-jquery'
16+
gem 'rails-assets-moment'
17+
gem 'rails-assets-fullcalendar'
18+
end
19+
1220
gem 'wdm', '~> 0.1.0' if Gem.win_platform?

_assets/javascripts/main.js.coffee

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
//= require jquery
2+
//= require moment
3+
//= require fullcalendar
4+
//= require fullcalendar/gcal
5+
//= require_tree ./plugins
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
$(document).on('ready page:load', function () {
2+
$('#calendar').fullCalendar({
3+
googleCalendarApiKey: 'AIzaSyBAT20M7J1v1Z4HAJx246OB6a1CN-G3Afo',
4+
events: {
5+
googleCalendarId: '[email protected]'
6+
}
7+
});
8+
});

_assets/stylesheets/main.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ $on-laptop: 800px;
4343

4444
@import
4545
"bootstrap",
46+
"fullcalendar",
4647
"base",
4748
"layout",
4849
"syntax-highlighting"

_includes/head.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@
1010

1111
{% stylesheet main %}
1212
{% javascript turbolinks %}
13+
{% javascript main %}
14+
1315
</head>

_plugins/ext.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
require "jekyll-assets"
22
require "jekyll-assets/bootstrap"
3+
require "jekyll-assets/rails-assets"

calendar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
<div class="calendar">
88

9-
<iframe src="https://www.google.com/calendar/embed?showTitle=0&amp;height=600&amp;wkst=1&amp;bgcolor=%23FFFFFF&amp;src=ra5695ol5jtr1hdaio1855jlm8%40group.calendar.google.com&amp;color=%2328754E&amp;ctz=America%2FLos_Angeles" style=" border-width:0 " width="800" height="600" frameborder="0" scrolling="no"></iframe>
9+
<div id='calendar'></div>
1010

1111
</div>

0 commit comments

Comments
 (0)