jquery - Slide Up Footer OnHover and OnClick? -


i looking modify these 2 slideup footer examples work on mobile devices. how add onclick open , onclick close these on mobile , still have onhover work desktop use?

the close , open onclick need active on "footer button" text or set of 2 images (1 footer button open, , 1 footer button close) added later.

http://jsfiddle.net/aqmhb

$(".footer").hover(function () { $(".slide").slidetoggle("fast"); }); 

http://jsfiddle.net/a88m6

$(".footer").hover(function () { $(this).animate({height: 250}); }, function(){ $(this).animate({height: 25}); }); 

you can user agent determine if being seen on mobile or desktop, , handle each independently accordingly. check user agent is, bind events how handled.


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -