Skip to content
Snippets Groups Projects
Commit 1fcc205b authored by Fredrik Jonsson's avatar Fredrik Jonsson
Browse files

Hack to add dataviz iframe to a specific standard page via javascript.

parent d1a5212d
No related branches found
No related tags found
No related merge requests found
...@@ -18,3 +18,7 @@ ...@@ -18,3 +18,7 @@
{% include "includes/relatedcontent.html" with related_pages=page.related_pages.all %} {% include "includes/relatedcontent.html" with related_pages=page.related_pages.all %}
{% endblock %} {% endblock %}
{% block extra_js %}
<script src="{% static 'js/public/dataviz-iframe.js' %}"></script>
{% endblock %}
(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);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment