Skip to content

Instantly share code, notes, and snippets.

@howiworkdaily
Forked from justinabrahms/gist:93215
Created April 10, 2009 18:40
Show Gist options
  • Select an option

  • Save howiworkdaily/93218 to your computer and use it in GitHub Desktop.

Select an option

Save howiworkdaily/93218 to your computer and use it in GitHub Desktop.

Revisions

  1. @justinabrahms justinabrahms created this gist Apr 10, 2009.
    9 changes: 9 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    <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>