Jump to content

Parse JS in template


Night Wolf

Recommended Posts

Hello. There is such code:

<script type="text/javascript">
$(document).ready(function () {
  $("a.externalLink").each(function() {
     var href = $(this).attr('href'); 
     $(this).attr('href', 'https://href.li/?' + href);
  });
});
</script>

how to insert this in template to code worked?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...