Browse Source

made links more similar to keywords and added clear function after generating score

master
Cristina Cochior 4 years ago
parent
commit
05b133f3d6
  1. 4
      contextualise.py
  2. 33
      static/css/style.css

4
contextualise.py

@ -62,7 +62,7 @@ app.secret_key = secret_key
def clearSession():
# Flask sessions are serialised into a cookie, so we cannot use the deque here
session['wordpath'] = []
session['wordpath'] = []
session['clicktime'] = []
session['id'] = []
session['veryfirstnow'] = datetime.now().isoformat()
@ -378,6 +378,8 @@ def get_file():
file2.close()
outputfile.close()
clearSession()
try:
return send_file("pandoc/"+uniquename+"document-output.pdf", attachment_filename="olala.pdf")
except Exception as e:

33
static/css/style.css

@ -45,10 +45,6 @@ body{
margin: 0;
width: 100%;
height: 100%;
-webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
background: #e4e4e4;
}
@ -120,16 +116,18 @@ div.homepage{
margin: 0 auto;
}
div.home a{
border-bottom: 1px dashed black;
padding: 0.1em;
padding: 0em 0.2em 0.1em 0.2em;
margin: 0.5em;
line-height: 1.8em;
color: white;
color: black;
background:white;
border-radius: 50px;
}
div.home a:visited{
color: black;
color: white;
background: black;
}
div.home a:hover{
@ -372,12 +370,20 @@ embed#plugin {
line-height: 1.45em;
}
.text a {
background: #e4e4e4;
border-radius: 50px;
padding: 0em 0.2em 0.1em 0.2em;
}
.text a:visited{
color: magenta;
color: white;
overflow:auto;
background: black;
}
.text a:hover{
background: : magenta;
color: white;
}
.item{
@ -467,6 +473,9 @@ span.folder-corner {
font-style: italic;
}
div.diverge_list > a:visited {
color: magenta;
}
/********************************************************/
/* ABOUT PAGE */
@ -546,11 +555,11 @@ a.li-index:hover {
/*all pages*/
body{
-webkit-hyphens: auto;
/* -webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
word-break: break-all;
word-break: break-all; */
}
#logobox{

Loading…
Cancel
Save