]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
make WP8 device-width hack code fully consistent between docs HTML & docs JS
authorChris Rebert <code@rebertia.com>
Sun, 19 Jan 2014 02:35:47 +0000 (18:35 -0800)
committerChris Rebert <code@rebertia.com>
Sun, 19 Jan 2014 02:35:47 +0000 (18:35 -0800)
docs/assets/js/application.js
docs/getting-started.html

index 29c72cd0e9de50a2962794bd678fb4ecce82664d..742b83ed80b0332c121f1af57e8c71b5cdc671ff 100644 (file)
     //
     // 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)
     }
 
 
index 01cb2e3d9e551ad84b70a43655b017430d12e08c..df549d841cfbc1c8ac7652af73b3006068674d34 100644 (file)
@@ -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>