Skip to content

Instantly share code, notes, and snippets.

@colmjude
Last active August 29, 2015 13:56
Show Gist options
  • Save colmjude/9262678 to your computer and use it in GitHub Desktop.
Save colmjude/9262678 to your computer and use it in GitHub Desktop.
(function($) {
console.log( $("#trigger-overlay") );
var hls = $(".yourHighlight");
var book = $(".bookMain");
var quotes = [];
hls.each(function(el, ind, arr) {
var hl = {
"highlight": el.find(".highlight").text(),
"title": book.find(".title a").text(),
"author": book.find(".author").text()
};
quotes.push(hl);
});
console.log(quotes);
}(jQuery));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment