Last active
November 21, 2017 20:07
-
-
Save elpuas/a48af4354f2cbfeab84df8a99f3926fc 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
| <script type="text/javascript"> | |
| if (navigator.userAgent.match(/(iPod|iPhone|iPad)/)) { | |
| jQuery('body').css('width', '100vw'); | |
| jQuery('body').css('height', '100vh'); | |
| jQuery(document).ready(function() { | |
| jQuery ( 'a.mini-icon-off' ).click(function() { | |
| jQuery('body').css( 'overflow' , 'hidden'); | |
| console.log('click on button'); | |
| }); | |
| jQuery( '.cp-overlay-close img' ).click(function() { | |
| jQuery('body').css( 'overflow' , ' initial' ); | |
| console.log('click on close'); | |
| }); | |
| }); | |
| } | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment