]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Add basic codepen and vid link for interchange
authorKevin Ball <kmball11@gmail.com>
Mon, 15 May 2017 23:10:52 +0000 (16:10 -0700)
committerKevin Ball <kmball11@gmail.com>
Mon, 15 May 2017 23:10:52 +0000 (16:10 -0700)
docs/pages/interchange.md

index e624ec6fa2d2f5fa4e780b81b5f1d97b8826b54f..7b0306ab2a47388155661eb068ec05a534b352fc 100644 (file)
@@ -3,9 +3,6 @@ title: Interchange
 description: Interchange uses media queries to dynamically load responsive content that is appropriate for the user's device.
 js: js/foundation.interchange.js
 video: '1Nr12_1rUpo'
----
-
-<img data-interchange="[assets/img/interchange/small.jpg, small], [assets/img/interchange/medium.jpg, medium], [assets/img/interchange/large.jpg, large]">
 
 ---
 
@@ -13,12 +10,22 @@ video: '1Nr12_1rUpo'
 
 Bandwidth is precious on mobile networks, so it helps to serve users on smaller screens a smaller image. Using Interchange, you can serve up specific images for users depending on their screen size. CSS media queries are used to determine what size the user's device is, and which image should be served.
 
-In the above example, we have three different sizes of image: one for small screens, one for medium, and one for large. Use the below format to set up a responsive image. The image will change automatically as the browser resizes.
+In the below example, we have three different sizes of image: one for small screens, one for medium, and one for large. Use the below format to set up a responsive image. The image will change automatically as the browser resizes.
+
+<p>
+  <a class="" data-open-video="0:50"><img src="{{root}}assets/img/icons/watch-video-icon.svg" class="video-icon" height="30" width="30" alt=""> Watch this part in video</a>
+</p>
+
+<div class="docs-codepen-container">
+  <a class="codepen-logo-link" href="https://codepen.io/ZURBFoundation/pen/JNZQGB?editors=1000" target="_blank"><img src="{{root}}assets/img/logos/edit-in-browser.svg" class="" height="" width="" alt="edit on codepen button"></a>
+</div>
 
 ```html
 <img data-interchange="[assets/img/interchange/small.jpg, small], [assets/img/interchange/medium.jpg, medium], [assets/img/interchange/large.jpg, large]">
 ```
 
+<img data-interchange="[assets/img/interchange/small.jpg, small], [assets/img/interchange/medium.jpg, medium], [assets/img/interchange/large.jpg, large]">
+
 The image set is a comma-separated list of items with this format:
 
 ```