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

This commit is contained in:
Cristina Cochior 2020-01-16 17:01:12 +01:00
parent a60bc7b3a7
commit 05b133f3d6
2 changed files with 24 additions and 13 deletions

View File

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

View File

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