Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74c890a5 authored by Scott Main's avatar Scott Main Committed by Android Git Automerger
Browse files

am 1f07f125: am 6669f251: docs: fix snippet errors in web doc

* commit '1f07f125':
  docs: fix snippet errors in web doc
parents a9378485 1f07f125
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -368,14 +368,14 @@ that the hdpi device shows a different image that's applied in CSS.</p>
}

&#64;media screen and (-webkit-device-pixel-ratio: 1.5) {
    // CSS for high-density screens
    /* CSS for high-density screens */
    #header {
        background:url(high-density-image.png);
    }
}

&#64;media screen and (-webkit-device-pixel-ratio: 0.75) {
    // CSS for low-density screens
    /* CSS for low-density screens */
    #header {
        background:url(low-density-image.png);
    }
@@ -426,7 +426,7 @@ target to affect how your web page is scaled for different screen densities.</p>
<pre>
if (window.devicePixelRatio == 1.5) {
  alert("This is a high-density screen");
} else if (window.devicePixelRation == 0.75) {
} else if (window.devicePixelRatio == 0.75) {
  alert("This is a low-density screen");
}
</pre>