PageSourceSearch

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

js kothing.github.io collected 2026-10-03 09:28:32 UTC 508 bytes, 21 lines download raw bytes

1/*!
2 * IE10 viewport hack for Surface/desktop Windows 8 bug
3 */
4
5// See the Getting Started docs for more information:
6// https://getbootstrap.com/getting-started/#support-ie10-width
7
8(function () {
9  'use strict'
10
11  if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
12    var msViewportStyle = document.createElement('style')
13    msViewportStyle.appendChild(
14      document.createTextNode(
15        '@-ms-viewport{width:auto!important}'
16      )
17    )
18    document.head.appendChild(msViewportStyle)
19  }
20
21}())

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.