(function( $ ) { /** * Logic for the builder's help tour. * * @class FLBuilderTour * @since 1.4.9 */ FLBuilderTour = { /** * A reference to the Bootstrap Tour object. * * @since 1.4.9 * @access private * @property {Tour} _tour */ _tour: null, /** * Starts the tour or restarts it if it * has already run. * * @since 1.4.9 * @method start */ start: function() { if ( ! FLBuilderTour._tour ) { FLBuilderTour._tour = new Tour( FLBuilderTour._config() ); FLBuilderTour._tour.init(); } else { FLBuilderTour._tour.restart(); } // Save existing settings first if any exist. Don't proceed if it fails. if ( ! FLBuilder._triggerSettingsSave( false, true ) ) { return; } FLBuilderTour._tour.start(); }, /** * Returns a config object for the tour. * * @since 1.4.9 * @access private * @method _config * @return {Object} */ _config: function() { var isIFrameUI = FLBuilder.UIIFrame.isEnabled(); var config = { storage : false, onStart : FLBuilderTour._onStart, onPrev : FLBuilderTour._onPrev, onNext : FLBuilderTour._onNext, onEnd : FLBuilderTour._onEnd, template : '
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus pellentesque ut lorem non cursus. Sed mauris nunc, porttitor iaculis lorem a, sollicitudin lacinia sapien. Proin euismod orci lacus, et sollicitudin leo posuere ac. In hac habitasse platea dictumst. Maecenas elit magna, consequat in turpis suscipit, ultrices rhoncus arcu. Phasellus finibus sapien nec elit tempus venenatis. Maecenas tincidunt sapien non libero maximus, in aliquam felis tincidunt. Mauris mollis ultricies facilisis. Duis condimentum dignissim tortor sit amet facilisis. Aenean gravida lacus eu risus molestie egestas. Donec ut dolor dictum, fringilla metus malesuada, viverra nunc. Maecenas ut purus ac justo aliquet lacinia. Cras vestibulum elementum tincidunt. Maecenas mattis tortor neque, consectetur dignissim neque tempor nec.