Skip to content

jvlahos/ios-webapp-jquery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iOS Web App Boilerplate

The following is a boilerplate of necessary components for designing iOS web applications. It assumes that you're interested in making the user add your web application to their homescreen from Mobile Safari before utilizing the application. Thus, it does a variety of device detection when the page loads and adds classes to the <body> tag for you to be able to contextually show and hide content based upon the device. In this version, we use jQuery for the device detection.

When viewing on iOS, you'll also notice that I added a basic animating arrow to point to the "Share" button area. For iPhone, it's in the bottom address bar. For iPad, it's in the top address bar.

Get Started

Wanna get started?

Step 1 Clone the repo into a folder.

$ git clone git@github.com:jvlahos/ios-webapp-jquery.git

Step 2 Navigate to the cloned repo and run bower install to pull down the necessary Javascript dependencies. More info on Bower here.

Contributing

Want to contribute? Create a new branch with some keywords followed by your initials. Perhaps use this git shorthand for creating and switching to a new branch simultaneously.

$ git checkout -b new_branch_name

Create a pull request and send along your work when it's ready and tested!

Device Detection, <body> Classes

Desktop or Mobile

  • Desktop .is-desktop
  • Mobile (Phone/Tablet) .is-mobile

iOS Devices

  • iPhone .is-iphone
  • iPhone 5 .is-phone-5
  • iPad .is-ipad

iOS Browsers

  • iOS Safari .is-ios-safari
  • iOS Chrome .is-ios-chrome
  • iOS Standalone (Webapp) .is-ios-standalone

Otherwise...

  • Other .is-not-idevice

About

Quick starter and reference for iOS web app creation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published