UNPKG
jqbuild
Version:
latest (0.1.0)
0.1.0
A command line build tool for jQuery plugins.
github.com/cowboy/node-jqbuild
cowboy/node-jqbuild
jqbuild
/
examples
/
custom-banner
/
dist
/
jquery.ba-random.min.js
3 lines
•
239 B
JavaScript
View Raw
1
2
3
// jQuery Random - v0.1.0 - http://benalman.com/
// Copyright (c) 2011 Ben Alman; Licensed MIT, GPL
(
function
(
$
){$.fn.
random
=
function
(
a
){
var
b=a?
this
.
filter
(a):
this
;
return
this
.
pushStack
(b.
eq
(
Math
.
floor
(
Math
.
random
()*b.
length
)))}})(jQuery)