Created
May 28, 2014 12:28
-
-
Save moisespsena/bfa35c549cea0ae9cff4 to your computer and use it in GitHub Desktop.
Generate one list with version identification, version abbreviation and version name of versions and print it to console, in http://bible.com/bible
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var data = []; | |
jQuery("#menu_version .scroll TR").each(function() { | |
var l = $(this); | |
if (!l.attr('data-abbrev')) { | |
return; | |
} | |
data[data.length] = [ | |
l.attr('data-version'), | |
l.attr('data-abbrev'), | |
l.attr('data-meta') | |
] | |
}); | |
for(var i=0; i < data.length; i++) { | |
data[i] = data[i].join(";") | |
} | |
console.log(data.join("\n")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment