Skip to content
Snippets Groups Projects
Commit 39973eed authored by Nick Young's avatar Nick Young
Browse files

ensure dt elements have an id set

parent 3d04cbbf
Branches
Tags
No related merge requests found
......@@ -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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment