diff --git a/snipts/templates/snipts/embed.html b/snipts/templates/snipts/embed.html index e16e7e3..c24116d 100644 --- a/snipts/templates/snipts/embed.html +++ b/snipts/templates/snipts/embed.html @@ -1,3 +1,3 @@ {% if 'snipt' in request.GET %}$(function() { - $('div#snipt-embed-{{ snipt.key }}').html('
{% for line in lines %}{{ line|safe }}\n{% endfor %}
'); -});{% else %}document.open();document.writeln('
');{% for line in lines %}document.writeln('{{ line|safe }}');{% endfor %}document.writeln('');document.writeln('
');document.close();{% endif %} + $('div#snipt-embed-{{ snipt.key }}').html('
{% for line in lines %}{{ line|safe }}\n{% endfor %}
'); +});{% else %}document.open();document.writeln('
');{% for line in lines %}document.writeln('{{ line|safe }}');{% endfor %}document.writeln('');document.writeln('
');document.close();{% endif %}