1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-26 05:19:15 +02:00

add IE10 viewport bug workaround to examples

Closes #13379.
This commit is contained in:
Chris Rebert
2014-04-20 16:09:47 -07:00
parent a69bc3bc09
commit 448086f95a
24 changed files with 86 additions and 14 deletions

View File

@@ -14,20 +14,6 @@
$(function () {
// IE10 viewport hack for Surface/desktop Windows 8 bug
//
// See Getting Started docs for more information
if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
var msViewportStyle = document.createElement('style')
msViewportStyle.appendChild(
document.createTextNode(
'@-ms-viewport{width:auto!important}'
)
)
document.querySelector('head').appendChild(msViewportStyle)
}
var $window = $(window)
var $body = $(document.body)