| 
									
										
										
										
											2016-03-12 06:24:35 +03:00
										 |  |  | /********************************************************************** | 
					
						
							|  |  |  | *  | 
					
						
							|  |  |  | * | 
					
						
							|  |  |  | * | 
					
						
							|  |  |  | **********************************************************************/ | 
					
						
							| 
									
										
										
										
											2016-08-21 02:19:24 +03:00
										 |  |  | ((typeof define)[0]=='u'?function(f){module.exports=f(require)}:define) | 
					
						
							|  |  |  | (function(require){ var module={} // make module AMD/node compatible...
 | 
					
						
							| 
									
										
										
										
											2016-08-20 22:49:36 +03:00
										 |  |  | /*********************************************************************/ | 
					
						
							| 
									
										
										
										
											2016-03-12 06:24:35 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | var toggler = require('lib/toggler') | 
					
						
							|  |  |  | var actions = require('lib/actions') | 
					
						
							|  |  |  | var features = require('lib/features') | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | var core = require('features/core') | 
					
						
							|  |  |  | var base = require('features/base') | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-04-14 18:31:10 +03:00
										 |  |  | var widgets = require('features/ui-widgets') | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-29 03:09:31 +03:00
										 |  |  | var browse = require('lib/widget/browse') | 
					
						
							|  |  |  | var overlay = require('lib/widget/overlay') | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-12 06:24:35 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /*********************************************************************/ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-30 15:24:01 +03:00
										 |  |  | // NOTE: this uses ui-chrome-hidden workspace to set the initial state
 | 
					
						
							|  |  |  | // 		of the slideshow workspace.
 | 
					
						
							|  |  |  | //
 | 
					
						
							| 
									
										
										
										
											2016-03-29 05:17:50 +03:00
										 |  |  | // XXX would be a good idea to add provision for a timer to indicate 
 | 
					
						
							|  |  |  | // 		slideshow progress/status... 
 | 
					
						
							| 
									
										
										
										
											2016-04-14 18:37:10 +03:00
										 |  |  | // 			- make this a separate feature with a toggler
 | 
					
						
							| 
									
										
										
										
											2016-03-12 06:24:35 +03:00
										 |  |  | var SlideshowActions = actions.Actions({ | 
					
						
							|  |  |  | 	config: { | 
					
						
							| 
									
										
										
										
											2016-03-29 05:22:36 +03:00
										 |  |  | 		'slideshow-looping': 'on', | 
					
						
							|  |  |  | 		'slideshow-direction': 'forward', | 
					
						
							|  |  |  | 		'slideshow-interval': '3s', | 
					
						
							| 
									
										
										
										
											2016-04-14 16:37:58 +03:00
										 |  |  | 		'slideshow-interval-max-count': 7, | 
					
						
							| 
									
										
										
										
											2016-03-27 20:07:48 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-29 05:22:36 +03:00
										 |  |  | 		'slideshow-intervals': [ | 
					
						
							| 
									
										
										
										
											2016-03-27 20:07:48 +03:00
										 |  |  | 			'0.2s', | 
					
						
							| 
									
										
										
										
											2016-03-29 03:09:31 +03:00
										 |  |  | 			'1s', | 
					
						
							| 
									
										
										
										
											2016-03-27 20:07:48 +03:00
										 |  |  | 			'3s', | 
					
						
							|  |  |  | 			'5s', | 
					
						
							|  |  |  | 			'7s', | 
					
						
							|  |  |  | 		], | 
					
						
							| 
									
										
										
										
											2016-03-12 06:24:35 +03:00
										 |  |  | 	}, | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-04-07 05:41:06 +03:00
										 |  |  | 	toggleSlideshow: ['Slideshow/Slideshow quick toggle', | 
					
						
							| 
									
										
										
										
											2016-03-28 21:46:05 +03:00
										 |  |  | 		toggler.CSSClassToggler( | 
					
						
							| 
									
										
										
										
											2017-05-16 00:26:37 +03:00
										 |  |  | 			function(){ return this.dom },  | 
					
						
							| 
									
										
										
										
											2016-03-28 21:46:05 +03:00
										 |  |  | 			'slideshow-running', | 
					
						
							|  |  |  | 			function(state){ | 
					
						
							|  |  |  | 				// start...
 | 
					
						
							|  |  |  | 				if(state == 'on'){ | 
					
						
							|  |  |  | 					var that = this | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 					// reset the timer...
 | 
					
						
							|  |  |  | 					// NOTE: this means we were in a slideshow mode so we do not
 | 
					
						
							|  |  |  | 					// 		need to prepare...
 | 
					
						
							|  |  |  | 					if(this.__slideshouw_timer){ | 
					
						
							| 
									
										
										
										
											2016-03-29 03:09:31 +03:00
										 |  |  | 						this.__slideshouw_timer != 'suspended' | 
					
						
							|  |  |  | 							&& clearInterval(this.__slideshouw_timer) | 
					
						
							| 
									
										
										
										
											2016-03-28 21:46:05 +03:00
										 |  |  | 						delete this.__slideshouw_timer | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 					// prepare for the slideshow...
 | 
					
						
							|  |  |  | 					} else { | 
					
						
							| 
									
										
										
										
											2016-05-07 00:47:52 +03:00
										 |  |  | 						// single image mode...
 | 
					
						
							|  |  |  | 						this.toggleSingleImage('on') | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-29 00:31:50 +03:00
										 |  |  | 						// save current workspace...
 | 
					
						
							| 
									
										
										
										
											2016-05-07 00:47:52 +03:00
										 |  |  | 						this.pushWorkspace() | 
					
						
							| 
									
										
										
										
											2016-03-29 00:31:50 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-29 05:17:50 +03:00
										 |  |  | 						// construct the slideshow workspace if it does
 | 
					
						
							|  |  |  | 						// not exist...
 | 
					
						
							|  |  |  | 						//
 | 
					
						
							|  |  |  | 						// NOTE: this is partially redundant with the 
 | 
					
						
							|  |  |  | 						// 		loadWorkspace.pre handler in the feature...
 | 
					
						
							| 
									
										
										
										
											2016-03-29 00:31:50 +03:00
										 |  |  | 						if(this.workspaces['slideshow'] == null){ | 
					
						
							| 
									
										
										
										
											2016-03-30 15:24:01 +03:00
										 |  |  | 							this.loadWorkspace('ui-chrome-hidden')  | 
					
						
							| 
									
										
										
										
											2016-03-29 00:31:50 +03:00
										 |  |  | 							this.saveWorkspace('slideshow')  | 
					
						
							| 
									
										
										
										
											2016-03-29 05:17:50 +03:00
										 |  |  | 						} | 
					
						
							| 
									
										
										
										
											2016-03-29 00:31:50 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 						// load the slideshow workspace...
 | 
					
						
							| 
									
										
										
										
											2016-03-29 05:17:50 +03:00
										 |  |  | 						this.loadWorkspace('slideshow') | 
					
						
							| 
									
										
										
										
											2016-03-28 21:46:05 +03:00
										 |  |  | 					} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-15 03:55:36 +03:00
										 |  |  | 					// disable getting in/out of single image mode via clicks... 
 | 
					
						
							|  |  |  | 					if(this.config['single-image-toggle-on-click']){ | 
					
						
							|  |  |  | 						this.config['single-image-toggle-on-click'] = false | 
					
						
							|  |  |  | 					} | 
					
						
							| 
									
										
										
										
											2017-03-14 03:11:31 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-28 21:46:05 +03:00
										 |  |  | 					// start the timer... 
 | 
					
						
							|  |  |  | 					this.__slideshouw_timer = setInterval(function(){ | 
					
						
							|  |  |  | 						var cur = that.current | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 						// next step...
 | 
					
						
							| 
									
										
										
										
											2016-03-29 05:22:36 +03:00
										 |  |  | 						that.config['slideshow-direction'] == 'forward' ? | 
					
						
							| 
									
										
										
										
											2016-03-28 21:46:05 +03:00
										 |  |  | 							that.nextImage() | 
					
						
							|  |  |  | 							: that.prevImage() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 						// we have reached the end...
 | 
					
						
							| 
									
										
										
										
											2016-03-29 03:09:31 +03:00
										 |  |  | 						if(that.current == cur){ | 
					
						
							|  |  |  | 							// loop...
 | 
					
						
							| 
									
										
										
										
											2016-03-29 05:22:36 +03:00
										 |  |  | 							if(that.config['slideshow-looping'] == 'on'){ | 
					
						
							|  |  |  | 								that.config['slideshow-direction'] == 'forward' ? | 
					
						
							| 
									
										
										
										
											2016-03-29 03:09:31 +03:00
										 |  |  | 									that.firstImage() | 
					
						
							|  |  |  | 									: that.lastImage() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 							// stop...
 | 
					
						
							|  |  |  | 							} else { | 
					
						
							|  |  |  | 								that.toggleSlideshow('off') | 
					
						
							|  |  |  | 							} | 
					
						
							| 
									
										
										
										
											2016-03-28 21:46:05 +03:00
										 |  |  | 						} | 
					
						
							| 
									
										
										
										
											2016-03-29 05:22:36 +03:00
										 |  |  | 					}, Date.str2ms(this.config['slideshow-interval'] || '3s')) | 
					
						
							| 
									
										
										
										
											2016-03-28 21:46:05 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 				// stop...
 | 
					
						
							|  |  |  | 				} else { | 
					
						
							|  |  |  | 					// stop timer...
 | 
					
						
							| 
									
										
										
										
											2016-03-29 00:31:50 +03:00
										 |  |  | 					this.__slideshouw_timer | 
					
						
							| 
									
										
										
										
											2016-03-29 03:09:31 +03:00
										 |  |  | 						&& clearInterval(this.__slideshouw_timer) | 
					
						
							| 
									
										
										
										
											2016-03-28 21:46:05 +03:00
										 |  |  | 					delete this.__slideshouw_timer | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-29 05:17:50 +03:00
										 |  |  | 					// restore the original workspace...
 | 
					
						
							| 
									
										
										
										
											2016-05-07 00:47:52 +03:00
										 |  |  | 					this.popWorkspace() | 
					
						
							| 
									
										
										
										
											2016-03-27 20:07:48 +03:00
										 |  |  | 				} | 
					
						
							| 
									
										
										
										
											2016-03-28 21:46:05 +03:00
										 |  |  | 			})], | 
					
						
							| 
									
										
										
										
											2016-03-29 03:09:31 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-09-06 07:20:31 +03:00
										 |  |  | 	slideshowDialog: ['Slideshow/Slideshow...', | 
					
						
							|  |  |  | 		widgets.makeUIDialog(function(){ | 
					
						
							|  |  |  | 			var that = this | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			// suspend the timer if it's not suspended outside...
 | 
					
						
							|  |  |  | 			var suspended_timer = this.__slideshouw_timer == 'suspended' | 
					
						
							|  |  |  | 			suspended_timer || this.suspendSlideshowTimer() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			// XXX might be a good idea to make this generic...
 | 
					
						
							|  |  |  | 			var _makeToggleHandler = function(toggler){ | 
					
						
							|  |  |  | 				return function(){ | 
					
						
							|  |  |  | 					var txt = $(this).find('.text').first().text() | 
					
						
							|  |  |  | 					that[toggler]() | 
					
						
							|  |  |  | 					o.update() | 
					
						
							|  |  |  | 						.then(function(){ o.select(txt) }) | 
					
						
							|  |  |  | 					that.toggleSlideshow('?') == 'on'  | 
					
						
							|  |  |  | 						&& o.close() | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			var o = browse.makeLister(null, function(path, make){ | 
					
						
							|  |  |  | 					make(['$Interval: ',  | 
					
						
							|  |  |  | 							function(){ return that.config['slideshow-interval'] }]) | 
					
						
							|  |  |  | 						.on('open', function(){ | 
					
						
							|  |  |  | 							that.slideshowIntervalDialog(make.dialog) }) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 					make(['$Direction: ',  | 
					
						
							|  |  |  | 							function(){ return that.config['slideshow-direction'] }]) | 
					
						
							|  |  |  | 						.on('open', _makeToggleHandler('toggleSlideshowDirection')) | 
					
						
							|  |  |  | 					make(['$Looping: ',  | 
					
						
							|  |  |  | 							function(){ return that.config['slideshow-looping'] }]) | 
					
						
							|  |  |  | 						.on('open', _makeToggleHandler('toggleSlideshowLooping')) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 					// Start/stop...
 | 
					
						
							|  |  |  | 					make([function(){  | 
					
						
							|  |  |  | 							return that.toggleSlideshow('?') == 'on' ? '$Stop' : '$Start' }]) | 
					
						
							|  |  |  | 						.on('open', function(){ | 
					
						
							|  |  |  | 							that.toggleSlideshow() | 
					
						
							|  |  |  | 							o.close() | 
					
						
							|  |  |  | 						}) | 
					
						
							|  |  |  | 				}, | 
					
						
							|  |  |  | 				{ | 
					
						
							|  |  |  | 					path: that.toggleSlideshow('?') == 'on' ? 'Stop' : 'Start', | 
					
						
							|  |  |  | 					cls: 'table-view tail-action', | 
					
						
							|  |  |  | 				}) | 
					
						
							|  |  |  | 				.on('close', function(){ | 
					
						
							|  |  |  | 					// reset the timer if it was not suspended outside...
 | 
					
						
							|  |  |  | 					suspended_timer  | 
					
						
							|  |  |  | 						|| that.resetSlideshowTimer() | 
					
						
							|  |  |  | 				}) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			return o | 
					
						
							|  |  |  | 		})], | 
					
						
							|  |  |  | 	 | 
					
						
							|  |  |  | 	// settings...
 | 
					
						
							|  |  |  | 	slideshowIntervalDialog: ['Slideshow/Slideshow interval...', | 
					
						
							|  |  |  | 		widgets.makeUIDialog(function(parent){ | 
					
						
							|  |  |  | 			var that = this | 
					
						
							|  |  |  | 			var dialog = widgets.makeConfigListEditor( | 
					
						
							|  |  |  | 				that,  | 
					
						
							|  |  |  | 				'slideshow-intervals', | 
					
						
							|  |  |  | 				'slideshow-interval',  | 
					
						
							|  |  |  | 				{ | 
					
						
							|  |  |  | 					length_limit: that.config['slideshow-interval-max-count'], | 
					
						
							|  |  |  | 					check: Date.str2ms, | 
					
						
							|  |  |  | 					unique: Date.str2ms, | 
					
						
							|  |  |  | 					sort: function(a, b){ | 
					
						
							|  |  |  | 						return Date.str2ms(a) - Date.str2ms(b) }, | 
					
						
							|  |  |  | 				}) | 
					
						
							|  |  |  | 				.on('start', function(){ | 
					
						
							|  |  |  | 					// suspend the timer if it's not suspended outside...
 | 
					
						
							|  |  |  | 					this.__slideshouw_timer == 'suspended' | 
					
						
							|  |  |  | 						|| this.suspendSlideshowTimer() | 
					
						
							|  |  |  | 				}) | 
					
						
							|  |  |  | 				.on('close', function(){ | 
					
						
							|  |  |  | 					// reset the timer if it was not suspended outside...
 | 
					
						
							|  |  |  | 					this.__slideshouw_timer == 'suspended' | 
					
						
							|  |  |  | 						|| that.resetSlideshowTimer() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 					if(parent){ | 
					
						
							|  |  |  | 						var txt = parent.select('!').find('.text').first().text() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 						parent.update() | 
					
						
							|  |  |  | 							.then(function(){  | 
					
						
							|  |  |  | 								txt != '' | 
					
						
							|  |  |  | 									&& parent.select(txt) | 
					
						
							|  |  |  | 							}) | 
					
						
							|  |  |  | 					} | 
					
						
							|  |  |  | 				}) | 
					
						
							|  |  |  | 			return dialog | 
					
						
							|  |  |  | 		})], | 
					
						
							|  |  |  | 	toggleSlideshowDirection: ['- Slideshow/Slideshow direction', | 
					
						
							|  |  |  | 		core.makeConfigToggler('slideshow-direction', ['forward', 'reverse'])], | 
					
						
							|  |  |  | 	toggleSlideshowLooping: ['- Slideshow/Slideshow looping', | 
					
						
							|  |  |  | 		core.makeConfigToggler('slideshow-looping', ['on', 'off'])], | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-29 03:09:31 +03:00
										 |  |  | 	// NOTE: these can be used as pause and resume...
 | 
					
						
							| 
									
										
										
										
											2017-01-11 04:45:34 +03:00
										 |  |  | 	resetSlideshowTimer: ['- Slideshow/Reset slideshow timer', | 
					
						
							| 
									
										
										
										
											2016-03-27 20:07:48 +03:00
										 |  |  | 		function(){ | 
					
						
							| 
									
										
										
										
											2016-03-28 21:46:05 +03:00
										 |  |  | 			this.__slideshouw_timer && this.toggleSlideshow('on') | 
					
						
							| 
									
										
										
										
											2016-03-27 20:07:48 +03:00
										 |  |  | 		}], | 
					
						
							| 
									
										
										
										
											2017-01-11 04:45:34 +03:00
										 |  |  | 	suspendSlideshowTimer: ['- Slideshow/Suspend slideshow timer', | 
					
						
							| 
									
										
										
										
											2016-03-29 03:09:31 +03:00
										 |  |  | 		function(){ | 
					
						
							|  |  |  | 			if(this.__slideshouw_timer){ | 
					
						
							|  |  |  | 				clearInterval(this.__slideshouw_timer) | 
					
						
							|  |  |  | 				this.__slideshouw_timer = 'suspended' | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 		}], | 
					
						
							| 
									
										
										
										
											2017-09-06 07:20:31 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	resetSlideshowWorkspace: ['Slideshow/Reset workspace', | 
					
						
							|  |  |  | 		function(){ delete this.workspaces['slideshow'] }], | 
					
						
							| 
									
										
										
										
											2016-03-12 06:24:35 +03:00
										 |  |  | }) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | var Slideshow =  | 
					
						
							|  |  |  | module.Slideshow = core.ImageGridFeatures.Feature({ | 
					
						
							|  |  |  | 	title: '', | 
					
						
							|  |  |  | 	doc: '', | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	tag: 'ui-slideshow', | 
					
						
							|  |  |  | 	depends: [ | 
					
						
							|  |  |  | 		'ui', | 
					
						
							| 
									
										
										
										
											2016-04-26 04:08:02 +03:00
										 |  |  | 		'ui-single-image', | 
					
						
							| 
									
										
										
										
											2016-03-12 06:24:35 +03:00
										 |  |  | 	], | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	actions: SlideshowActions, | 
					
						
							| 
									
										
										
										
											2016-03-29 00:31:50 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	handlers: [ | 
					
						
							| 
									
										
										
										
											2016-03-29 05:17:50 +03:00
										 |  |  | 		// add a placeholder for slideshow workspace, this is to make the
 | 
					
						
							|  |  |  | 		// workspace toggler show it as one of the options...
 | 
					
						
							|  |  |  | 		//
 | 
					
						
							|  |  |  | 		// NOTE: the slideshow workspace will get populated either on 
 | 
					
						
							|  |  |  | 		// 		loading it for the first time or on first running a 
 | 
					
						
							|  |  |  | 		// 		slideshow...
 | 
					
						
							|  |  |  | 		['start', | 
					
						
							|  |  |  | 			function(){  | 
					
						
							|  |  |  | 				if(this.workspaces['slideshow'] == null){ | 
					
						
							|  |  |  | 					this.workspaces['slideshow'] = null | 
					
						
							|  |  |  | 				}  | 
					
						
							|  |  |  | 			}], | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-15 03:55:36 +03:00
										 |  |  | 		// - build the slideshow workspace for the first time if it's not
 | 
					
						
							|  |  |  | 		// 		present yet (is null)...
 | 
					
						
							|  |  |  | 		// - restore .config['single-image-toggle-on-click']
 | 
					
						
							| 
									
										
										
										
											2016-03-29 05:17:50 +03:00
										 |  |  | 		['loadWorkspace.pre', | 
					
						
							|  |  |  | 			function(workspace){ | 
					
						
							| 
									
										
										
										
											2017-03-15 03:55:36 +03:00
										 |  |  | 				// going out of slideshow -> restore settings...
 | 
					
						
							|  |  |  | 				var data = this.workspaces[workspace] || {}  | 
					
						
							|  |  |  | 				if(this.workspace == 'slideshow'){ | 
					
						
							|  |  |  | 					if(!('single-image-toggle-on-click' in data)){ | 
					
						
							|  |  |  | 						delete this.config['single-image-toggle-on-click'] | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 					} else { | 
					
						
							|  |  |  | 						this.config['single-image-toggle-on-click'] =  | 
					
						
							|  |  |  | 							data['single-image-toggle-on-click'] | 
					
						
							|  |  |  | 					} | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 				// going into slideshow for first time -> setup...
 | 
					
						
							| 
									
										
										
										
											2016-03-29 05:17:50 +03:00
										 |  |  | 				if(workspace == 'slideshow' && this.workspaces['slideshow'] == null){ | 
					
						
							|  |  |  | 					return function(){ | 
					
						
							| 
									
										
										
										
											2016-03-30 15:24:01 +03:00
										 |  |  | 						this.loadWorkspace('ui-chrome-hidden')  | 
					
						
							| 
									
										
										
										
											2016-03-29 05:17:50 +03:00
										 |  |  | 						this.saveWorkspace('slideshow')  | 
					
						
							|  |  |  | 					} | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			}], | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		// do not leave the viewer in slideshow mode...
 | 
					
						
							| 
									
										
										
										
											2016-03-29 00:31:50 +03:00
										 |  |  | 		['stop', | 
					
						
							|  |  |  | 			function(){ this.toggleSlideshow('off') }] | 
					
						
							|  |  |  | 	], | 
					
						
							| 
									
										
										
										
											2016-03-12 06:24:35 +03:00
										 |  |  | }) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /********************************************************************** | 
					
						
							| 
									
										
										
										
											2016-08-20 22:49:36 +03:00
										 |  |  | * vim:set ts=4 sw=4 :                               */ return module }) |