diff --git a/functions.php b/functions.php index 212287d..3f49e85 100755 --- a/functions.php +++ b/functions.php @@ -157,26 +157,18 @@ function of_stylesheet() { 0) { + if ($("#myToggleButton").length>0) { - myToggleButton.addEventListener('click', function(){ + myToggleButton.addEventListener('click', function(){ - if( snapper.state().state=="left" ){ - snapper.close(); - } else { - snapper.open('left'); - } + if( snapper.state().state=="left" ){ + snapper.close(); + } else { + snapper.open('left'); + } - }); + }); -}; + }; $('code, pre').addClass('prettyprint'); diff --git a/options.php b/options.php old mode 100644 new mode 100755