Skip to content

Instantly share code, notes, and snippets.

@psflannery
Created October 18, 2013 16:17
Show Gist options
  • Save psflannery/7043939 to your computer and use it in GitHub Desktop.
Save psflannery/7043939 to your computer and use it in GitHub Desktop.
$(document).ready(function () {
WebFontConfig = {
google: {
families: ['Chivo']
},
active: function() {
$('#archive').imagesLoaded(function(){
$('#archive').masonry({
itemSelector : '.item',
columnWidth: 333,
gutterWidth: 10
});
});
}
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
'://ajax.googleapis.com/ajax/libs/webfont/1.4.2/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(wf, s);
})();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment