Hide footer in readonly mode
8e0cb7570128e701011afcc1373c7b28adfe5469
b69c30a99b020f44a907fd327aed40154849f172
@@ -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
@@ -152,7 +152,7 @@ editor.setOption('lineWrapping', true);
@@ -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; }
@@ -36,7 +36,8 @@ .hidden,