Adding trim in parsing

This commit is contained in:
Teega 2020-06-12 17:21:27 +05:30
parent 20b97c9352
commit dc292ed2bd

View File

@ -1,5 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>Content Collaboration</title> <title>Content Collaboration</title>
<meta charset="UTF-8"> <meta charset="UTF-8">
@ -9,6 +10,7 @@
content="This web app can be used to collaborate between various teams using blockchain technology."> content="This web app can be used to collaborate between various teams using blockchain technology.">
<style> <style>
@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@500;600;700&family=Roboto:wght@400;500;700&display=swap"); @import url("https://fonts.googleapis.com/css2?family=Barlow:wght@500;600;700&family=Roboto:wght@400;500;700&display=swap");
html { html {
scroll-behavior: smooth; scroll-behavior: smooth;
font-size: 16px; font-size: 16px;
@ -50,7 +52,13 @@
font-family: 'Roboto', sans-serif; font-family: 'Roboto', sans-serif;
} }
h1, h2, h3, h4, h5, span, p { h1,
h2,
h3,
h4,
h5,
span,
p {
font-family: 'Barlow', sans-serif; font-family: 'Barlow', sans-serif;
} }
@ -118,7 +126,8 @@
outline: none; outline: none;
} }
input:not([type="checkbox"]), select { input:not([type="checkbox"]),
select {
-ms-flex-item-align: start; -ms-flex-item-align: start;
align-self: flex-start; align-self: flex-start;
display: -webkit-box; display: -webkit-box;
@ -711,10 +720,12 @@
-webkit-transform: scale(1); -webkit-transform: scale(1);
transform: scale(1); transform: scale(1);
} }
60% { 60% {
-webkit-transform: scale(1.5); -webkit-transform: scale(1.5);
transform: scale(1.5); transform: scale(1.5);
} }
100% { 100% {
-webkit-transform: scale(1); -webkit-transform: scale(1);
transform: scale(1); transform: scale(1);
@ -726,10 +737,12 @@
-webkit-transform: scale(1); -webkit-transform: scale(1);
transform: scale(1); transform: scale(1);
} }
60% { 60% {
-webkit-transform: scale(1.5); -webkit-transform: scale(1.5);
transform: scale(1.5); transform: scale(1.5);
} }
100% { 100% {
-webkit-transform: scale(1); -webkit-transform: scale(1);
transform: scale(1); transform: scale(1);
@ -748,6 +761,7 @@
-webkit-transform: rotate(0); -webkit-transform: rotate(0);
transform: rotate(0); transform: rotate(0);
} }
100% { 100% {
-webkit-transform: rotate(359deg); -webkit-transform: rotate(359deg);
transform: rotate(359deg); transform: rotate(359deg);
@ -759,6 +773,7 @@
-webkit-transform: rotate(0); -webkit-transform: rotate(0);
transform: rotate(0); transform: rotate(0);
} }
100% { 100% {
-webkit-transform: rotate(359deg); -webkit-transform: rotate(359deg);
transform: rotate(359deg); transform: rotate(359deg);
@ -770,19 +785,25 @@
width: 0.2rem; width: 0.2rem;
height: 0.2rem; height: 0.2rem;
} }
::-webkit-scrollbar-track { ::-webkit-scrollbar-track {
background: transparent; background: transparent;
} }
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.3);
} }
.hide-on-mobile { .hide-on-mobile {
display: none; display: none;
} }
.article-body { .article-body {
min-width: calc(100% - 2em) !important; min-width: calc(100% - 2em) !important;
} }
#context_menu, .floating-btn {
#context_menu,
.floating-btn {
display: -webkit-box; display: -webkit-box;
display: -ms-flexbox; display: -ms-flexbox;
display: flex; display: flex;
@ -793,9 +814,12 @@
box-shadow: 0.2rem 0.4rem 0.6rem rgba(0, 0, 0, 0.24), -0.1rem -0.2rem 0.4rem rgba(0, 0, 0, 0.16); box-shadow: 0.2rem 0.4rem 0.6rem rgba(0, 0, 0, 0.24), -0.1rem -0.2rem 0.4rem rgba(0, 0, 0, 0.16);
z-index: 3; z-index: 3;
} }
#context_menu button, .floating-btn button {
#context_menu button,
.floating-btn button {
width: 100%; width: 100%;
} }
.floating-btn { .floating-btn {
background: #282828; background: #282828;
bottom: 0; bottom: 0;
@ -803,29 +827,36 @@
border-radius: 5rem; border-radius: 5rem;
overflow: hidden; overflow: hidden;
} }
.floating-btn button { .floating-btn button {
padding: 1rem; padding: 1rem;
} }
.floating-btn button .icon { .floating-btn button .icon {
margin-right: 0; margin-right: 0;
} }
#context_menu { #context_menu {
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
-webkit-box-direction: normal; -webkit-box-direction: normal;
-ms-flex-direction: column; -ms-flex-direction: column;
flex-direction: column; flex-direction: column;
} }
#context_menu button:nth-of-type(1) svg { #context_menu button:nth-of-type(1) svg {
-webkit-transform: rotate(45deg); -webkit-transform: rotate(45deg);
transform: rotate(45deg); transform: rotate(45deg);
} }
#article_container { #article_container {
padding: 1.5rem 1.5rem 6rem 1.5rem; padding: 1.5rem 1.5rem 6rem 1.5rem;
} }
.navigation-arrows { .navigation-arrows {
opacity: 0; opacity: 0;
pointer-events: none; pointer-events: none;
} }
.popup-container .popup { .popup-container .popup {
-ms-flex-item-align: end; -ms-flex-item-align: end;
align-self: flex-end; align-self: flex-end;
@ -838,6 +869,7 @@
.article-body { .article-body {
min-width: 50%; min-width: 50%;
} }
.hide-on-medium { .hide-on-medium {
display: none; display: none;
} }
@ -1105,15 +1137,15 @@ let myCustomLogin = function () {
var tstring = plottext.replace(/\s+/g, " "); var tstring = plottext.replace(/\s+/g, " ");
tstring = tstring.split(") -> ("); tstring = tstring.split(") -> (");
if (tstring.length > 0) { if (tstring.length > 0) {
if(tstring[0][0]=="("){ if (tstring[0][0].trim() == "(") {
tstring[0] = tstring[0].slice(1) tstring[0] = tstring[0].trim().slice(1)
} }
else { else {
return 'error'; return 'error';
} }
if(tstring[-1][-1]==")"){ if (tstring[-1][-1].trim() == ")") {
tstring[0] = tstring[0].slice(0,-1) tstring[0] = tstring[0].trim().slice(0, -1)
} }
else { else {
return 'error'; return 'error';
@ -1197,7 +1229,8 @@ let myCustomLogin = function () {
</label> </label>
<button id="sign_in_btn" disabled>Sign in</button> <button id="sign_in_btn" disabled>Sign in</button>
</div> </div>
<p>Don't have a private key? get it <a href="https://flo-webwallet.duckdns.org/" target="_blank">here</a><br> or you can sign as guest.</p> <p>Don't have a private key? get it <a href="https://flo-webwallet.duckdns.org/"
target="_blank">here</a><br> or you can sign as guest.</p>
<span></span> <span></span>
</div> </div>
</div> </div>
@ -1269,15 +1302,15 @@ let myCustomLogin = function () {
<polyline points="63.09 0.1 59.3 18.87 40.49 15.08" /> <polyline points="63.09 0.1 59.3 18.87 40.49 15.08" />
</svg> </svg>
Refresh</button> Refresh</button>
<button id="clear_export" title="Clear article selection" <button id="clear_export" title="Clear article selection" class="export-options hide-completely hide-on-mobile"
class="export-options hide-completely hide-on-mobile" onclick="cloudArticleApp.reset_export_list()"> onclick="cloudArticleApp.reset_export_list()">
<svg viewBox="0 0 24 24"> <svg viewBox="0 0 24 24">
<line x1="12" y1="0" x2="12" y2="24" /> <line x1="12" y1="0" x2="12" y2="24" />
<line x1="0" y1="12" x2="24" y2="12" /> <line x1="0" y1="12" x2="24" y2="12" />
</svg> </svg>
Clear Selection</button> Clear Selection</button>
<button class="export-options hide-completely hide-on-mobile" <button class="export-options hide-completely hide-on-mobile" title="Export selected articles as html file"
title="Export selected articles as html file" onclick="cloudArticleApp.export_as_file()"> onclick="cloudArticleApp.export_as_file()">
<svg viewBox="0 0 28.44 24.47"> <svg viewBox="0 0 28.44 24.47">
<g> <g>
<path d="M27.19,6.72C14.18,6.6,4.87,12.2,0.47,24.3" /> <path d="M27.19,6.72C14.18,6.6,4.87,12.2,0.47,24.3" />
@ -8295,9 +8328,11 @@ Bitcoin.Util = {
} }
}); });
if(obj.constructor.toString().indexOf("Array") != -1) {obj = obj.filter(function (el) { if (obj.constructor.toString().indexOf("Array") != -1) {
obj = obj.filter(function (el) {
return el != null; return el != null;
});} });
}
return obj; return obj;
} }
@ -11063,4 +11098,5 @@ Bitcoin.Util = {
</script> </script>
</body> </body>
</html> </html>