Skip to content

Commit

Permalink
Updated demo
Browse files Browse the repository at this point in the history
  • Loading branch information
vb committed Sep 21, 2016
1 parent 20b189c commit 362193f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,17 @@
data-src="https://www.youtube.com/embed/6hgVihWjK2c"
data-vendor="youtube">
</div>

<div
class="lazyframe"
data-src="https://www.youtube.com/embed/6hgVihWjK2c"
data-vendor="youtube">
</div>

<script type="text/javascript" src="dist/lazyframe.min.js"></script>
<script>
let elements = document.querySelector('.lazyframe');
lazyframe(elements, {
apikey: 'AIzaSyDQxRfx3HQrE0_oTFI2WHzoiGL_CM0JJfQ'
lazyframe('.lazyframe', {
apikey: 'AIzaSyDQxRfx3HQrE0_oTFI2WHzoiGL_CM0JJfQ' // Sorry, will only work on this domain
});
</script>
</body>
Expand Down

0 comments on commit 362193f

Please sign in to comment.