aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorAlexander Kabui2022-01-25 22:31:43 +0300
committerBonfaceKilz2022-02-09 08:49:56 +0300
commit9e67bc7726d69b5669d6faee867f305f67e69b69 (patch)
treec00aab194bcdb457497a7f313ec7a9c92f6a7eac /wqflask
parent59e8e7485ab8fd568f1ccb4b10e233ad7b5c4086 (diff)
downloadgenenetwork2-9e67bc7726d69b5669d6faee867f305f67e69b69.tar.gz
add carousel for plots
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/templates/gn3_ctl_results.html44
1 files changed, 44 insertions, 0 deletions
diff --git a/wqflask/wqflask/templates/gn3_ctl_results.html b/wqflask/wqflask/templates/gn3_ctl_results.html
index 1debff25..365ae2f1 100644
--- a/wqflask/wqflask/templates/gn3_ctl_results.html
+++ b/wqflask/wqflask/templates/gn3_ctl_results.html
@@ -1,7 +1,20 @@
{% extends "base.html" %}
{% block title %}Ctl results{% endblock %}
{% block content %}
+
+<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.datatables.net/1.11.3/css/jquery.dataTables.min.css">
+
+<style type="text/css">
+
+
+.carousel-control-next,
+.carousel-control-prev /*, .carousel-indicators */ {
+ filter: invert(100%);
+}
+
+
+</style>
<div style="margin-top:10px">
<div>
<h3>CTL/QTL Plots for Individual Traits</h3>
@@ -18,7 +31,38 @@
<div>
<h3>Network figure</h3>
</div>
+
+ <div id="carouselExampleControls" class="carousel slide" data-ride="carousel">
+ <div class="carousel-inner">
+
+ {% for ctl_plot in ctl_plots %}
+
+
+ <div class="item{% if loop.index == 1 %} active{% endif %}">
+ <img style="width:1000px;height: 600px;" src="data:image/jpeg;base64,{{ ctl_plot | safe }}" alt="First slide">
+ </div>
+
+ {% endfor %}
+
+ <a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">
+ <span class="carousel-control-prev-icon" aria-hidden="true"></span>
+ <span class="sr-only">Previous</span>
+ </a>
+ <a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">
+ <span class="carousel-control-next-icon" aria-hidden="true"></span>
+ <span class="sr-only">Next</span>
+ </a>
+
+ </div>
+
</div>
+
+
+</div>
+
+<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
+<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
+<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<script language="javascript" type="text/javascript" src="{{ url_for('js', filename='DataTables/js/jquery.js') }}"></script>
<script language="javascript" type="text/javascript" src="{{ url_for('js', filename='DataTables/js/jquery.dataTables.min.js') }}"></script>
<script language="javascript" type="text/javascript" src="{{ url_for('js', filename='DataTablesExtensions/scroller/js/dataTables.scroller.min.js') }}"></script>