Skip to content
Snippets Groups Projects
Unverified Commit a281060d authored by Fredrik Jonsson's avatar Fredrik Jonsson Committed by GitHub
Browse files

Merge pull request #1139 from OpenTechFund/tempfix/add-dataviz-iframe-via-js

Hack to add dataviz iframe to a specific standard page via javascript.
parents d1a5212d 1fcc205b
No related merge requests found
Pipeline #5 failed
......@@ -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 %}
(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