How to paste custom javascript at one question only?
Is it somehow possible to paste some custom javascript on one specific question only?
Is it somehow possible to paste some custom javascript on one specific question only?
In the template question/javascript.html
you could add something like:
{% if request.path == '/my-url/' %}
<script src="http://example.com/script.js" />
{% endif %}
Some agency wants to test my site to be approved by their standards and they want me to paste their code on one test-question-page. If I paste it for all sites, it will eventually break the site for one day.
Thank you! It works!
To enter a block of code:
Comments