Sha256: d1d3fe446fe948593a7fe5f7e588f721a6433b7108fc39bd8674a6d4437dc8ac
Contents?: true
Size: 807 Bytes
Versions: 3
Compression:
Stored size: 807 Bytes
Contents
//= require 'spotlight/blocks/multi_up_item_grid.js' SirTrevor.Blocks.ItemFeatures = (function(){ return SirTrevor.Blocks.MultiUpItemGrid.extend({ type: "item-features", title: function() { return "Featured Items"; }, icon_name: "item-features", description: "This widget displays one to five thumbnail images of repository items in a slideshow." }); })();; (function($){ // Plugin definition $.fn.featuredItemsCarousel = function(options) { var indicators = $(this).find('.slideshow-indicators li'); indicators.each(function(){ $(this).on('click', function(){ indicators.removeClass("active"); $(this).addClass("active"); }); }); }; Spotlight.onLoad(function(){ $('.item-features').featuredItemsCarousel(); }); })(jQuery);
Version data entries
3 entries across 3 versions & 1 rubygems