From be58e94d75122c0ef39a902727837cc8a1c49bcd Mon Sep 17 00:00:00 2001 From: Hauke D Date: Fri, 12 Oct 2018 13:45:22 +0200 Subject: [PATCH] Added "show/hide tools" feature --- web/democode/perleditor.html | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/web/democode/perleditor.html b/web/democode/perleditor.html index b83da38..3051178 100644 --- a/web/democode/perleditor.html +++ b/web/democode/perleditor.html @@ -312,6 +312,12 @@ $(function () { var hashdata = window.location.hash.substr(1); var hash = hashdata.length>0 ? JSON.parse(decodeURIComponent(hashdata)) : {}; + $('#showtools').click(function () { + $('#thetools,#footer').toggle(); + $('#showtools').text( $('#thetools').is(':visible') + ? 'Hide Tools' : 'Show Tools' ); + }); + // script var addscript = $('#addscript'); if ( hash["script"] || hash["script_url"] ) { @@ -452,8 +458,9 @@ $(function () {
- Tools -   + Show Tools +
-