|
1234567891011121314151617 |
- {% macro email_contact(text, subject) %}
- {# rot13 : https://rot13.com/ #}
- <script>
- {% if text is empty %}
- var text = "ntve@ynpbbcrengvirqrfpvgblraf.se";
- {% else %}
- var text = "{{ text|rot13 }}";
- {% endif %}
- var subject = "";
- {% if subject is not empty %}
- var subject = "?fhowrpg={{ subject|rot13 }}";
- {% endif %}
- document.write(("<n uers=\"znvygb:ntve@ynpbbcrengvirqrfpvgblraf.se" + subject + "\" ery=\"absbyybj\">" + text + "</n>").replace(/[a-zA-Z]/g, function (c) {
- return String.fromCharCode((c <= "Z" ? 90 : 122) >= (c = c.charCodeAt(0) + 13) ? c : c - 26);
- }));
- </script>
- {% endmacro %}
|