KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'd like to add a bind in which the Esc key will slide my panel back up. Here is my jQuery code. $(document).ready(function () { $(".port-link-container").click(function () { $("div.slider-panel").slideUp("slow"); }); $("#wr").click(function () { $('html, body').animate({ scrollTop: 450 }, 'slow'); $("div#wr-large").slideDown("slow"); }); $("#sema").click(function () { $("div#sema-large").slideDown("slow"); }); $(".slider-close").click(function () { $('html, body').animate({ scrollTop: 0 }, 'slow'); $("div.slider-panel").slideUp("slow"); }); });
Tags (comma-separated)
Save Edits
Cancel