aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPjotr Prins2024-06-23 04:12:40 -0500
committerPjotr Prins2024-06-23 04:31:22 -0500
commit3f1cdf10c4b986d0ac9b0d0eaf4cc0312eeba063 (patch)
treea8572d36e493b0cca9937bf155375ae057ffff7f
parent8d87f4db24ca5a36897fbd454527cbf54aff40cd (diff)
downloadgenecup-3f1cdf10c4b986d0ac9b0d0eaf4cc0312eeba063.tar.gz
Working footer - but still overlapping body
-rw-r--r--.gitignore1
-rw-r--r--VERSION2
-rwxr-xr-xserver.py3
-rw-r--r--static/style.css33
-rw-r--r--templates/layout.html18
5 files changed, 43 insertions, 14 deletions
diff --git a/.gitignore b/.gitignore
index 355a0c3..eb52520 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
.key
+minipubmed/
diff --git a/VERSION b/VERSION
index a7ee35a..65d5469 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.8.3
+1.8.4-pre1
diff --git a/server.py b/server.py
index ae9ffc3..d691dd9 100755
--- a/server.py
+++ b/server.py
@@ -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>