Skip to content

Instantly share code, notes, and snippets.

Brandon Boswell brandonkboswell

Block or report user

Report or block brandonkboswell

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@brandonkboswell
brandonkboswell / app.js
Created Sep 5, 2013
How To Detect IOS7 in Javascript/Phonegap
View app.js
//On Page Load or Document Ready or App Launch
var viewport = getViewport();
if ((viewport[0] == 320 && viewport[1] == 568) || (viewport[0] == 320 && viewport[1] == 480)) {
$('html').addClass('ios7');
}
You can’t perform that action at this time.