Skip to content

Instantly share code, notes, and snippets.

@javorszky
Forked from hocza/gist:efdd305a0ab36f8211ce
Created June 13, 2014 18:34
Show Gist options
  • Save javorszky/25974e99e56511cb1703 to your computer and use it in GitHub Desktop.
Save javorszky/25974e99e56511cb1703 to your computer and use it in GitHub Desktop.
$(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