Skip to content

Instantly share code, notes, and snippets.

@lynnaloo
Forked from qwo/meetup.js
Created July 23, 2014 15:18
Show Gist options
  • Select an option

  • Save lynnaloo/a4ef2834b38efc09297f to your computer and use it in GitHub Desktop.

Select an option

Save lynnaloo/a4ef2834b38efc09297f to your computer and use it in GitHub Desktop.

Revisions

  1. Stanley Zheng revised this gist Jun 27, 2014. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions meetup.js
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    /* Simple Way to Raffle things off from Meetup*/

    var meetup = $(".member-name");
    var winners = [];
    $(meetup[Math.floor(Math.random() * meetup.length)]).text();

    $(meetup[Math.floor(Math.random() * meetup.length)]).text().trim();
  2. Stanley Zheng renamed this gist Jun 27, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. Stanley Zheng created this gist Jun 27, 2014.
    3 changes: 3 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    var meetup = $(".member-name");
    var winners = [];
    $(meetup[Math.floor(Math.random() * meetup.length)]).text();