Commit 39973eed authored by Nick Young's avatar Nick Young
Browse files

ensure dt elements have an id set

parent 3d04cbbf
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -12,3 +12,16 @@
  ga('create', 'UA-37305346-2', 'auto');
  ga('send', 'pageview');
</script>
<script>
  $('dt').each(function () {
    if (!this.id) {
      var id = $(this).text();
      var index = id.indexOf('(');
      if (index > 0) {
        id = id.substring(0, index);
      }
      id = id.trim().replace(/ /g, '-').toLowerCase();
      this.id = id;
    }
  });
</script>
 No newline at end of file