Created
May 3, 2012 19:57
-
-
Save trunalb/2588826 to your computer and use it in GitHub Desktop.
Config code
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
getConfig : function() { | |
//Default config | |
var config = { | |
size : 3, | |
maxVisibleOnOneSide : 1, | |
}; | |
//Update the config based on device | |
if($isDesktop || $native.isNative() && $os.ipad) { | |
//detect if its ipad1 or ipad2 | |
if($isDesktop || $native.getDeviceVersion() > 1) { | |
config.size = 7; | |
config.maxVisibleOnOneSide = 2; | |
} | |
} | |
return config; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment