qs.defineNS('app.wideSlide'); /** * @requires $ jQuery * @requires $.fn.royalSlider Royal Slider */ app.wideSlide.Slide = qs.createObject(); app.wideSlide.Slide.prototype = { initialize: function (options) { this.options = $.extend(true, { containerId: undefined, slider: { arrowsNav: true, loop: true, keyboardNavEnabled: true, autoScaleSliderWidth: 1060, autoScaleSliderHeight: 325, controlsInside: false, arrowsNavAutoHide: false, autoScaleSlider: true, allowCSS3: true, imageScaleMode: 'fit', imageAlignCenter: false, controlNavigation: 'bullets', thumbsFitInViewport: false, navigateByClick: true, startSlideId: 0, autoPlay: false, transitionType:'move', globalCaption: true, imgWidth: 530, imgHeight: 325, slidesSpacing: 0 /*arrowsNav: true, loop: true, keyboardNavEnabled: true, controlsInside: false, arrowsNavAutoHide: false, autoScaleSlider: true, allowCSS3: true, autoScaleSliderWidth: 481, autoScaleSliderHeight: 325, imageScaleMode: 'fill', imageAlignCenter: false, controlNavigation: 'bullets', thumbsFitInViewport: false, navigateByClick: true, startSlideId: 0, autoPlay: false, transitionType:'move', globalCaption: true, imgWidth: 481, imgHeight: 325, slidesSpacing: 0, minSlideOffset: 0*/ } }, options); this.container = $('#' + this.options.containerId); this.initSlider(); return this; }, initSlider: function () { this.container.royalSlider(this.options.slider); var slider = this.container.data('royalSlider'); slider.ev.on('rsBeforeAnimStart', function (event) { $('.rsContent').show(); }); slider.ev.trigger('rsBeforeAnimStart'); return this; } };