Hide footer in readonly mode

master
Boris Kubiak 2020-06-15 11:46:18 +02:00
parent b69c30a99b
commit 8e0cb75701
2 changed files with 3 additions and 2 deletions

View File

@ -152,7 +152,7 @@ const enableLineWrapping = () => {
}; };
const openInNewTab = () => { const openInNewTab = () => {
window.open(location.href.replace('&readonly', '')); window.open(location.href.replace(/[?&]readonly/, ''));
}; };
// Build a shareable URL // Build a shareable URL

View File

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