On Apr 3, 9:49 am, ab5tract <[EMAIL PROTECTED]> wrote:
> Thank you so much man. I really appreciate it, even if I don't
> understand the single-line glory of
>
>set.push(dat.splice(Math.random()*dat.length|0, 1));
set.push(...)
Calls the push method of set, which is an array, with the
resu
Thank you so much man. I really appreciate it, even if I don't
understand the single-line glory of
set.push(dat.splice(Math.random()*dat.length|0, 1));
It is pure JavaScript. I assume there is no "better" way to use jQuery?
On Apr 1, 9:36 am, ab5tract <[EMAIL PROTECTED]> wrote:
> Problem:
> I am creating a "teaser page" for a site that is coming soon. We have
> a list of 20 sentences that describe the site. We want to select 5 of
> those, at random and without redundancy, and display them in a div.
> The display pa
3 matches
Mail list logo