Commit 5f311790 authored by Chris Rebert's avatar Chris Rebert

more fixes for #9513

parent 5a4401ac
...@@ -228,13 +228,13 @@ bootstrap/ ...@@ -228,13 +228,13 @@ bootstrap/
{% highlight js %} {% highlight js %}
if (navigator.userAgent.match(/IEMobile\/10\.0/)) { if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
var msViewportStyle = document.createElement("style"); var msViewportStyle = document.createElement("style")
msViewportStyle.appendChild( msViewportStyle.appendChild(
document.createTextNode( document.createTextNode(
"@-ms-viewport{width:auto!important}" "@-ms-viewport{width:auto!important}"
) )
); )
document.getElementsByTagName("head")[0].appendChild(msViewportStyle); document.getElementsByTagName("head")[0].appendChild(msViewportStyle)
} }
{% endhighlight %} {% 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> <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>
......
...@@ -588,7 +588,7 @@ $('body').scrollspy({ target: '#navbar-example' }) ...@@ -588,7 +588,7 @@ $('body').scrollspy({ target: '#navbar-example' })
{% highlight js %} {% highlight js %}
$('[data-spy="scroll"]').each(function () { $('[data-spy="scroll"]').each(function () {
var $spy = $(this).scrollspy('refresh') var $spy = $(this).scrollspy('refresh')
}); })
{% endhighlight %} {% endhighlight %}
...@@ -731,7 +731,7 @@ $('#myTab li:eq(2) a').tab('show') // Select third tab (0-indexed) ...@@ -731,7 +731,7 @@ $('#myTab li:eq(2) a').tab('show') // Select third tab (0-indexed)
<script> <script>
$(function () { $(function () {
$('#myTab a:last').tab('show'); $('#myTab a:last').tab('show')
}) })
</script> </script>
{% endhighlight %} {% endhighlight %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment