Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
fe11ac77
Commit
fe11ac77
authored
Apr 24, 2014
by
Mark Otto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13390 from twbs/ie10-viewport-bug
add IE10 viewport bug workaround to examples
parents
0e48cb2f
448086f9
Changes
24
Show whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
86 additions
and
14 deletions
+86
-14
docs/_includes/header.html
docs/_includes/header.html
+2
-0
docs/assets/js/_src/application.js
docs/assets/js/_src/application.js
+0
-14
docs/assets/js/ie10-viewport-bug-workaround.js
docs/assets/js/ie10-viewport-bug-workaround.js
+21
-0
docs/examples/blog/index.html
docs/examples/blog/index.html
+3
-0
docs/examples/carousel/index.html
docs/examples/carousel/index.html
+3
-0
docs/examples/cover/index.html
docs/examples/cover/index.html
+3
-0
docs/examples/dashboard/index.html
docs/examples/dashboard/index.html
+3
-0
docs/examples/equal-height-columns/index.html
docs/examples/equal-height-columns/index.html
+3
-0
docs/examples/grid/index.html
docs/examples/grid/index.html
+3
-0
docs/examples/jumbotron-narrow/index.html
docs/examples/jumbotron-narrow/index.html
+3
-0
docs/examples/jumbotron/index.html
docs/examples/jumbotron/index.html
+3
-0
docs/examples/justified-nav/index.html
docs/examples/justified-nav/index.html
+3
-0
docs/examples/navbar-fixed-top/index.html
docs/examples/navbar-fixed-top/index.html
+3
-0
docs/examples/navbar-static-top/index.html
docs/examples/navbar-static-top/index.html
+3
-0
docs/examples/navbar/index.html
docs/examples/navbar/index.html
+3
-0
docs/examples/non-responsive/index.html
docs/examples/non-responsive/index.html
+3
-0
docs/examples/offcanvas/index.html
docs/examples/offcanvas/index.html
+3
-0
docs/examples/rtl/index.html
docs/examples/rtl/index.html
+3
-0
docs/examples/signin/index.html
docs/examples/signin/index.html
+3
-0
docs/examples/starter-template/index.html
docs/examples/starter-template/index.html
+3
-0
docs/examples/sticky-footer-navbar/index.html
docs/examples/sticky-footer-navbar/index.html
+3
-0
docs/examples/sticky-footer/index.html
docs/examples/sticky-footer/index.html
+3
-0
docs/examples/theme/index.html
docs/examples/theme/index.html
+3
-0
docs/examples/tooltip-viewport/index.html
docs/examples/tooltip-viewport/index.html
+3
-0
No files found.
docs/_includes/header.html
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]>
...
...
docs/assets/js/_src/application.js
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
)
...
...
docs/assets/js/ie10-viewport-bug-workaround.js
0 → 100644
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
)
}
})();
docs/examples/blog/index.html
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>
...
...
docs/examples/carousel/index.html
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>
...
...
docs/examples/cover/index.html
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>
...
...
docs/examples/dashboard/index.html
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>
...
...
docs/examples/equal-height-columns/index.html
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>
...
...
docs/examples/grid/index.html
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>
...
...
docs/examples/jumbotron-narrow/index.html
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>
...
...
docs/examples/jumbotron/index.html
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>
...
...
docs/examples/justified-nav/index.html
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>
...
...
docs/examples/navbar-fixed-top/index.html
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>
...
...
docs/examples/navbar-static-top/index.html
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>
...
...
docs/examples/navbar/index.html
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>
...
...
docs/examples/non-responsive/index.html
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>
...
...
docs/examples/offcanvas/index.html
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>
...
...
docs/examples/rtl/index.html
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>
...
...
docs/examples/signin/index.html
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>
...
...
docs/examples/starter-template/index.html
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>
...
...
docs/examples/sticky-footer-navbar/index.html
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>
...
...
docs/examples/sticky-footer/index.html
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>
...
...
docs/examples/theme/index.html
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>
...
...
docs/examples/tooltip-viewport/index.html
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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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