Skip to content

Commit

Permalink
refactor: use fluidvids to remove jquery dependancy for responsive vi…
Browse files Browse the repository at this point in the history
…deos. fix #59
  • Loading branch information
sayanee committed Dec 18, 2014
1 parent 830d2c3 commit 9bbaa82
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Expand Up @@ -84,6 +84,6 @@ PLATFORMS
ruby

DEPENDENCIES
compass
compass (= 1.0.1)
jekyll (= 2.3.0)
tmuxinator (= 0.6.9)
3 changes: 1 addition & 2 deletions Gruntfile.js
Expand Up @@ -22,8 +22,7 @@ module.exports = function(grunt) {
production: {
files: {
'script.js': [
'js/lib/jquery/dist/jquery.min.js',
'js/lib/fitvids/jquery.fitvids.js',
'js/lib/fluidvids/dist/fluidvids.min.js',
'js/script.js'
]
}
Expand Down
3 changes: 1 addition & 2 deletions bower.json
Expand Up @@ -19,7 +19,6 @@
"js/lib"
],
"dependencies": {
"fitvids": "1.1.0",
"jquery": "2.1.1"
"fluidvids": "2.4.1"
}
}
5 changes: 4 additions & 1 deletion js/script.js
Expand Up @@ -24,6 +24,9 @@
}

// responsive video
$("#video").fitVids();
fluidvids.init({
selector: ['iframe'],
players: ['www.youtube.com', 'player.vimeo.com']
});

})();
4 changes: 1 addition & 3 deletions script.js

Large diffs are not rendered by default.

0 comments on commit 9bbaa82

Please sign in to comment.