Important Rules

View previous topic View next topic Go down

Important Rules Empty Important Rules

Post by KendrisX Thu Aug 25, 2016 10:32 am

Be respectful on the forum.
avatar
KendrisX
Administrator

Posts : 12
Join date : 2016-07-27

Back to top Go down

Important Rules Empty Re: Important Rules

Post by Foru Tue Sep 20, 2016 7:03 am

Code:
var number_of_groups = 3,
  i,
  name = "Vesper"; // _userdata.username;

for (i = 0; i < number_of_groups; i++) {
  
  (function(groupID) {
    $.get('/g' + groupID + '-', function(group) {
      var members = [],
        j;

      $(group).find('tr[class]:not(.row3) td:nth-child(2)').each(function() {
        members.push($(this).text());
      });

      for (j = 0; j < members.length; j++) {
        if (name == members[j]) {
          alert(members[j] + ' was found in /g' + groupID);
          break;
        }
      }
    });

  }(i + 1));
}
avatar
Foru
Administrator

Posts : 11
Join date : 2016-07-27

https://foru.board-directory.net

Back to top Go down

View previous topic View next topic Back to top


 
 

Permissions in this forum:

You cannot reply to topics in this forum