{"action":"created","issue":{"url":"https://api.github.com/repos/ahmedrad/sliiide/issues/3","labels_url":"https://api.github.com/repos/ahmedrad/sliiide/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/ahmedrad/sliiide/issues/3/comments","events_url":"https://api.github.com/repos/ahmedrad/sliiide/issues/3/events","html_url":"https://github.com/ahmedrad/sliiide/issues/3","id":107633668,"number":3,"title":"shadow should also be able to handle toggle ","user":{"login":"a8568730","id":6355592,"avatar_url":"https://avatars.githubusercontent.com/u/6355592?v=3","gravatar_id":"","url":"https://api.github.com/users/a8568730","html_url":"https://github.com/a8568730","followers_url":"https://api.github.com/users/a8568730/followers","following_url":"https://api.github.com/users/a8568730/following{/other_user}","gists_url":"https://api.github.com/users/a8568730/gists{/gist_id}","starred_url":"https://api.github.com/users/a8568730/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a8568730/subscriptions","organizations_url":"https://api.github.com/users/a8568730/orgs","repos_url":"https://api.github.com/users/a8568730/repos","events_url":"https://api.github.com/users/a8568730/events{/privacy}","received_events_url":"https://api.github.com/users/a8568730/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-22T02:23:13Z","updated_at":"2015-11-02T19:57:21Z","closed_at":null,"body":"When shadow pop up, click shadow should also deactivate sliiide too."},"comment":{"url":"https://api.github.com/repos/ahmedrad/sliiide/issues/comments/153139962","html_url":"https://github.com/ahmedrad/sliiide/issues/3#issuecomment-153139962","issue_url":"https://api.github.com/repos/ahmedrad/sliiide/issues/3","id":153139962,"user":{"login":"generatepress","id":8139756,"avatar_url":"https://avatars.githubusercontent.com/u/8139756?v=3","gravatar_id":"","url":"https://api.github.com/users/generatepress","html_url":"https://github.com/generatepress","followers_url":"https://api.github.com/users/generatepress/followers","following_url":"https://api.github.com/users/generatepress/following{/other_user}","gists_url":"https://api.github.com/users/generatepress/gists{/gist_id}","starred_url":"https://api.github.com/users/generatepress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/generatepress/subscriptions","organizations_url":"https://api.github.com/users/generatepress/orgs","repos_url":"https://api.github.com/users/generatepress/repos","events_url":"https://api.github.com/users/generatepress/events{/privacy}","received_events_url":"https://api.github.com/users/generatepress/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T19:57:21Z","updated_at":"2015-11-02T19:57:21Z","body":"I did this by adding an empty element to my HTML:\r\n\r\n    <div class=\"slideout-overlay\" style=\"display: none;\"></div>\r\n\r\nThen adding this javascript:\r\n\r\n    jQuery( document ).on( 'click', '.slideout-toggle', function( event ) {\r\n        event.preventDefault();\r\n        menu.activate();\r\n        jQuery( '.slideout-overlay' ).show();\r\n    });\r\n\r\n    jQuery( document ).on( 'click', '.slideout-overlay', function( event ) {\r\n        event.preventDefault();\r\n        menu.deactivate();\r\n        jQuery( '.slideout-overlay' ).hide();\r\n    });"}}