-
-
Save KaiserEMP/c940f54d99c469a38890bd54332e251b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function applePie() { | |
| return ( navigator.userAgent.match(/(iPhone|iPod|iPad)/i) ); | |
| } | |
| $('.fancy-overlay').fancybox({ | |
| your: 'settings', | |
| afterShow: function() { | |
| if ( applePie() ) { $('body').css({'position': 'fixed'}); } | |
| }, | |
| afterClose: function() { | |
| if ( applePie() ) { $('body').css({'position': ''}); } | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment