Commits

Anonymous committed d3a7a77

Fixed a validation problem with stray HTML markup inside JavaScript.

  • Participants
  • Parent commits 9bfa4ad

Comments (0)

Files changed (2)

File src/js/selfl.js

+$("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>' ) })

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>
+<script type="text/javascript" src="$(ROOT)/js/selfl.js"></script>
 </latemp_webmaster>
 
 <body{#LATEMP_BODY_ATTRIBUTES#}>