diff --git a/opentech/public/standardpages/templates/standardpages/information_page.html b/opentech/public/standardpages/templates/standardpages/information_page.html index 8a22f0df064cc48c18b17441775cc0e1985ce414..fdd7ebac6a0757d469fe4966d597c90335f8e350 100644 --- a/opentech/public/standardpages/templates/standardpages/information_page.html +++ b/opentech/public/standardpages/templates/standardpages/information_page.html @@ -18,3 +18,7 @@ {% include "includes/relatedcontent.html" with related_pages=page.related_pages.all %} {% endblock %} + +{% block extra_js %} + <script src="{% static 'js/public/dataviz-iframe.js' %}"></script> +{% endblock %} diff --git a/opentech/static_src/src/javascript/public/dataviz-iframe.js b/opentech/static_src/src/javascript/public/dataviz-iframe.js new file mode 100644 index 0000000000000000000000000000000000000000..9838cd91506e673a81dcaf1b9e946f79aaa57e0f --- /dev/null +++ b/opentech/static_src/src/javascript/public/dataviz-iframe.js @@ -0,0 +1,17 @@ +(function ($) { + + 'use strict'; + + if (window.location.pathname.indexOf('visualizing-otf-application-data') !== -1) { + var $dataviz_iframe = $('<iframe/>', { + id: 'dataviz', + src: 'https://dataviz.opentech.fund/', + title: 'Visualizing OTF Application Data', + width: '100%', + height: '140rem', + frameborder: 0 + }); + $('.section--share').before($dataviz_iframe); + } + +})(jQuery);