all repos — NoPaste @ 8e0cb7570128e701011afcc1373c7b28adfe5469

Resurrected - The PussTheCat.org fork of NoPaste

Hide footer in readonly mode
Boris Kubiak kubiakboris@gmail.com
Mon, 15 Jun 2020 11:46:18 +0200
commit

8e0cb7570128e701011afcc1373c7b28adfe5469

parent

b69c30a99b020f44a907fd327aed40154849f172

2 files changed, 3 insertions(+), 2 deletions(-)

jump to
M index.jsindex.js

@@ -152,7 +152,7 @@ editor.setOption('lineWrapping', true);

}; const openInNewTab = () => { - window.open(location.href.replace('&readonly', '')); + window.open(location.href.replace(/[?&]readonly/, '')); }; // Build a shareable URL
M style.cssstyle.css

@@ -36,7 +36,8 @@ .hidden,

select, #copy:not(.hidden) + #controls, body.readonly .hide-readonly, -body:not(.readonly) .show-readonly { +body:not(.readonly) .show-readonly, +body.readonly:not(:hover) #footer { display: none; }