source: flex_extract.git/documentation/FORD/V5/Doc_original/media/js/ie10-viewport-bug-workaround.js @ ee06999

ctbtodev
Last change on this file since ee06999 was ee06999, checked in by pesei <petra seibert @…>, 5 years ago

Initial version of Fortran documentation

with FORD v5

  • Property mode set to 100644
File size: 694 bytes
Line 
1/*!
2 * IE10 viewport hack for Surface/desktop Windows 8 bug
3 * Copyright 2014 Twitter, Inc.
4 * Licensed under the Creative Commons Attribution 3.0 Unported License. For
5 * details, see http://creativecommons.org/licenses/by/3.0/.
6 */
7
8// See the Getting Started docs for more information:
9// http://getbootstrap.com/getting-started/#support-ie10-width
10
11(function () {
12  'use strict';
13  if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
14    var msViewportStyle = document.createElement('style')
15    msViewportStyle.appendChild(
16      document.createTextNode(
17        '@-ms-viewport{width:auto!important}'
18      )
19    )
20    document.querySelector('head').appendChild(msViewportStyle)
21  }
22})();
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG