hugosslade

No header on IE fix

Dec 11th, 2013
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Replace iPad floating header fix with this
  2.  
  3. $(function(){
  4. var $h=$("#header"),p='position';
  5. if(Modernizr.touch){
  6. $("input, textarea").on({
  7.     'focus' : function(e){
  8.         $h.css({p:"absolute"});
  9.     },
  10.     "blur" : function(e){
  11.         $h.css({p:"fixed"});
  12.     }
  13. });}})
Advertisement
Add Comment
Please, Sign In to add comment