Commits

Anonymous committed 6e6994d

Got the self-link script to run in XHTML (and reduced the markup).

Comments (0)

Files changed (2)

common/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>' ) })

lib/rest-of-template.wml

 <a href="http://wordpress.org/extend/themes/smoked">Smoked WordPress Theme</a>
 by <a href="http://wordpress.org/extend/themes/profile/iconstantin">iconstantin</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>
 
 <define-tag hosting_link>