From 0dc9bf96a7c4b7c5c915f1d58dc1da8e09f4d4b0 Mon Sep 17 00:00:00 2001 From: Jason Park Date: Fri, 20 May 2016 12:29:09 -0500 Subject: [PATCH] hide fork-me-on-github when sidemenu are hidden --- js/script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/script.js b/js/script.js index be10e75..3824713 100644 --- a/js/script.js +++ b/js/script.js @@ -124,10 +124,12 @@ $('#navigation').click(function () { if ($sidemenu.hasClass('active')) { $sidemenu.css('right', (100 - sidemenu_percent) + '%'); $workspace.css('left', sidemenu_percent + '%'); + $('.github-fork-ribbon').css('visibility', 'visible'); } else { sidemenu_percent = $workspace.position().left / $('body').width() * 100; $sidemenu.css('right', 0); $workspace.css('left', 0); + $('.github-fork-ribbon').css('visibility', 'hidden'); } _tracer.resize(); }); -- GitLab