imageviewer_terrydr
Version:
A simple jQuery image viewing plugin.
22 lines (21 loc) • 591 B
JavaScript
function Viewer(element, options) {
this.$element = $(element);
this.options = $.extend({}, Viewer.DEFAULTS, $.isPlainObject(options) && options);
this.isImg = false;
this.isBuilt = false;
this.isShown = false;
this.isViewed = false;
this.isFulled = false;
this.isPlayed = false;
this.wheeling = false;
this.playing = false;
this.fading = false;
this.tooltiping = false;
this.transitioning = false;
this.action = false;
this.target = false;
this.timeout = false;
this.index = 0;
this.length = 0;
this.init();
}