// Generated by CoffeeScript 1.9.0 /* FilmRoll (for jQuery) version: 0.1.16 (4/13/15) @requires $ >= v1.4 By Noel Peden Examples at http://straydogstudio.github.io/film_roll Licensed under the MIT: http://www.opensource.org/licenses/mit-license.php Usage: var film_roll = new FilmRoll({container: '#container_id', OPTIONS}); */ var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; (function($) { this.FilmRoll = (function() { function FilmRoll(_at_options) { var inst; this.options = _at_options != null ? _at_options : {}; this.rotateRight = __bind(this.rotateRight, this); this.rotateLeft = __bind(this.rotateLeft, this); this.resize = __bind(this.resize, this); this.moveRight = __bind(this.moveRight, this); this.moveLeft = __bind(this.moveLeft, this); this.configureWidths = __bind(this.configureWidths, this); this.configureSwipe = __bind(this.configureSwipe, this); this.configureScroll = __bind(this.configureScroll, this); this.configureLoad = __bind(this.configureLoad, this); this.configureHover = __bind(this.configureHover, this); this.clearScroll = __bind(this.clearScroll, this); if (this.options.container) { this.div = $(this.options.container); if (this.div.length) { inst = this.div.data('film_roll_instance'); if (inst) { return inst; } inst = this.configure(); this.div.data('film_roll_instance', inst); return inst; } } } FilmRoll.prototype.configure = function() { var first_child; this.children = this.div.children(); this.children.wrapAll('
'); this.children.wrapAll(''); this.wrapper = this.div.find('.film_roll_wrapper'); this.shuttle = this.div.find('.film_roll_shuttle'); this.rotation = []; this.shuttle.width(this.options.shuttle_width ? parseInt(this.options.shuttle_width, 10) : 10000); if (this.options.start_height) { this.wrapper.height(parseInt(this.options.start_height, 10)); } if (this.options.vertical_center) { this.shuttle.addClass('vertical_center'); } if (!(this.options.no_css === true || document.film_roll_styles_added)) { $("").appendTo('head'); document.film_roll_styles_added = true; } if (this.options.pager !== false) { this.pager = $('