Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Easy JAIL implementation snippets
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="/j/jquery.js"><\/script>')</script>
{exp:easy_jail:js config="{offset:300}"}
{exp:easy_jail:prep blank_img="/i/blank.gif" class_name="my_class"}
{body}
{/exp:easy_jail:prep}
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="/j/jquery.js"><\/script>')</script>
{exp:easy_jail:js}
{exp:easy_jail:prep}
{body}
{/exp:easy_jail:prep}
$(function(){
$('img.jail').jail();
});
<img class="jail" src="blank.gif" data-src="foo.png" alt=""/>
<noscript>
<img src="foo.png" alt=""/>
<noscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.