Skip to content

Instantly share code, notes, and snippets.

@t-rekttt
Created June 1, 2016 15:13
Show Gist options
  • Save t-rekttt/a8b46b5fd2d60a8408a605f0fcd41281 to your computer and use it in GitHub Desktop.
Save t-rekttt/a8b46b5fd2d60a8408a605f0fcd41281 to your computer and use it in GitHub Desktop.

Revisions

  1. @vietthao20000 vietthao20000 created this gist Jun 1, 2016.
    12 changes: 12 additions & 0 deletions heroquizz.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    var str = document.getElementsByClassName('my_answers_block');
    var list_data = '';
    for (var i = 0; i <= 14; i++) {
    var r = str[i].childNodes[1].onclick.toString().split(", ")[3].split(")")[0];
    var q_real = str[i].childNodes[1].onclick.toString().split(", ")[2];
    if (i < 14) {
    list_data = list_data + q_real + "," + r + "|";
    } else {
    q_current = 15;
    AnswerQuestion(15, r, q_real, r);
    }
    }