Before/After image formatter

Component type

module

Maintenance status

Development status

Downloads

3158

Component created

Component changed

Before/After image formatter provides a field formatter for image fields.
This module was created after the example of the NY times article In the Future, the City’s Streets Are to Behave.

1.x version

Before/After image formatter depends on the beforeafter jQuery plugin.

Autoload JS

Component type

module

Maintenance status

Development status

Downloads

3448

Component created

Component changed

Sponsored and developed by TrestleMedia

Autload JS automatically loads javascript files found in your theme's "js" subfolder.

Which files it loads depends on which page the user is viewing and where you put the files. It will load all files in the 'all' folder on every page, or all files in the 'front' folder on the front page. Options for page path, node type, first component of the URL, and more exist.

For example, as soon as it's turned on, your javascript files are loaded automatically just by naming them right:

path/to/theme/js/all.js - Loaded on all pages
path/to/theme/js/front/file1.js - Loaded on front page
path/to/theme/js/front/file2.js - Also loaded on front page
path/to/theme/js/nodetype--blog.js - Loaded on blog nodes
etc.