fix: add jquery
parent
aa5f1c974c
commit
cdd8e10635
|
@ -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.')
|
||||
|
|
|
@ -4,25 +4,26 @@
|
|||
{% block head %}
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
{% block styles %}
|
||||
{{ bootstrap.load_css() }}
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='bootstrap-select.min.css') }}">
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
{% block styles %}
|
||||
{{ bootstrap.load_css() }}
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='bootstrap-select.min.css') }}">
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
{% block content %}{% endblock%}
|
||||
</div>
|
||||
{% block scripts %}
|
||||
{% block scripts %}
|
||||
{{ bootstrap.load_js() }}
|
||||
<script src='{{ url_for('static', filename='bootstrap-select.min.js') }}'></script>
|
||||
<script src='{{ url_for('static', filename='d3.v7.min.js') }}'></script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('[data-toggle="popover"]').popover();
|
||||
});
|
||||
</script>
|
||||
<script src='{{ url_for('static', filename='jquery.min.js') }}'></script>
|
||||
<script src='{{ url_for('static', filename='bootstrap-select.min.js') }}'></script>
|
||||
<script src='{{ url_for('static', filename='d3.v7.min.js') }}'></script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('[data-toggle="popover"]').popover();
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue