Bittle icon

Extractor.js

Bittle | PRO | 10/30/17 05:03:56 PM UTC | 0 ⭐ | 217 👁️ | Never ⏰ | []
JavaScript |

480 B

|

None

|

0 👍

/

0 👎

 //Extract info from http://www.soomolearning.com/ online textbook
var q = $(".multiple-choice-question-element");
var all = "";
q.each(function(i, val){
  var body = q.eq(i).find(".question-body");
  var ans = q.eq(i).find(".rejoinder");
  ans.find("span").remove();
 
  all = all+("■ "+body.text()+"\n=>"+ans.text()+"\n\n");
});
 
// showtips
var q = $(".showtip");
q.each(function(i, val){
 
  all = all+("* "+$(val).attr("aria-label")+"\n\n");
});
 
console.log(all);

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎