diff options
author | Alexander Kabui | 2024-10-01 10:36:13 +0300 |
---|---|---|
committer | GitHub | 2024-10-01 10:36:13 +0300 |
commit | f75ea839c34e73c916c30b6857611cfc618940dd (patch) | |
tree | 5f2cc86d18a44c4e0f253bcf632695085c341521 /gn2/wqflask/templates/base.html | |
parent | ae572dfe805defc4d40d173325178f5b08c080bf (diff) | |
parent | 5b840e6421ae5b20ce946642053ff702d0588f03 (diff) | |
download | genenetwork2-f75ea839c34e73c916c30b6857611cfc618940dd.tar.gz |
Merge pull request #877 from genenetwork/feature/cleanup-base-file
Feature/cleanup base file
Diffstat (limited to 'gn2/wqflask/templates/base.html')
-rw-r--r-- | gn2/wqflask/templates/base.html | 609 |
1 files changed, 314 insertions, 295 deletions
diff --git a/gn2/wqflask/templates/base.html b/gn2/wqflask/templates/base.html index 7db9aed6..76c7df67 100644 --- a/gn2/wqflask/templates/base.html +++ b/gn2/wqflask/templates/base.html @@ -3,26 +3,45 @@ <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> - <title>{% block title %}{% endblock %} GeneNetwork 2</title> + <title> + {% block title %}{% endblock %} + GeneNetwork 2</title> <meta name="description" content=""> <meta name="author" content=""> - <script type="text/javascript"> - var pageLoadStart = Date.now(); - </script> - <link rel="icon" type="image/png" sizes="64x64" href="/static/new/images/CITGLogo.png"> - <link rel="apple-touch-icon" type="image/png" sizes="64x64" href="/static/new/images/CITGLogo.png"> - <link REL="stylesheet" TYPE="text/css" href="{{ url_for('css', filename='bootstrap/css/bootstrap.css') }}" /> - <link REL="stylesheet" TYPE="text/css" href="/static/new/css/bootstrap-custom.css" /> - <link REL="stylesheet" TYPE="text/css" href="/static/new/css/non-responsive.css" /> - <link REL="stylesheet" TYPE="text/css" href="/static/new/css/docs.css" /> - <link rel="stylesheet" type="text/css" href="/static/new/css/colorbox.css" /> - <link rel="stylesheet" type="text/css" href="/static/new/css/parsley.css" /> - <link rel="stylesheet" type="text/css" href="/static/new/css/broken_links.css" /> - <link rel="stylesheet" href="/static/new/css/autocomplete.css" /> - <link rel="stylesheet" type="text/css" href="{{ url_for('css', filename='fontawesome/css/font-awesome.min.css') }}" /> - - {% block css %} - {% endblock %} + <script type="text/javascript">var pageLoadStart = Date.now();</script> + <link rel="icon" + type="image/png" + sizes="64x64" + href="/static/new/images/CITGLogo.png"> + <link rel="apple-touch-icon" + type="image/png" + sizes="64x64" + href="/static/new/images/CITGLogo.png"> + <link REL="stylesheet" + TYPE="text/css" + href="{{ url_for('css', filename='bootstrap/css/bootstrap.css') }}" /> + <link REL="stylesheet" + TYPE="text/css" + href="{{ url_for('static', filename='/new/css/bootstrap-custom.css') }}" /> + <link REL="stylesheet" + TYPE="text/css" + href="{{ url_for('static', filename='/new/css/non-responsive.css') }}" /> + <link REL="stylesheet" + TYPE="text/css" + href="{{ url_for('static', filename='/new/css/docs.css') }}" /> + <link REL="stylesheet" + TYPE="text/css" + href="{{ url_for('static', filename='/new/css/colorbox.css') }}" /> + <link REL="stylesheet" + TYPE="text/css" + href="{{ url_for('static', filename='/new/css/parsley.css') }}" /> + <link REL="stylesheet" + TYPE="text/css" + href="{{ url_for('static', filename='/new/css/broken_links.css') }}" /> + <link rel="stylesheet" + type="text/css" + href="{{ url_for('css', filename='fontawesome/css/font-awesome.min.css') }}" /> + {% block css %}{% endblock %} <style> .form-rounded { border-radius: 1rem; @@ -33,262 +52,297 @@ table.dataTable thead .sorting_desc { background-image: url({{ url_for("js", filename="DataTables/images/sort_desc_disabled.png") }}); } - .global_search_input{ - padding:9px 8px; - text-decoration: none; - border: none; - - border-radius: 5px; - } - .global_search_input:focus{ - outline: none; - } - .btn-stc { - padding:9px 8px; - border-left:none; - border-radius:0 40px 40px 0; - cursor: pointer; - height: 40px; - width: 64px; - margin:0; - border:1px solid #d3d3d3; - background-color: white; - position: absolute; - top:0; - left: 100%; - right: 0; - border-left: none; - } - </style> + + </style> </head> <body style="width: 100%"> <!-- Navbar ================================================== --> - <div class="navbar navbar-inverse navbar-static-top pull-left" role="navigation" style="width: 100%; min-width: 850px; white-space: nowrap;"> + <div class="navbar navbar-inverse navbar-static-top pull-left" + role="navigation" + style="width: 100%; + min-width: 850px; + white-space: nowrap"> <div class="container-fluid" style="width: 100%;"> <!-- Collect the nav links, forms, and other content for toggling --> <div> <ul class="nav navbar-nav"> - <li class="" style="margin-right: 20px;"> + <li style="margin-right: 20px;"> <a href="/" style="font-weight: bold;">GeneNetwork</a> </li> - <li class=""> - <a href="/help" class="dropdow-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Intro <span class="caret"></a> - <ul class="dropdown-menu"> - <li><a href="/intro">Intro</a></li> - <li><a href="/submit_trait">Submit Trait</a></li> - <li><a href="http://genenetwork.org/webqtl/main.py?FormID=batSubmit">Batch Submission</a></li> - </ul> + <li> + <a href="/help" + class="dropdow-toggle" + data-toggle="dropdown" + aria-haspopup="true" + aria-expanded="false">Intro <span class="caret"></span></a> + <ul class="dropdown-menu"> + <li> + <a href="/intro">Intro</a> + </li> + <li> + <a href="/submit_trait">Submit Trait</a> + </li> + <li> + <a href="http://genenetwork.org/webqtl/main.py?FormID=batSubmit">Batch Submission</a> + </li> + </ul> </li> - <li class=""> - <a href="/help" class="dropdow-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Help <span class="caret"></a> - <ul class="dropdown-menu"> - <li><a href="{{ url_for('gn_docs_blueprint.references') }}">References</a></li> - <li><a href="/tutorials">Webinars, Tutorials/Primers</a></li> - <li><a href="{{ url_for('gn_docs_blueprint.blogs_list') }}">Blogs</a></li> - <li><a href="{{ url_for('gn_docs_blueprint.glossary') }}">Glossary of Term</a></li> - <li><a href="http://gn1.genenetwork.org/faq.html">FAQ</a></li> - <li><a href="{{ url_for('gn_docs_blueprint.policies') }}">Policies</a></li> - <li><a href="{{ url_for('gn_docs_blueprint.links') }}">Links</a></li> - <li><a href="{{ url_for('gn_docs_blueprint.facilities') }}">Facilities</a></li> - <li><a href="{{ url_for('gn_docs_blueprint.environments') }}">Environments</a></li> - <li><a href="{{ url_for('gn_docs_blueprint.news') }}">GN1 News</a></li> - </ul> + <li> + <a href="/help" + class="dropdown-toggle" + data-toggle="dropdown" + aria-haspopup="true" + aria-expanded="false">Help <span class="caret"></span></a> + <ul class="dropdown-menu"> + <li> + <a href="{{ url_for("gn_docs_blueprint.references") }}">References</a> + </li> + <li> + <a href="/tutorials">Webinars, Tutorials/Primers</a> + </li> + <li> + <a href="{{ url_for("gn_docs_blueprint.blogs_list") }}">Blogs</a> + </li> + <li> + <a href="{{ url_for("gn_docs_blueprint.glossary") }}">Glossary of Term</a> + </li> + <li> + <a href="http://gn1.genenetwork.org/faq.html">FAQ</a> + </li> + <li> + <a href="{{ url_for("gn_docs_blueprint.policies") }}">Policies</a> + </li> + <li> + <a href="{{ url_for("gn_docs_blueprint.links") }}">Links</a> + </li> + <li> + <a href="{{ url_for("gn_docs_blueprint.facilities") }}">Facilities</a> + </li> + <li> + <a href="{{ url_for("gn_docs_blueprint.environments") }}">Environments</a> + </li> + <li> + <a href="{{ url_for("gn_docs_blueprint.news") }}">GN1 News</a> + </li> + </ul> </li> - <li class=""> - <a href="/help" class="dropdow-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Tools <span class="caret"></a> - <ul class="dropdown-menu"> - <li><a href="/snp_browser">Variant Browser</a></li> - <li><a href="http://bnw.genenetwork.org/sourcecodes/home.php">Bayesian Network Webserver</a></li> - <li><a href="https://systems-genetics.org/">Systems Genetics PheWAS</a></li> - <li><a href="http://ucscbrowser.genenetwork.org/">Genome Browser</a></li> - <li><a href="http://power.genenetwork.org">BXD Power Calculator</a></li> - <li><a href="{{url_for('jupyter_notebooks.launcher')}}">Jupyter Notebooks</a></li> - <li><a href="https://files.genenetwork.org/current/">Public Datasets</a></li> - </ul> + <li> + <a href="/help" + class="dropdown-toggle" + data-toggle="dropdown" + aria-haspopup="true" + aria-expanded="false">Tools <span class="caret"></span> </a> + <ul class="dropdown-menu"> + <li> + <a href="/snp_browser">Variant Browser</a> + </li> + <li> + <a href="http://bnw.genenetwork.org/sourcecodes/home.php">Bayesian Network Webserver</a> + </li> + <li> + <a href="https://systems-genetics.org/">Systems Genetics PheWAS</a> + </li> + <li> + <a href="http://ucscbrowser.genenetwork.org/">Genome Browser</a> + </li> + <li> + <a href="http://power.genenetwork.org">BXD Power Calculator</a> + </li> + <li> + <a href="{{ url_for("jupyter_notebooks.launcher") }}">Jupyter Notebooks</a> + </li> + <li> + <a href="https://files.genenetwork.org/current/">Public Datasets</a> + </li> + </ul> </li> {% if g.user_session %} - <li class=""> - <a href="/collections/list">Collections - <span class="badge badge-info">{{num_collections()}}</span> - </a> - </li> - <li class=""> - <a href="/repositories" class="dropdow-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Source Code <span class="caret"></a> - <ul class="dropdown-menu"> - <li><a href="https://github.com/genenetwork/genenetwork2">GN2 Source Code</a></li> - <li><a href="https://github.com/genenetwork/genenetwork">GN1 Source Code</a></li> - <li><a href="https://github.com/genenetwork/sysmaintenance">System Maintenance Code</a></li> - <li><a href="https://github.com/genenetwork/genenetwork2/blob/testing/doc/API_readme.md">REST API Documentation</a></li> - </ul> - </li> - {% if g.user_session.logged_in %} - <li class=""> - <a href="/edit_account_settings" class="dropdow-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{% if g.user_session.user_email %}{{ g.user_session.user_email }}{% else %}User Account Settings{% endif %}<span class="caret"></a> - <ul class="dropdown-menu"> - <li><a id="manage_user" title="User Options" href="/user/manage">User Options</a></li> - <li><a id="manage_groups" title="Manage Groups" href="/group-management/groups">Manage Groups</a></li> - </ul> - </li> - {% endif %} - <li class=""> - {%if logged_in()%} - {%if user_details is mapping%} - {%set user_dets = user_details%} - {%else%} - {%set user_dets = user_details()%} - {%endif%} - <a id="login_out" - title="Signed in as {{user_dets.name}}({{user_dets.email}})" - href="{{url_for('oauth2.user.logout')}}">Sign out</a> - {%else%} - <a id="login_in" href="{{authserver_authorise_uri()}}">Sign in</a> - {%endif%} - </li> - {% endif %} - - {%if not logged_in()%} - <li class=""> - <a id="user:register" title="Register a new user account." - href="{{url_for('oauth2.user.register_user')}}"> - Register - </a> - </li> - {%endif%} - - {%if logged_in()%} - <li class=""> - <a id="user:profile" title="User's profile page." - href="{{url_for('oauth2.user.user_profile')}}"> - Profile - </a> - </li> - {% endif %} - </ul> - </div> - </div> - </div> - {% block search %} - <div class="container-fluid" style="width: 100%; min-width: 650px; position: relative;background-color: #d5d5d5; height: 100px;"> - <form method="get" action="/gsearch" id="globalsearchform"> - <div class="form-group"> - <div class="controls"> - <select name="type"> - <option value="gene">Genes / Molecules</option> - <option value="phenotype" {% if type=="phenotype" %}selected{% endif %}>Phenotypes</option> - </select> - <div class="col-8 autocomplete" style="margin-left: 30px;margin-right: 10px;"> - <input autocomplete="off" class="global_search_input" id="term" style="width:45vw" type="text" required placeholder="Enter you search term here (ex: cytochrome AND P450)" name="terms"> - - <button type="submit" class="btn-stc" style="position: absolute; background-color: #336699"><i class="fa fa-search" title="Search " style="color:white;"></i></button> - </div> - <!-- todo fix text overlap for this;;responsiveness--> - - <span style="padding: 5px;margin-left: 65px;" id="gnqna_home"> - <a href="/gnqna">GNQA Search</a> - </span> - - <span style="padding: 5px;margin-left: 65px;" > - <a style="text-decoration: none" target="_blank" href="/search-syntax"> - <i style="text-align: center;color:#336699;;" class="fa fa-question-circle fa-2x" title="see more search hints" aria-hidden="true"></i> - </a> - </span> - </div> - </div> - </form> - </div> - {% endblock %} - {% block content %} - {% endblock %} - - <footer class="footer"> - <div class="row" style="margin: 10px; width: 100%; min-width: 1200px;"> - <div class="col-xs-6"> - <p>Web services initiated January, 1994 as - <a href="http://www.ncbi.nlm.nih.gov/pubmed?term=8043953"> - The Portable Dictionary of the Mouse Genome - </a>; June 15, 2001 as <a href="https://www.ncbi.nlm.nih.gov/pubmed/15043217">WebQTL</a>; and Jan 5, 2005 as GeneNetwork. - </p> - <p> - This site is currently operated by - <a href="mailto:rwilliams@uthsc.edu">Rob Williams</a>, - <a href="https://thebird.nl/">Pjotr Prins</a>, - <a href="http://www.senresearch.org">Saunak Sen</a>, - <a href="mailto:zachary.a.sloan@gmail.com">Zachary Sloan</a>, - <a href="mailto:acenteno@uthsc.edu">Arthur Centeno</a>, - and <a href="mailto:bonfacemunyoki@gmail.com">Bonface Munyoki</a>. - </p> - <p>Design and code by Pjotr Prins, Shelby Solomon, Zach Sloan, Arthur Centeno, Christan Fischer, Bonface Munyoki, Danny Arends, Arun Isaac, Alex Mwangi, Fred Muriithi, Sam Ockman, Lei Yan, Xiaodong Zhou, Christian Fernandez, - Ning Liu, Rudi Alberts, Elissa Chesler, Sujoy Roy, Evan G. Williams, Alexander G. Williams, Kenneth Manly, Jintao Wang, Robert W. Williams, and - <a href="/credits">colleagues</a>.</p> - <br /> - <p>GeneNetwork support from:</p> - <ul> <li> - <a href="http://citg.uthsc.edu"> - The UT Center for Integrative and Translational Genomics + <a href="/collections/list">Collections + <span class="badge badge-info">{{ num_collections() }}</span> </a> </li> <li> - <a href="https://www.nigms.nih.gov/">NIGMS</a> - Systems Genetics and Precision Medicine Project (R01 GM123489, 2017-2026) - </li> - <li> - <a href="https://www.nsf.gov/awardsearch/showAward?AWD_ID=2118709">NSF</a> - Panorama: Integrated Rack-Scale Acceleration for Computational Pangenomics - (PPoSS 2118709, 2021-2016) - </li> - <li> - <a href="https://www.drugabuse.gov/">NIDA</a> - NIDA Core Center of Excellence in Transcriptomics, Systems Genetics, and the Addictome (P30 DA044223, 2017-2022) - </li> - <li> - <a href="http://www.nia.nih.gov/">NIA</a> - Translational Systems Genetics of Mitochondria, Metabolism, and Aging (R01AG043930, 2013-2018) + <a href="/repositories" + class="dropdown-toggle" + data-toggle="dropdown" + aria-haspopup="true" + aria-expanded="false">Source Code <span class="caret"></span></a> + <ul class="dropdown-menu"> + <li> + <a href="https://github.com/genenetwork/genenetwork2">GN2 Source Code</a> + </li> + <li> + <a href="https://github.com/genenetwork/genenetwork">GN1 Source Code</a> + </li> + <li> + <a href="https://github.com/genenetwork/sysmaintenance">System Maintenance Code</a> + </li> + <li> + <a href="https://github.com/genenetwork/genenetwork2/blob/testing/doc/API_readme.md">REST API Documentation</a> + </li> + </ul> </li> + {% if logged_in() %} + <li> + <a href="/edit_account_settings" + class="dropdown-toggle" + data-toggle="dropdown" + aria-haspopup="true" + aria-expanded="false"> + {% if g.user_session.user_email %} + {{ g.user_session.user_email }} + {% else %} + User Account Settings + {% endif %} + <span class="caret"></span></a> + <ul class="dropdown-menu"> + <li> + <a id="manage_user" title="User Options" href="/user/manage">User Options</a> + </li> + <li> + <a id="manage_groups" + title="Manage Groups" + href="/group-management/groups">Manage Groups</a> + </li> + </ul> + </li> + {% endif %} <li> - <a href="https://www.ohsu.edu/iniastress-consortium">NIAAA</a> - Integrative Neuroscience Initiative on Alcoholism (U01 AA016662, U01 AA013499, U24 AA013513, U01 AA014425, 2006-2017) + {% if logged_in() %} + {% if user_details is mapping %} + {% set user_dets = user_details %} + {% else %} + {% set user_dets = user_details() %} + {% endif %} + <a id="login_out" + title="Signed in as {{ user_dets.name }}({{ user_dets.email }})" + href="{{ url_for("oauth2.user.logout") }}">Sign out</a> + {% else %} + <a id="login_in" href="{{ authserver_authorise_uri() }}">Sign in</a> + {% endif %} </li> + {% endif %} + {% if not logged_in() %} <li> - <a href="http://www.drugabuse.gov/">NIDA</a>, <a href="http://www.nimh.nih.gov/">NIMH</a>, and <a href="http://www.niaaa.nih.gov/">NIAAA</a> - (P20-DA 21131, 2001-2012) + <a id="user:register" + title="Register a new user account." + href="{{ url_for("oauth2.user.register_user") }}">Register</a> </li> + {% endif %} + {% if logged_in() %} <li> - NCI <a href="http://emice.nci.nih.gov/">MMHCC</a> (U01CA105417), NCRR, <span class="broken_link test" href="http://www.birncommunity.org/">BIRN</span>, (U24 RR021760) + <a id="user:profile" + title="User's profile page." + href="{{ url_for("oauth2.user.user_profile") }}">Profile</a> </li> - </UL> - <p>Published in - <a href="http://joss.theoj.org/papers/10.21105/joss.00025">Journal of Open Source Software (JOSS)</a> - <!-- JOSS logo is defunct --> - </p> + {% endif %} + </ul> + </div> + </div> + </div> + {% block search %}{% endblock %} + {% block content %}{% endblock %} + <footer class="footer"> + <div class="row" style="margin: 10px; width: 100%; min-width: 1200px;"> + <div class="col-xs-6"> + <p> + Web services initiated January, 1994 as + <a href="http://www.ncbi.nlm.nih.gov/pubmed?term=8043953">The Portable Dictionary of the Mouse Genome</a>; June 15, 2001 as <a href="https://www.ncbi.nlm.nih.gov/pubmed/15043217">WebQTL</a>; and Jan 5, 2005 as GeneNetwork. + </p> + <p> + This site is currently operated by + <a href="mailto:rwilliams@uthsc.edu">Rob Williams</a>, + <a href="https://thebird.nl/">Pjotr Prins</a>, + <a href="http://www.senresearch.org">Saunak Sen</a>, + <a href="mailto:zachary.a.sloan@gmail.com">Zachary Sloan</a>, + <a href="mailto:acenteno@uthsc.edu">Arthur Centeno</a>, + and <a href="mailto:bonfacemunyoki@gmail.com">Bonface Munyoki</a>. + </p> + <p> + Design and code by Pjotr Prins, Shelby Solomon, Zach Sloan, Arthur Centeno, Christan Fischer, Bonface Munyoki, Danny Arends, Arun Isaac, Alex Mwangi, Fred Muriithi, Sam Ockman, Lei Yan, Xiaodong Zhou, Christian Fernandez, + Ning Liu, Rudi Alberts, Elissa Chesler, Sujoy Roy, Evan G. Williams, Alexander G. Williams, Kenneth Manly, Jintao Wang, Robert W. Williams, and + <a href="/credits">colleagues</a>. + </p> + <br /> + <p>GeneNetwork support from:</p> + <ul> + <li> + <a href="http://citg.uthsc.edu">The UT Center for Integrative and Translational Genomics</a> + </li> + <li> + <a href="https://www.nigms.nih.gov/">NIGMS</a> + Systems Genetics and Precision Medicine Project (R01 GM123489, 2017-2026) + </li> + <li> + <a href="https://www.nsf.gov/awardsearch/showAward?AWD_ID=2118709">NSF</a> + Panorama: Integrated Rack-Scale Acceleration for Computational Pangenomics + (PPoSS 2118709, 2021-2016) + </li> + <li> + <a href="https://www.drugabuse.gov/">NIDA</a> + NIDA Core Center of Excellence in Transcriptomics, Systems Genetics, and the Addictome (P30 DA044223, 2017-2022) + </li> + <li> + <a href="http://www.nia.nih.gov/">NIA</a> + Translational Systems Genetics of Mitochondria, Metabolism, and Aging (R01AG043930, 2013-2018) + </li> + <li> + <a href="https://www.ohsu.edu/iniastress-consortium">NIAAA</a> + Integrative Neuroscience Initiative on Alcoholism (U01 AA016662, U01 AA013499, U24 AA013513, U01 AA014425, 2006-2017) + </li> + <li> + <a href="http://www.drugabuse.gov/">NIDA</a>, <a href="http://www.nimh.nih.gov/">NIMH</a>, and <a href="http://www.niaaa.nih.gov/">NIAAA</a> + (P20-DA 21131, 2001-2012) + </li> + <li> + NCI <a href="http://emice.nci.nih.gov/">MMHCC</a> (U01CA105417), NCRR, <span class="broken_link test" href="http://www.birncommunity.org/">BIRN</span>, (U24 RR021760) + </li> + </ul> + <p> + Published in + <a href="http://joss.theoj.org/papers/10.21105/joss.00025">Journal of Open Source Software (JOSS)</a> + <!-- JOSS logo is defunct --> + </p> + <p> + Development and source code on <a href="https://github.com/genenetwork/">github</a> with <a href="https://issues.genenetwork.org/">issue tracker</a> and <a href="https://github.com/genenetwork/genenetwork2/blob/master/README.md">documentation</a>. + </p> + {% if version: %} <p> - Development and source code on <a href="https://github.com/genenetwork/">github</a> with <a href="https://issues.genenetwork.org/">issue tracker</a> and <a href="https://github.com/genenetwork/genenetwork2/blob/master/README.md">documentation</a>. - {% if version: %} - <p><small>GeneNetwork {{ version }}</small></p> - {% endif %} - <p> It took the server {{ g.request_time() }} seconds to process this page.</p> - </div> - <div class="col-xs-2"> - <a href="http://www.python.org/" target="_blank"> - <img src="/static/new/images/PythonLogo.png" alt="Python Powered" border="0"> - </a> - <a href="http://www.neuinfo.org" target="_blank"> - <img src="/static/new/images/Nif.png" alt="Registered with Nif" border="0"> - </a> - </div> + <small>GeneNetwork {{ version }}</small> + </p> + {% endif %} + <p>It took the server {{ g.request_time() }} seconds to process this page.</p> </div> - </footer> - <!--http://stackoverflow.com/questions/14045515/how-can-i-reuse-one-bootstrap-modal-div--> - <!-- Modal --> - <div id="utility" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> - <div class="modal-body"> - <p>.</p> + <div class="col-xs-2"> + <a href="http://www.python.org/" target="_blank"> + <img src="/static/new/images/PythonLogo.png" + alt="Python Powered" + border="0"> + </a> + <a href="http://www.neuinfo.org" target="_blank"> + <img src="/static/new/images/Nif.png" alt="Registered with Nif" border="0"> + </a> </div> - </div> - <script src="{{ url_for('js', filename='jquery/jquery.min.js') }}" type="text/javascript"></script> - <script src="{{ url_for('js', filename='bootstrap/js/bootstrap.min.js') }}" type="text/javascript"></script> - <script src="/static/new/javascript/search_autocomplete.js"></script> - <script> + </div> + </footer> + <!--http://stackoverflow.com/questions/14045515/how-can-i-reuse-one-bootstrap-modal-div--> + <!-- Modal --> + <div id="utility" + class="modal hide fade" + tabindex="-1" + role="dialog" + aria-labelledby="myModalLabel" + aria-hidden="true"> + <div class="modal-body"> + <p>.</p> + </div> + </div> + <script src="{{ url_for('js', filename='jquery/jquery.min.js') }}" + type="text/javascript"></script> + <script src="{{ url_for('js', filename='bootstrap/js/bootstrap.min.js') }}" + type="text/javascript"></script> + <script> //http://stackoverflow.com/questions/11521763/bootstrap-scrollspy-not-working var $window = $(window) $('.bs-docs-sidenav').affix({ @@ -297,58 +351,23 @@ bottom: 270 } }) - </script> - <script type="text/javascript"> - $(document).ready(function() { - - const urlParams = new URLSearchParams(window.location.search) - let term = urlParams.get("terms") - - //should web scrap - var global_search_hint = [ - "cytochrome", - "cytochrome AND P450", - "cytochrome NEAR P450", - "cytochrome -P450", - "cytochrome NOT P450", - "species:human", - "group:BXD", - "Hs:chr4:9930021 species:mouse", - "Hs:chr4:9130000..9980000 species:mouse", - "mean:5..7", - "mean:7..", - "Hs:chr4:9930021", - "Hs:chr4:9930021 species:mouse", - "Hs:chr4:9130000..9980000 species:mouse", - "bx*", - "*", - ] - autocomplete(document.getElementById("term"), global_search_hint); - $("#term").keyup(function(event) { - if (event.keyCode === 13) { - event.preventDefault(); - $('#globalsearchform').attr('action', "/gsearch").submit(); - if ($("#term").val().trim() != "") { - saveBeforeSubmit($("#term").val().trim()) - $("#globalsearchform")[0].submit(); - } - - } - }) - - }); - </script> - <script src="{{ url_for('js', filename='jquery-cookie/jquery.cookie.js') }}" type="text/javascript"></script> - <script language="javascript" type="text/javascript" src="{{ url_for('js', filename='jquery-ui/jquery-ui.min.js') }}"></script> <script language="javascript" type="text/javascript" src="{{ url_for('js', filename='colorbox/jquery.colorbox-min.js') }}"></script> - <script language="javascript" type="text/javascript" src="{{ url_for('js', filename='js_alt/parsley.min.js') }}"></script> - {% block js %} - {% endblock %} - <script type="text/javascript"> + </script> + <script src="{{ url_for('js', filename='jquery-cookie/jquery.cookie.js') }}" + type="text/javascript"></script> + <script language="javascript" + type="text/javascript" + src="{{ url_for('js', filename='jquery-ui/jquery-ui.min.js') }}"></script> <script language="javascript" type="text/javascript" src="{{ url_for('js', filename='colorbox/jquery.colorbox-min.js') }}"></script> + <script language="javascript" + type="text/javascript" + src="{{ url_for('js', filename='js_alt/parsley.min.js') }}"></script> + {% block js %} + {% endblock %} + <script type="text/javascript"> document.addEventListener('DOMContentLoaded', function() { let timeToLoad = document.createElement("p"); timeToLoad.innerHTML = "It took your browser " + ((Date.now() - pageLoadStart) / 1000) + " second(s) to render this page"; document.querySelector("footer .row .col-xs-6").appendChild(timeToLoad); }); - </script> + </script> </body> </html> |