From cff14d3f71db675a0cc014b4b3ff47e8b4543cb8 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 from be58e94d75122c0ef39a902727837cc8a1c49bcd --- democode/perleditor.html | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/democode/perleditor.html b/democode/perleditor.html index 5303c11..5fa27e1 100644 --- a/democode/perleditor.html +++ b/democode/perleditor.html @@ -314,6 +314,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"] ) { @@ -454,8 +460,9 @@ $(function () {
- Tools -   + Show Tools +
-