JAIL (Javascript Asynchronous Image Loading) is a technique created by Sebastiano Armeli-Battana to replace jQuery Lazy Load. Lazy Load was a great script but was abandoned and Sebastiano created JAIL to fill the void. The technique stops the browser from loading images that are not in the view port and loads them as they come into view.
What this module does is add a formatter to the Image field type that allows you to specify it as a JAIL image. You are also able to choose the appear method (Show, Slide, or Fade). In the settings you can check the box for user images.
To manually add a JAIL image, use href-data instead of src, put a placeholder in the src, and add the lazy class like so: <img data-href="path/to/the/real/image.gif" src="path/to/placeholder.gif" class="lazy">
Please Note: The JS will need to be downloaded, renamed to jquery.jail.js and placed in a folder named 'jail' that resides in a library folder. Example:
/sites/all/libraries/jail/jquery.jail.js
Sponsorship:
Recent work by svajlenka has been sponsored by Metal Toad Media.
This module depends on the token and the content (cck) module.
How to use
Create a content type that represents a gift item. E.g. create an image field, a link to a shopping url, etc. Most important, create a text field that stores the reservation status.
Activate the ir module (this one).
Go to admin/content/ir and select the content type(s). After saving, configure the module for each content type:
select the field which stores the status.
enter a value to be saved when someone reserves that item
enter a value that should be saved when no one has reserved it
enter a text with tokens that shows the current status.
Next, configure the permissions for the module by opening admin/user/permissions#module-ir. If you allow anonymous users to reserve items, you should enable the captcha-module and protect the reservation form. Open the captcha settings and add the form id "ir_form" and a captcha.