changes in api

master
Your Name 6 years ago
parent 1c6ba6eb4b
commit 0a289f9f2f

@ -1,4 +1,4 @@
from app import app
if __name__ == '__main__':
app.run(host='0.0.0.0',debug=True)
app.run(host='0.0.0.0',port=1234,debug=True)

Binary file not shown.

@ -68,6 +68,16 @@ h2{
font-style: italic;
}
.references{
display: block;
font-size: 11px;
line-height: 18px!important;
padding: 0;
margin: 0;
padding-bottom: 15px;
max-width: 500px!important;
}
h3{
font-weight: normal;
font-family: 'suisseintl';

@ -1,2 +1,11 @@
#main{font-family: monospace;}
#main{font-family: monospace;
max-width: 50%;}
.mono{}
.references{
display: block;
font-style: italic;
padding-bottom: 10px;
max-width: 50%;
}

@ -38,6 +38,7 @@
<a href="#" data-command='insertimage'><i class='fa fa-image'></i></a>
<a href="#" data-command='p'>P</a>
<a href="#" data-command='imgsub'>img sub</a>
<a href="#" data-command='references'>references</a>
<a href="#" data-command='subscript'><i class='fa fa-subscript'></i></a>
<a href="#" data-command='superscript'><i class='fa fa-superscript'></i></a>
@ -543,6 +544,12 @@ $('#toolbar a').click(function(e) {
{
selection = window.getSelection().toString();
wrappedselection = '<span class="imgsub">' + selection + '</span>';
document.execCommand('insertHTML', false, wrappedselection);
}
if(command == "references")
{
selection = window.getSelection().toString();
wrappedselection = '<span class="references">' + selection + '</span>';
document.execCommand('insertHTML', false, wrappedselection);
}
if (command == 'createlink' || command == 'insertimage') {

@ -248,7 +248,11 @@ def get_text():
removedImg = []
imgsub = []
for a in soup.find_all("a", {'class':'linkTo'}):
removedLinks.append(a.extract().get_text())
removedLinks.append(a.extract()['href'])
for span in soup.find_all("span", {'class':'references'}):
span.replace_with("&&ref"+span.get_text()+" &&endref ")
for span in soup.find_all("u"):
span.replace_with(" &&uline"+span.get_text()+" &&enduline ")
for img in soup.find_all("img"):
removedImg.append(img['src'])
for subtitle in soup.find_all("span", {'class':'imgsub'}):

@ -0,0 +1,5 @@
1559814619687 addons.xpi WARN Can't get modified time of /usr/lib/thunderbird/features/wetransfer@extensions.thunderbird.net
1559832848106 addons.update-checker WARN Update manifest for messagingmenu@mozilla.com did not contain an updates property
1559832848125 addons.update-checker WARN Update manifest for {972ce4c6-7e08-4474-a285-3208198ce6fd} did not contain an updates property
1559919248530 addons.update-checker WARN Update manifest for messagingmenu@mozilla.com did not contain an updates property
1559919248558 addons.update-checker WARN Update manifest for {972ce4c6-7e08-4474-a285-3208198ce6fd} did not contain an updates property
Loading…
Cancel
Save