Hide footer in readonly mode
parent
b69c30a99b
commit
8e0cb75701
2
index.js
2
index.js
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue