Skip to content

Instantly share code, notes, and snippets.

@r03ert0 r03ert0/nprc-index.html
Last active Jan 8, 2019

Embed
What would you like to do?
/*
NPRC is a consortium of neuroscience journals that allows reviews done in one of them
to be shared with another, making the review process faster.
There is a webpage listing all participating journals, about 60. However, the website
will only show about 20 at a time, because of what I see as poor design. The following
code will get the list of journals and print them to the console as simple text.
*/
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script>
let i, url;
$('body').html("");
for(i=1;i<4;i++) {
url = `http://nprc.incf.org/index.php/participating-journals/page/${i}/`;
$.get(url,(o)=>{
$(o).find(".entry-title a").map((a,b)=>{
$('body').append(`<a href="${$(b).attr('href')}">${$(b).text()}</a><br/>`);
});
})
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.