Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Commit

Permalink
Remove duplicated javascript body includes
Browse files Browse the repository at this point in the history
  • Loading branch information
kilemensi committed Sep 17, 2018
1 parent 01729e7 commit 6e3af17
Showing 1 changed file with 5 additions and 36 deletions.
41 changes: 5 additions & 36 deletions takwimu/templates/profile/profile_detail_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ <h2>Compare with another place</h2>
background-color: #17a2b8
}
</style>
{% endblock %}
{% endblock content_container %}

{% block body_javascript %}
{% block body_javascript_extra %}
<script src="{% static 'js/vendor/modernizr-3.6.0.min.js' %}"></script>
<script src="{% static 'js/plugins.js' %}"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
Expand All @@ -189,15 +189,8 @@ <h2>Compare with another place</h2>
<script src="{% static 'js/svg.js' %}"></script>
<script defer data-search-pseudo-elements src="https://use.fontawesome.com/releases/v5.2.0/js/all.js" integrity="sha384-4oV5EgaV02iISL2ban6c/RmotsABqE4yZxZLcYMAdG7FAPsyHYAPpywE9PJo+Khy" crossorigin="anonymous"></script>

{% block profile_javascript_libs %}
<script src="{% static 'js/vendor/leaflet-0.6.4.js' %}"></script>
<script src="{% static 'js/vendor/topojson.v1.min.js' %}"></script>
<script src="{% static 'js/vendor/leaflet.label.js' %}"></script>
<script src="{% static 'js/charts.js' %}"></script>
<script src="{% static 'js/head2head.js' %}"></script>
<script src="{% static 'js/maps_static.js' %}"></script>
<script src="{% static 'js/profile_map.js' %}"></script>
{% endblock %}
{{ block.super }}

<!-- Start of takwimu Zendesk Widget script -->
<script>/*<![CDATA[*/
window.zE || (function (e, t, s) {
Expand All @@ -211,22 +204,6 @@ <h2>Compare with another place</h2>
/*]]>*/</script>
<!-- End of takwimu Zendesk Widget script -->

<!-- Google Analytics: change UA-XXXXX-Y to be your site's ID. -->
<script>
window.ga = function () {
ga.q.push(arguments)
};
ga.q = [];
ga.l = +new Date;
ga('create', '{{ HURUmap.ga_tracking_id }}', 'auto');
ga('send', 'pageview')
{% for ga_tracking_id in HURUMAP.ga_tracking_ids %}
ga('create', '{{ ga_tracking_id }}', 'auto', {'name': 't{{ forloop.counter }}'});
ga('t{{ forloop.counter }}.send', 'pageview');
{% endfor %}
</script>
<script src="https://www.google-analytics.com/analytics.js" async defer></script>

<!-- Bootstrap: Enable Tooltips -->
<script>
$(function () {
Expand All @@ -239,12 +216,4 @@ <h2>Compare with another place</h2>
$(this).find('.sub-group').toggle();
});
</script>

{% block body_javascript_extra %}
{{ block.super }}
{% endblock %}

{{ block.super }}

{% endblock body_javascript %}

{% endblock body_javascript_extra %}

0 comments on commit 6e3af17

Please sign in to comment.