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
b67cba2b
Commit
b67cba2b
authored
Jan 18, 2014
by
Chris Rebert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make WP8 device-width hack code fully consistent between docs HTML & docs JS
parent
20772462
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
docs/assets/js/application.js
docs/assets/js/application.js
+3
-4
docs/getting-started.html
docs/getting-started.html
+3
-3
No files found.
docs/assets/js/application.js
View file @
b67cba2b
...
...
@@ -18,14 +18,13 @@
//
// See Getting Started docs for more information
if
(
navigator
.
userAgent
.
match
(
/IEMobile
\/
10
\.
0/
))
{
var
msViewportStyle
=
document
.
createElement
(
'
style
'
)
;
var
msViewportStyle
=
document
.
createElement
(
'
style
'
)
msViewportStyle
.
appendChild
(
document
.
createTextNode
(
'
@-ms-viewport{width:auto!important}
'
)
);
document
.
querySelector
(
'
head
'
).
appendChild
(
msViewportStyle
);
)
document
.
querySelector
(
'
head
'
).
appendChild
(
msViewportStyle
)
}
...
...
docs/getting-started.html
View file @
b67cba2b
...
...
@@ -494,13 +494,13 @@ bootstrap/
{% highlight js %}
if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
var msViewportStyle = document.createElement(
"style"
)
var msViewportStyle = document.createElement(
'style'
)
msViewportStyle.appendChild(
document.createTextNode(
"@-ms-viewport{width:auto!important}"
'@-ms-viewport{width:auto!important}'
)
)
document.querySelector(
"head"
).appendChild(msViewportStyle)
document.querySelector(
'head'
).appendChild(msViewportStyle)
}
{% endhighlight %}
<p>
For more information and usage guidelines, read
<a
href=
"http://timkadlec.com/2013/01/windows-phone-8-and-device-width/"
>
Windows Phone 8 and Device-Width
</a>
.
</p>
...
...
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