Include chart.js in static

This commit is contained in:
George Lacey 2021-05-21 17:51:54 +01:00
parent 3d6f8c8ed9
commit b2e330de7b
3 changed files with 15 additions and 2 deletions

View File

@ -4,7 +4,7 @@
{% block title %}Borg Summary{% endblock %} {% block title %}Borg Summary{% endblock %}
{% block script %} {% block script %}
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script> <script src="{% static 'js/chart-3.2.1.min.js' %}"></script>
{{ hour_list|json_script:"hour_list" }} {{ hour_list|json_script:"hour_list" }}
<script src="{% static 'js/index.js' %}"></script> <script src="{% static 'js/index.js' %}"></script>
{% endblock %} {% endblock %}

View File

@ -4,7 +4,7 @@
{% load static %} {% load static %}
{% block script %} {% block script %}
{{block.super}} {{block.super}}
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script> <script src="{% static 'js/chart-3.2.1.min.js' %}"></script>
{{ hour_list|json_script:"hour_list" }} {{ hour_list|json_script:"hour_list" }}
{# <script src="{% static 'js/index.js' %}"></script>#} {# <script src="{% static 'js/index.js' %}"></script>#}
{% endblock %} {% endblock %}

13
borgweb/static/js/chart-3.2.1.min.js vendored Normal file

File diff suppressed because one or more lines are too long