Skip to content

Commit

Permalink
Add local static copies of jquery, jquery-ui, browser-polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Apr 12, 2024
1 parent 2760396 commit 7b8cb99
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 7 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions idr_gallery/static/idr_gallery/version.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
$(document).ready(function () {
$.get('/about/VERSION', null, function(data, textStatus) {
$('#version-number-display').text(data);
}, 'text');
});
12 changes: 5 additions & 7 deletions idr_gallery/templates/idr_gallery/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,13 @@
<link href="{% static 'idr_gallery/css/idr.css' %}?_={{VERSION}}" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<!-- Babel polfill (Symbol, Promise) -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.6.15/browser-polyfill.min.js" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-2.2.4.js"
integrity="sha256-iT6Q9iMJYuQiMWNd9lDyBUStIq/8PuOW33aOqmvFpqI="
crossorigin="anonymous"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js" crossorigin="anonymous"></script>
<link href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" rel="stylesheet" crossorigin="anonymous">
<script src="{% static 'idr_gallery/3rdparty/babel-core/browser-polyfill_5.6.15.min.js' %}?_={{VERSION}}"></script>
<script src="{% static 'idr_gallery/3rdparty/jquery/jquery-2.2.4.min.js' %}?_={{VERSION}}"></script>
<script src="{% static 'idr_gallery/3rdparty/jquery/jquery-ui-1.12.1.min.js' %}?_={{VERSION}}"></script>
<link href="{% static 'idr_gallery/3rdparty/jquery/jquery-ui-1.12.1.min.css' %}?_={{VERSION}}" rel="stylesheet">

<script src="{% static 'idr_gallery/3rdparty/foundation/foundation.min.js' %}"></script>
<script src="{{ base_url }}about/js/version.js" crossorigin="anonymous"></script>
<script src="{% static 'idr_gallery/version.js' %}?_={{VERSION}}" crossorigin="anonymous"></script>


<script src="{% static 'idr_gallery/model.js' %}?_={{VERSION}}"></script>
Expand Down

0 comments on commit 7b8cb99

Please sign in to comment.