11/26 - Scarves Saturday!

Have you nominated a November Crowd Pleaser yet?


  • Total voters
    29
  • Poll closed .
Status
Not open for further replies.

Kadauchi

Well-Known Member
Master Pleaser
Crowd Pleaser
Joined
Jan 12, 2016
Messages
7,098
Reaction score
21,951
Points
1,263
what do you mean?
I know very little in this type of language
Here, I will try to make this as easy to understand as possible.
Code:
// This is your "counter" variable
let idx = 0;

// This adds a listener when you press a key.
document.addEventListener('keydown', (e) => {
  switch (e.which) {
      // If the 1 (case 49) key or Numpad1 (case 97) key are pressed.
    case 49: case 97:

      // Everything is zero indexed, so the first radio is 0, the second is 1 and so on.
      // $(':even') will get all of the radios that are 0,2,4,6.... So being zero indexed means..
      // it will choose the 1st, 3rd, 5th, 7th....
      // .eq(idx ++) will choose which of the :even radios, so $(':radio:even').eq(2) will choose the 5th radio.
      // .click() will click on the element.
      // So we are getting all of the even radios, then choosing which we want out of those and clicking it, then adding +1 to the index.
      $(':radio:even').eq(idx ++).click();

      // This will focus the next radio, scrolling the page if necessary
      $(':radio:even').eq(idx).focus();
      break;
      // If the 2 (case 50) key or Numpad2 (case 98) key are pressed.
    case 49: case 97:
      // Same as above, but odds instead of evens.
      $(':radio:odd').eq(idx ++).click();

      // This will focus the next radio, scrolling the page if necessary
      $(':radio:even').eq(idx).focus();
      break;
    default: return;
  }
});
 
  • Like
Reactions: mTurk8705

SweetiePuff

No Lifer
Contributor
Crowd Pleaser
HIT Poster
Joined
Oct 10, 2016
Messages
19,283
Reaction score
34,574
Points
1,838
Location
Jersey Girl
Gender
Female
Spent my whole day hanging lights on my house and now all the 5's are MIA!!!!

But bring your kids here, they will love it, the inside is even better.


that looks loverly!
 
  • Like
Reactions: Liz

Jaded

The real themildone
Administrator
Joined
Jan 10, 2016
Messages
46,617
Reaction score
123,835
Points
1,414
Age
123
Gender
Female
(I'm not really going to ignore the computer being weird, I just have to wait for fiance to wake up.)
 
  • Like
Reactions: Kerek

Kerek

Red Cat-Bear
Contributor
Crowd Pleaser
Joined
Jan 12, 2016
Messages
64,954
Reaction score
145,468
Points
2,088
Gender
Male
(I'm not really going to ignore the computer being weird, I just have to wait for fiance to wake up.)
(I was serious about ignoring it until it happens again, but that doesn't mean not telling him)
 
  • Like
Reactions: Cmoney and Jaded

MindNumbing

Well-Known Member
Contributor
Joined
Jan 12, 2016
Messages
5,971
Reaction score
10,565
Points
1,013
Gender
Female
Title: Categorize 1000 personal interests | PANDA
Requester: EdAdapt [AB8LI3IISIFVU] (TO)
TO Ratings:
★★★★★ 3.89 Communicativity
★★★★★ 3.32 Generosity
★★★★ 4.94 Fairness
★★★★ 4.89 Promptness
Number of Reviews: 95 | TOS Flags: 4
Submit a new TO review
Description: You will fill in a survey asking you to categorize 1000 personal interests.
Time: 12 hours
HITs Available: 1
Reward: $10.00
Qualifications: Total approved HITs is not less than 1000;HIT approval rate (%) is not less than 95;Location is US
 

SweetiePuff

No Lifer
Contributor
Crowd Pleaser
HIT Poster
Joined
Oct 10, 2016
Messages
19,283
Reaction score
34,574
Points
1,838
Location
Jersey Girl
Gender
Female
Title: Categorize 1000 personal interests | PANDA
Requester: EdAdapt [AB8LI3IISIFVU] (TO)
TO Ratings:
★★★★★ 3.89 Communicativity
★★★★★ 3.32 Generosity
★★★★ 4.94 Fairness
★★★★ 4.89 Promptness
Number of Reviews: 95 | TOS Flags: 4
Submit a new TO review
Description: You will fill in a survey asking you to categorize 1000 personal interests.
Time: 12 hours
HITs Available: 1
Reward: $10.00
Qualifications: Total approved HITs is not less than 1000;HIT approval rate (%) is not less than 95;Location is US
Aww man! I'm ½ way through the $5 one :p Now I want to quit LoL
 

Jaded

The real themildone
Administrator
Joined
Jan 10, 2016
Messages
46,617
Reaction score
123,835
Points
1,414
Age
123
Gender
Female
(I was serious about ignoring it until it happens again, but that doesn't mean not telling him)
(there's a chance this has happened already before.)

(but last time it came right back on so I ignored it.)

edit: I'm not sure why I'm talking in parenthesis.
 
  • Like
Reactions: Kerek and Cmoney

T. Leela

Oh Lord...
Contributor
Joined
May 12, 2016
Messages
11,050
Reaction score
14,046
Points
1,388
Location
Colorado
Gender
Female

Jerami

Well-Known Member
Contributor
Crowd Pleaser
HIT Poster
Joined
Jan 24, 2016
Messages
14,405
Reaction score
25,210
Points
2,238
Off to the dispensary to get my, "Please, Hammer, don't hurt 'em" medication. :weed:See y'all in a bit.
 

blackpupjean

Well-Known Member
Joined
Aug 21, 2016
Messages
2,807
Reaction score
4,748
Points
513
Location
wisconsin
Gender
Female
will PFA still drop today, or are they pretty much done for the day. Are there certain times of the day they drop or are they sporadic.
 

blackpupjean

Well-Known Member
Joined
Aug 21, 2016
Messages
2,807
Reaction score
4,748
Points
513
Location
wisconsin
Gender
Female
Status
Not open for further replies.