Created
April 10, 2014 15:23
-
-
Save kadamwhite/10393629 to your computer and use it in GitHub Desktop.
Bar Code generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('body').append('<div class="container"></div>'); | |
_.times(10, function() { | |
_.times(100, function(){ | |
var $div = $('<div/>'); | |
$div.addClass('line'); | |
var rand = Math.random(); | |
if (rand < 0.33) { | |
$div.addClass('left'); | |
} else if (rand > .67) { | |
$div.addClass('right'); | |
} | |
$('.container').append($div); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment