diff --git a/tools/3rdparty.py b/tools/3rdparty.py index 852b35f..5c60973 100755 --- a/tools/3rdparty.py +++ b/tools/3rdparty.py @@ -6,8 +6,8 @@ import requests from bgpranking.default import get_homedir d3js_version = '7' -bootstrap_select_version = "1.13.18" - +bootstrap_select_version = "1.14.0-beta3" +jquery_version = "3.7.1" if __name__ == '__main__': dest_dir = get_homedir() / 'website' / 'web' / 'static' @@ -27,4 +27,9 @@ if __name__ == '__main__': f.write(bootstrap_select_css.content) print(f'Downloaded bootstrap_select css v{bootstrap_select_version}.') + jquery = requests.get(f'https://code.jquery.com/jquery-{jquery_version}.min.js') + with (dest_dir / 'jquery.min.js').open('wb') as f: + f.write(jquery.content) + print(f'Downloaded jquery v{jquery_version}.') + print('All 3rd party modules for the website were downloaded.') diff --git a/website/web/templates/main.html b/website/web/templates/main.html index ef8420c..1f5af23 100644 --- a/website/web/templates/main.html +++ b/website/web/templates/main.html @@ -4,25 +4,26 @@ {% block head %} - {% block styles %} - {{ bootstrap.load_css() }} - - {% endblock %} - {% endblock %} + {% block styles %} + {{ bootstrap.load_css() }} + + {% endblock %} + {% endblock %}
{% block content %}{% endblock%}
- {% block scripts %} + {% block scripts %} {{ bootstrap.load_js() }} - - - + + + + {% endblock %}