Skip to content

Commit

Permalink
Merge pull request #42 from will-moore/static_3rdparty_js
Browse files Browse the repository at this point in the history
Static 3rdparty js
  • Loading branch information
will-moore authored May 7, 2024
2 parents f96d66c + 7b8cb99 commit 7ef679a
Show file tree
Hide file tree
Showing 11 changed files with 51 additions and 11 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.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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
8 changes: 4 additions & 4 deletions idr_gallery/templates/idr_gallery/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
const SEARCH_ENGINE_URL = `${BASE_URL}searchengine/api/v1/`;
</script>

<script src="https://unpkg.com/@popperjs/core@2" crossorigin="anonymous"></script>
<script src="https://unpkg.com/tippy.js@6" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://unpkg.com/tippy.js@6/dist/backdrop.css" />
<link rel="stylesheet" href="https://unpkg.com/tippy.js@6/themes/light-border.css" />
<script src="{% static 'idr_gallery/3rdparty/popperjs/popper_core_2.11.8.min.js' %}"></script>
<script src="{% static 'idr_gallery/3rdparty/tippy/tippy_6.3.7.min.js' %}"></script>
<link rel="stylesheet" href="{% static 'idr_gallery/3rdparty/tippy/backdrop_6.3.7.css' %}" />
<link rel="stylesheet" href="{% static 'idr_gallery/3rdparty/tippy/light-border_6.3.7.css' %}" />

<style>
body {
Expand Down

0 comments on commit 7ef679a

Please sign in to comment.