-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: online report CDN for bootstrap, jquery
When the `online_report` config parameter is set to True, bootstrap and jquery are loaded from a CDN as ploty.js. This results in a much smaller report. Co-authored-by: pradyot-09 <pradyotpatil@gmail.com>
- Loading branch information
1 parent
2c2395c
commit 72df86d
Showing
2 changed files
with
25 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,22 @@ | ||
<!-- Footer --> | ||
<footer class="py-5 bg-dark"> | ||
<div class="container"> | ||
<p class="m-0 text-center text-white">Copyright © ING WBAA 2022</p> | ||
</div> | ||
<!-- /.container --> | ||
</footer> | ||
|
||
<!-- Bootstrap core JavaScript --> | ||
<!-- Plugin JavaScript --> | ||
<!-- Custom JavaScript for this theme --> | ||
{% if online_report %} | ||
{%- if online_report -%} | ||
<script src="https://cdn.plot.ly/plotly-2.12.1.min.js"></script> | ||
{% endif %} | ||
<script src="https://cdn.jsdelivr.net/npm/jquery@3.4.1/dist/jquery.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/js/bootstrap.bundle.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/jquery.easing@1.4.1/jquery.easing.min.js"></script> | ||
{%- endif -%} | ||
<script> | ||
{% if not online_report %} | ||
{% include 'assets/js/plotly.js' %} | ||
{% endif %} | ||
{% include 'assets/js/jquery.min.js' %} | ||
{% include 'assets/js/bootstrap.bundle.min.js' %} | ||
{% include 'assets/js/jquery.easing.min.js' %} | ||
{% include 'assets/js/scrolling-nav.js' %} | ||
{% include 'assets/js/custom-script.js' %} | ||
{%- if not online_report -%} | ||
{%- include 'assets/js/plotly.js' -%} | ||
{%- include 'assets/js/jquery.min.js' -%} | ||
{%- include 'assets/js/bootstrap.bundle.min.js' -%} | ||
{%- include 'assets/js/jquery.easing.min.js' -%} | ||
{%- endif -%} | ||
{%- include 'assets/js/scrolling-nav.js' -%} | ||
{%- include 'assets/js/custom-script.js' -%} | ||
</script> |