You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

41 lines
651 B

semantic.card = {};
// ready event
semantic.card.ready = function() {
// selector cache
var
$card = $('.ui.product.cards .card, .ui.product.card, .ui.idea.cards .card, .ui.idea.card'),
handler
;
handler = {
randomProgress: function(index) {
var $this = $(this);
setTimeout(function() {
$this
.find('.bar')
.css('width', Math.floor(Math.random() * 100) + '%')
;
}, index * 200);
}
};
$.api.settings.api = {
vote : '/api.json',
follow : '/api.json'
};
$card
.card()
;
};
// attach ready event
$(document)
.ready(semantic.card.ready)
;