Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$(document).ready(function(){
setInterval(countdomains(), 1000);
function countdomains(){
var cb;
$(".letters").each(function(){
cb = $(this);
$.getJSON("/api/domain/countByLetter?letter="+$(this).data('letter'), null, function(data){
cb.text(data);
});
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment