diff options
| author | Mark Otto <[email protected]> | 2014-04-08 20:51:56 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2014-04-08 20:51:56 -0700 |
| commit | 11a835f56662f8a93e2f8d27038c683d901a5a72 (patch) | |
| tree | e731f33d712272472b82c7c6b5de660735a78217 /docs/_includes/getting-started/browser-device-support.html | |
| parent | b57396944a39b21571848728b6ad479cd50537cd (diff) | |
| parent | 9863344e9a7ef47379c8308baa5647a07d332799 (diff) | |
| download | bootstrap-11a835f56662f8a93e2f8d27038c683d901a5a72.tar.xz bootstrap-11a835f56662f8a93e2f8d27038c683d901a5a72.zip | |
Merge branch 'master' into equal-height-experiment
Diffstat (limited to 'docs/_includes/getting-started/browser-device-support.html')
| -rw-r--r-- | docs/_includes/getting-started/browser-device-support.html | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/docs/_includes/getting-started/browser-device-support.html b/docs/_includes/getting-started/browser-device-support.html index 3e1dd3e66..183bb7668 100644 --- a/docs/_includes/getting-started/browser-device-support.html +++ b/docs/_includes/getting-started/browser-device-support.html @@ -176,11 +176,13 @@ if (navigator.userAgent.match(/IEMobile\/10\.0/)) { <p>On <code><select></code> elements, the Android stock browser will not display the side controls if there is a <code>border-radius</code> and/or <code>border</code> applied. Use the snippet of code below to remove the offending CSS and render the <code><select></code> as an unstyled element on the Android stock browser. The user agent sniffing avoids interference with Chrome, Safari, and Mozilla browsers.</p> {% highlight html %} <script> -var nua = navigator.userAgent -var isAndroid = (nua.indexOf('Mozilla/5.0') > -1 && nua.indexOf('Android ') > -1 && nua.indexOf('AppleWebKit') > -1 && nua.indexOf('Chrome') === -1) -if (isAndroid) { - $('select.form-control').removeClass('form-control').css('width', '100%') -} +$(function () { + var nua = navigator.userAgent + var isAndroid = (nua.indexOf('Mozilla/5.0') > -1 && nua.indexOf('Android ') > -1 && nua.indexOf('AppleWebKit') > -1 && nua.indexOf('Chrome') === -1) + if (isAndroid) { + $('select.form-control').removeClass('form-control').css('width', '100%') + } +}) </script> {% endhighlight %} <p>Want to see an example? <a href="http://jsbin.com/OyaqoDO/2">Check out this JS Bin demo.</a></p> |
