-
Notifications
You must be signed in to change notification settings - Fork 16
/
_js_includes.html
53 lines (41 loc) · 2.36 KB
/
_js_includes.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{# feather icons, originally sourced from https://unpkg.com/feather-icons@4.28.0/dist/feather.min.js #}
<script type="text/javascript" src="/static/vendor/feather-4.28.0/feather.min.js"></script>
{# get jquery js #}
<script type="text/javascript" src="/static/vendor/jquery-3.4.1/jquery-3.4.1.min.js"></script>
{# get bootstrap js #}
{# TODO: this is probably not the right place to keep this file #}
{# I’m using a much smaller & reduced version of Boostrap’s JS, with some modified classes and only the components we need #}
<script type="text/javascript" src="/static/js/bootstrap.doaj.js"></script>
{%- if not config.get("DEBUG", True) -%}
<!-- Plausible Analytics -->
<script defer data-domain="{{ config.get('PLAUSIBLE_SITE_NAME')}}"
src="{{ config.get('PLAUSIBLE_JS_URL') }}"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-46560124-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-46560124-1');
</script>
{%- endif -%}
{# FIXME: do we need these any more? #}
<!-- get tablesorter -->
<script type="text/javascript" src="/static/vendor/tablesorter-2.3.10/js/jquery.tablesorter.js?v={{config.get('DOAJ_VERSION')}}"></script>
<!-- get our autocomplete function for select2 -->
<script type="text/javascript" src="/static/js/autocomplete.js?v={{config.get('DOAJ_VERSION')}}"></script>
<!-- get our functions for handling form fields fixme: should there be a form_page flag?-->
<script type="text/javascript" src="/static/js/formutils.js?v={{config.get('DOAJ_VERSION')}}"></script>
<!-- get select2 -->
<script type="text/javascript" src="/static/vendor/select2-3.5.4/select2.min.js?v={{config.get('DOAJ_VERSION')}}"></script>
<script type="text/javascript">var current_domain = document.location.host;</script>
<script type="text/javascript">var current_scheme = window.location.protocol;</script>
<script type="text/javascript">var es_domain = current_domain;</script>
<script type="text/javascript">var es_scheme = current_scheme;</script>
<!-- get the app's js -->
<script type="text/javascript" src="/static/js/doaj.js?v={{config.get('DOAJ_VERSION')}}"></script>
<script>
jQuery (document).ready (function($) {
doaj.init();
});
</script>