Sha256: e75d733e671d7f4890dedcbf09d9393cba6633dc1106f7ebc772c0073aa5cab9
Contents?: true
Size: 1.14 KB
Versions: 4
Compression:
Stored size: 1.14 KB
Contents
//= require modernizr //= require jquery //= require jquery_ujs //= require jquery.masonry //= require jquery.masonry-extensions //= require pusher //= require corkboard/base //= require_tree ./corkboard/lib //= require_tree ./corkboard/app (function($, corkboard) { // Corkboard properties pulled from the server. Client-side definitions // should go in `corkboard/base.js`, to ensure availability and keep this // file clean. // // TODO: consider something like `gon`, rather than making this file `erb`. $.extend(corkboard, { version : '<%= Corkboard::VERSION %>', config : function config(key) { return corkboard.config[key] || corkboard.defaults[key]; } }); $.extend(corkboard.config, { pusher : '<%= Pusher.key %>', weights : <%= Corkboard.presentation[:weights].to_json %> }); // Define jQuery.fn.corkboard $.fn.extend({ // corkboard : $.corkboard.Board corkboard : function corkboard() { this.each(function() { new $.corkboard.Board($(this)); }); return this; } }); $(function() { $('article.corkboard').corkboard(); }); })(jQuery, jQuery.corkboard);
Version data entries
4 entries across 4 versions & 1 rubygems