From 6669f251391d7e61a6ea55e2538c941f82514dd9 Mon Sep 17 00:00:00 2001 From: Scott Main Date: Fri, 15 Apr 2011 17:55:33 -0700 Subject: docs: fix snippet errors in web doc Change-Id: I65648136c2df4bde5fa3bc3495f5166c4c87fe8a --- docs/html/guide/webapps/targeting.jd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/html/guide/webapps/targeting.jd b/docs/html/guide/webapps/targeting.jd index bdc2d5e..46f769c 100644 --- a/docs/html/guide/webapps/targeting.jd +++ b/docs/html/guide/webapps/targeting.jd @@ -368,14 +368,14 @@ that the hdpi device shows a different image that's applied in CSS.

} @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); } } @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.

 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");
 }
 
-- cgit v1.1