Skip to content

Instantly share code, notes, and snippets.

@justinabrahms
Created April 10, 2009 18:38
Show Gist options
  • Save justinabrahms/93215 to your computer and use it in GitHub Desktop.
Save justinabrahms/93215 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
$(window).load(function(){
var hash_count = 0;
$('a[href="#"]').each(function(){
if(!$(this).data("events")) hash_count++;
});
$('head').append("&lt;!-- " + hash_count + " links with # as their href --&gt;");
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment