diff --git a/snipts/templates/snipts/embed.html b/snipts/templates/snipts/embed.html index c24116d..982a685 100644 --- a/snipts/templates/snipts/embed.html +++ b/snipts/templates/snipts/embed.html @@ -1,3 +1,2 @@ -{% if 'snipt' in request.GET %}$(function() { - $('div#snipt-embed-{{ snipt.key }}').html('
'); -});{% else %}document.open();document.writeln(' ');document.close();{% endif %} +{% if 'snipt' in request.GET %}document.addEventListener('DOMContentLoaded', function() { document.getElementById('snipt-embed-{{ snipt.key }}').innerHTML = ' '; }); +{% else %}document.open();document.writeln(' ');document.close();{% endif %}