Closed westurner closed 9 years ago
e.g. from https://github.com/westurner/redem/blob/master/redem/templates/redem_summary.jinja2#L156 :
{% block extrajs %} <script type="text/javascript"> $(document).ready(function() { $("a[href^='http']").attr('target','_blank'); }); </script> {% endblock extrajs %}
This is mostly useful for documentation with many outbound links.
ENH: For more precise jquery element selection, it might be helpful to add:
e.g. from https://github.com/westurner/redem/blob/master/redem/templates/redem_summary.jinja2#L156 :