- 
      
- 
        Save imbcmdth/5637825 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
    
  
  
    
  | var isMobile = { | |
| tests:[ | |
| function() { | |
| return navigator.userAgent.match(/Android/i); | |
| }, | |
| function() { | |
| return navigator.userAgent.match(/BlackBerry/i); | |
| }, | |
| function() { | |
| return navigator.userAgent.match(/iPhone|iPad|iPod/i); | |
| }, | |
| function() { | |
| return navigator.userAgent.match(/Opera Mini/i); | |
| }, | |
| function() { | |
| return navigator.userAgent.match(/IEMobile/i); | |
| } | |
| ], | |
| any: function() { | |
| return this.tests.some(function(e){ return e(); }); | |
| } | |
| }; | |
| if (isMobile.any()) { | |
| document.getElementById(readMoreButton).style.visibility="hidden"; | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment