Skip to content

Instantly share code, notes, and snippets.

@howiworkdaily
Forked from justinabrahms/gist:93215
Created April 10, 2009 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save howiworkdaily/93218 to your computer and use it in GitHub Desktop.
Save howiworkdaily/93218 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