Skip to content

Commit

Permalink
Adding choose to example code
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidOliver committed Mar 1, 2012
1 parent 30b151a commit 0e6a345
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions README.markdown
Expand Up @@ -21,15 +21,17 @@ CSS, JavaScript, image sizes and HTML source order are all examples of things yo

#### Image-sizing via JIT

<xsl:when test="$device-categorizr='desktop'">
<img src="{$root}/image/1/1000/0/{image/@path}/{image/filename}"/>
</xsl:when>
<xsl:when test="$device-categorizr='tv' or $device-categorizr='tablet'">
<img src="{$root}/image/1/800/0/{image/@path}/{image/filename}"/>
</xsl:when>
<xsl:otherwise>
<img src="{$root}/image/1/500/0/{image/@path}/{image/filename}"/>
</xsl:otherwise>
<xsl:choose>
<xsl:when test="$device-categorizr='desktop'">
<img src="{$root}/image/1/1000/0/{image/@path}/{image/filename}"/>
</xsl:when>
<xsl:when test="$device-categorizr='tv' or $device-categorizr='tablet'">
<img src="{$root}/image/1/800/0/{image/@path}/{image/filename}"/>
</xsl:when>
<xsl:otherwise>
<img src="{$root}/image/1/500/0/{image/@path}/{image/filename}"/>
</xsl:otherwise>
</xsl:choose>

### Allowing visitors the option

Expand Down

0 comments on commit 0e6a345

Please sign in to comment.