changeset 0 | d970ebf37754 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/enmi12/glossaire/_includes/random-sizes.js Wed Nov 06 03:21:17 2013 +0000 @@ -0,0 +1,12 @@ + + // add randomish size classes + $container.find('.element').each(function(){ + var $this = $(this), + number = parseInt( $this.find('.number').text(), 10 ); + if ( number % 7 % 2 === 1 ) { + $this.addClass('width2'); + } + if ( number % 3 === 0 ) { + $this.addClass('height2'); + } + }); \ No newline at end of file