Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Replace iPad floating header fix with this
- $(function(){
- var $h=$("#header"),p='position';
- if(Modernizr.touch){
- $("input, textarea").on({
- 'focus' : function(e){
- $h.css({p:"absolute"});
- },
- "blur" : function(e){
- $h.css({p:"fixed"});
- }
- });}})
Advertisement
Add Comment
Please, Sign In to add comment