diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | VERSION | 2 | ||||
-rwxr-xr-x | server.py | 3 | ||||
-rw-r--r-- | static/style.css | 33 | ||||
-rw-r--r-- | templates/layout.html | 18 |
5 files changed, 43 insertions, 14 deletions
@@ -1 +1,2 @@ .key +minipubmed/ @@ -1 +1 @@ -1.8.3 +1.8.4-pre1 @@ -24,7 +24,8 @@ from flask import (Flask, Response, flash, jsonify, redirect, render_template, from flask_sqlalchemy import SQLAlchemy from numpy import array -nltk.download('punkt') +# nltk.download('punkt') -- let's not just download data + import pickle from collections import Counter from datetime import datetime diff --git a/static/style.css b/static/style.css index d4cc2ee..47b0e22 100644 --- a/static/style.css +++ b/static/style.css @@ -72,3 +72,36 @@ a:active { ul { margin-left:40px; } + +.main { + flex: 1; + padding: 30px 0; +} + +body +{ + display: flex; + min-height: 80vh; + flex-direction: column; + padding-bottom: 40px; +} + +footer { + color: white; + font-size: small; + padding: 3px 0; + position: absolute; + left: 0; + bottom: 0; + width: 100%; +} + +.footer a { + color: yellow; + text-decoration: none; + transition: color 0.3s ease; +} + +.footer a:hover { + color: #adb5bd; +} diff --git a/templates/layout.html b/templates/layout.html index fafbae9..ba064e1 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -91,30 +91,24 @@ {% endwith %} </div> <br> -<div class="container"> +<div class="container main"> {% block content %}{% endblock %} </div> -<!-- footer does not show properly <footer class="footer bg-dark footer-dark"> <div class="container"> <div class="row"> - <div class="col-md-4"> - GeneCup {{ version }}: PubMed + GWAS catalog deep learning miner + <div class="col-md-6"> + GeneCup {{ version }}: PubMed + GWAS catalog deep learning. + Cite <a href="https://academic.oup.com/g3journal/article/12/5/jkac059/6548160">GeneCup.</a> </div> - <div class="col-md-4"> - Cite <a href="https://academic.oup.com/g3journal/article/12/5/jkac059/6548160">GeneCup: mining PubMed and GWAS catalog for gene-keyword relationships.</a> - </div> - <div class="col-md-4"> + <div class="col-md-6" align="right"> <a href="https://git.genenetwork.org/genecup/">Code</a> - </div> - <div class="col-md-4"> - Powered by <a href="https://www.tensorflow.org/">Tensorflow</a> on <a href="https://genenetwork.org/">GeneNetwork.org</a> + powered by <a href="https://www.tensorflow.org/">Tensorflow</a> on <a href="https://genenetwork.org/">GeneNetwork.org</a> </div> </div> </div> </footer> - --> <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> |