simpleweb/UIWebView-Detect

Name: UIWebView-Detect

Owner: Simpleweb

Description: Detects if the web page is loaded within an iOS UIWebView, inside an application.

Created: 2012-06-29 10:54:44.0

Updated: 2016-05-02 15:47:45.0

Pushed: 2012-06-29 11:10:44.0

Homepage: null

Size: 95

Language: CoffeeScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

UIWebView Detect

Detects if the web page is loaded within an iOS UIWebView, inside an application.

Usage

Add uiwebview-detect.js to your page

If a UIWebView is detected a CSS class of uiwebview will be added to the <html> tag of the page

You can also call UIWebViewDetector.isUIWebView() or $.isUIWebView() in your JavaScript (returns a Boolean)

Dependencies

Requires jQuery or Zepto (remove this requirement ideally)

Copyright 2012 Simpleweb Ltd


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.