Skip to content

Instantly share code, notes, and snippets.

Brandon Boswell brandonkboswell

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.