Jump to content

Parse JS in template


Night Wolf

Recommended Posts

Posted

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?

Archived

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

  • Recently Browsing   0 members

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