app = window.app || {}; app.wideSlide = 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: { fadeinLoadedSlide: false, arrowsNav: true, loop: true, keyboardNavEnabled: true, controlsInside: false, arrowsNavAutoHide: false, autoScaleSlider: true, allowCSS3: true, autoScaleSliderWidth: 978, autoScaleSliderHeight: 382, imageScaleMode: 'fill', imageAlignCenter: true, controlNavigation: 'bullets', thumbsFitInViewport: false, navigateByClick: true, startSlideId: 0, autoPlay: false, transitionType:'move', globalCaption: true, imgWidth: 1920, imgHeight: 382 } }, options); this.container = $('#' + this.options.containerId); this.initSlider(); return this; }, initSlider: function () { this.container.royalSlider(this.options.slider); return this; } };