PageSourceSearch

https://eyzhao.github.io/assets/js/ie10-viewport-bug-workaround.js

js eyzhao.github.io collected 2026-10-03 09:10:56 UTC 668 bytes, 24 lines download raw bytes

1/*!
2 * IE10 viewport hack for Surface/desktop Windows 8 bug
3 * Copyright 2014-2017 The Bootstrap Authors
4 * Copyright 2014-2017 Twitter, Inc.
5 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
6 */
7
8// See the Getting Started docs for more information:
9// https://getbootstrap.com/getting-started/#support-ie10-width
10
11(function () {
12  'use strict'
13
14  if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
15    var msViewportStyle = document.createElement('style')
16    msViewportStyle.appendChild(
17      document.createTextNode(
18        '@-ms-viewport{width:auto!important}'
19      )
20    )
21    document.head.appendChild(msViewportStyle)
22  }
23
24}())

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.