Commits

shl...@13c2ddb8-3aa7-4284-800b-8db07c650eef  committed 5730bad

Added a JS script to add self-links to the <h1/h2/etc. id="" tags.

  • Participants
  • Parent commits ba8a21f

Comments (0)

Files changed (1)

File template.wml

 <p>
 <b>Hosted by:</b> <a href="http://hexten.net/">Hexten.net</a>.
 </p>
+<script type="text/javascript">
+$("h1[id],h2[id],h3[id],h4[id],h5[id],h6[id]").each(function(i){ \$(this).append( ' <span class="selfl">[<a href="#' + this.id + '">link</a>]</span>' ) })
+</script>
 </latemp_webmaster>
 
 <body{#LATEMP_BODY_ATTRIBUTES#}>