Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
fe11ac77
Commit
fe11ac77
authored
10 years ago
by
Mark Otto
Browse files
Options
Download
Plain Diff
Merge pull request #13390 from twbs/ie10-viewport-bug
add IE10 viewport bug workaround to examples
parents
0e48cb2f
448086f9
Changes
24
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
docs/_includes/header.html
+2
-0
docs/_includes/header.html
docs/assets/js/_src/application.js
+0
-14
docs/assets/js/_src/application.js
docs/assets/js/ie10-viewport-bug-workaround.js
+21
-0
docs/assets/js/ie10-viewport-bug-workaround.js
docs/examples/blog/index.html
+3
-0
docs/examples/blog/index.html
docs/examples/carousel/index.html
+3
-0
docs/examples/carousel/index.html
docs/examples/cover/index.html
+3
-0
docs/examples/cover/index.html
docs/examples/dashboard/index.html
+3
-0
docs/examples/dashboard/index.html
docs/examples/equal-height-columns/index.html
+3
-0
docs/examples/equal-height-columns/index.html
docs/examples/grid/index.html
+3
-0
docs/examples/grid/index.html
docs/examples/jumbotron-narrow/index.html
+3
-0
docs/examples/jumbotron-narrow/index.html
docs/examples/jumbotron/index.html
+3
-0
docs/examples/jumbotron/index.html
docs/examples/justified-nav/index.html
+3
-0
docs/examples/justified-nav/index.html
docs/examples/navbar-fixed-top/index.html
+3
-0
docs/examples/navbar-fixed-top/index.html
docs/examples/navbar-static-top/index.html
+3
-0
docs/examples/navbar-static-top/index.html
docs/examples/navbar/index.html
+3
-0
docs/examples/navbar/index.html
docs/examples/non-responsive/index.html
+3
-0
docs/examples/non-responsive/index.html
docs/examples/offcanvas/index.html
+3
-0
docs/examples/offcanvas/index.html
docs/examples/rtl/index.html
+3
-0
docs/examples/rtl/index.html
docs/examples/signin/index.html
+3
-0
docs/examples/signin/index.html
docs/examples/starter-template/index.html
+3
-0
docs/examples/starter-template/index.html
with
74 additions
and
14 deletions
+74
-14
docs/_includes/header.html
+
2
-
0
View file @
fe11ac77
...
...
@@ -19,6 +19,8 @@
<!-- Documentation extras -->
<link
href=
"../assets/css/docs.min.css"
rel=
"stylesheet"
>
<!--[if lt IE 9]><script src="../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script
src=
"../../assets/js/ie10-viewport-bug-workaround.js"
></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
...
...
This diff is collapsed.
Click to expand it.
docs/assets/js/_src/application.js
+
0
-
14
View file @
fe11ac77
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
docs/assets/js/ie10-viewport-bug-workaround.js
0 → 100644
+
21
-
0
View file @
fe11ac77
/*!
* IE10 viewport hack for Surface/desktop Windows 8 bug
* Copyright 2014 Twitter, Inc.
* Licensed under the Creative Commons Attribution 3.0 Unported License. For
* details, see http://creativecommons.org/licenses/by/3.0/.
*/
// See the Getting Started docs for more information:
// http://getbootstrap.com/getting-started/#support-ie10-width
(
function
()
{
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
)
}
})();
This diff is collapsed.
Click to expand it.
docs/examples/blog/index.html
+
3
-
0
View file @
fe11ac77
...
...
@@ -19,6 +19,9 @@
<!-- Just for debugging purposes. Don't actually copy this line! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script
src=
"../../assets/js/ie10-viewport-bug-workaround.js"
></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.1/html5shiv.min.js"></script>
...
...
This diff is collapsed.
Click to expand it.
docs/examples/carousel/index.html
+
3
-
0
View file @
fe11ac77
...
...
@@ -16,6 +16,9 @@
<!-- Just for debugging purposes. Don't actually copy this line! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script
src=
"../../assets/js/ie10-viewport-bug-workaround.js"
></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.1/html5shiv.min.js"></script>
...
...
This diff is collapsed.
Click to expand it.
docs/examples/cover/index.html
+
3
-
0
View file @
fe11ac77
...
...
@@ -19,6 +19,9 @@
<!-- Just for debugging purposes. Don't actually copy this line! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script
src=
"../../assets/js/ie10-viewport-bug-workaround.js"
></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.1/html5shiv.min.js"></script>
...
...
This diff is collapsed.
Click to expand it.
docs/examples/dashboard/index.html
+
3
-
0
View file @
fe11ac77
...
...
@@ -19,6 +19,9 @@
<!-- Just for debugging purposes. Don't actually copy this line! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script
src=
"../../assets/js/ie10-viewport-bug-workaround.js"
></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.1/html5shiv.min.js"></script>
...
...
This diff is collapsed.
Click to expand it.
docs/examples/equal-height-columns/index.html
+
3
-
0
View file @
fe11ac77
...
...
@@ -19,6 +19,9 @@
<!-- Just for debugging purposes. Don't actually copy this line! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script
src=
"../../assets/js/ie10-viewport-bug-workaround.js"
></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.1/html5shiv.min.js"></script>
...
...
This diff is collapsed.
Click to expand it.
docs/examples/grid/index.html
+
3
-
0
View file @
fe11ac77
...
...
@@ -19,6 +19,9 @@
<!-- Just for debugging purposes. Don't actually copy this line! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script
src=
"../../assets/js/ie10-viewport-bug-workaround.js"
></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.1/html5shiv.min.js"></script>
...
...
This diff is collapsed.
Click to expand it.
docs/examples/jumbotron-narrow/index.html
+
3
-
0
View file @
fe11ac77
...
...
@@ -19,6 +19,9 @@
<!-- Just for debugging purposes. Don't actually copy this line! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script
src=
"../../assets/js/ie10-viewport-bug-workaround.js"
></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.1/html5shiv.min.js"></script>
...
...
This diff is collapsed.
Click to expand it.
docs/examples/jumbotron/index.html
+
3
-
0
View file @
fe11ac77
...
...
@@ -19,6 +19,9 @@
<!-- Just for debugging purposes. Don't actually copy this line! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script
src=
"../../assets/js/ie10-viewport-bug-workaround.js"
></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.1/html5shiv.min.js"></script>
...
...
This diff is collapsed.
Click to expand it.
docs/examples/justified-nav/index.html
+
3
-
0
View file @
fe11ac77
...
...
@@ -19,6 +19,9 @@
<!-- Just for debugging purposes. Don't actually copy this line! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script
src=
"../../assets/js/ie10-viewport-bug-workaround.js"
></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.1/html5shiv.min.js"></script>
...
...
This diff is collapsed.
Click to expand it.
docs/examples/navbar-fixed-top/index.html
+
3
-
0
View file @
fe11ac77
...
...
@@ -19,6 +19,9 @@
<!-- Just for debugging purposes. Don't actually copy this line! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script
src=
"../../assets/js/ie10-viewport-bug-workaround.js"
></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.1/html5shiv.min.js"></script>
...
...
This diff is collapsed.
Click to expand it.
docs/examples/navbar-static-top/index.html
+
3
-
0
View file @
fe11ac77
...
...
@@ -19,6 +19,9 @@
<!-- Just for debugging purposes. Don't actually copy this line! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script
src=
"../../assets/js/ie10-viewport-bug-workaround.js"
></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.1/html5shiv.min.js"></script>
...
...
This diff is collapsed.
Click to expand it.
docs/examples/navbar/index.html
+
3
-
0
View file @
fe11ac77
...
...
@@ -19,6 +19,9 @@
<!-- Just for debugging purposes. Don't actually copy this line! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script
src=
"../../assets/js/ie10-viewport-bug-workaround.js"
></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.1/html5shiv.min.js"></script>
...
...
This diff is collapsed.
Click to expand it.
docs/examples/non-responsive/index.html
+
3
-
0
View file @
fe11ac77
...
...
@@ -21,6 +21,9 @@
<!-- Just for debugging purposes. Don't actually copy this line! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script
src=
"../../assets/js/ie10-viewport-bug-workaround.js"
></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.1/html5shiv.min.js"></script>
...
...
This diff is collapsed.
Click to expand it.
docs/examples/offcanvas/index.html
+
3
-
0
View file @
fe11ac77
...
...
@@ -19,6 +19,9 @@
<!-- Just for debugging purposes. Don't actually copy this line! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script
src=
"../../assets/js/ie10-viewport-bug-workaround.js"
></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.1/html5shiv.min.js"></script>
...
...
This diff is collapsed.
Click to expand it.
docs/examples/rtl/index.html
+
3
-
0
View file @
fe11ac77
...
...
@@ -19,6 +19,9 @@
<!-- Just for debugging purposes. Don't actually copy this line! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script
src=
"../../assets/js/ie10-viewport-bug-workaround.js"
></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.1/html5shiv.min.js"></script>
...
...
This diff is collapsed.
Click to expand it.
docs/examples/signin/index.html
+
3
-
0
View file @
fe11ac77
...
...
@@ -19,6 +19,9 @@
<!-- Just for debugging purposes. Don't actually copy this line! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script
src=
"../../assets/js/ie10-viewport-bug-workaround.js"
></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.1/html5shiv.min.js"></script>
...
...
This diff is collapsed.
Click to expand it.
docs/examples/starter-template/index.html
+
3
-
0
View file @
fe11ac77
...
...
@@ -19,6 +19,9 @@
<!-- Just for debugging purposes. Don't actually copy this line! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script
src=
"../../assets/js/ie10-viewport-bug-workaround.js"
></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.1/html5shiv.min.js"></script>
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment