1/** 2 * Revolution Lightbox PACKAGED v3.0 3 * Timer manager for the slideshow. 4 * 5 * @author Tibi - FWDesign [https://webdesign-flash.ro/] 6 * Copyright © 2006 All Rights Reserved. 7 */ 8(function(window){ 9 10 var FWDRLTimerManager = function(delay){ 11 12 var _s = this; 13 var prototpype = FWDRLTimerManager.prototype; 14 15 _s.delay = delay; 16 _s.isStopped = true; 17 18 _s.stop = function(){ 19 if(_s.isStopped) return; 20 _s.pause(); 21 _s.isStopped = true; 22 _s.dispatchEvent(FWDRLTimerManager.STOP); 23 }; 24 25 _s.start = function(){ 26 if(!_s.isStopped) return; 27 _s.isStopped = false; 28 clearTimeout(_s.timeOutId); 29 _s.timeOutId = setTimeout(_s.onTimeHandler, _s.delay); 30 _s.dispatchEvent(FWDRLTimerManager.START); 31 }; 32 33 _s.pause = function(){ 34 if(_s.isStopped) return; 35 _s.isPlaying = false; 36 clearTimeout(_s.timeOutId); 37 _s.dispatchEvent(FWDRLTimerManager.PAUSE); 38 }; 39 40 _s.resume = function(dl){ 41 if(_s.isStopped) return; 42 clearTimeout(_s.timeOutId); 43 _s.timeOutId = setTimeout(_s.onTimeHandler, _s.delay); 44 _s.dispatchEvent(FWDRLTimerManager.RESUME); 45 }; 46 47 _s.onTimeHandler = function(){ 48 _s.dispatchEvent(FWDRLTimerManager.TIME); 49 }; 50 }; 51 52 FWDRLTimerManager.setProtptype = function(){ 53 FWDRLTimerManager.prototype = new FWDRLEventDispatcher(); 54 }; 55 56 FWDRLTimerManager.START = "start"; 57 FWDRLTimerManager.STOP = "stop"; 58 FWDRLTimerManager.RESUME = "resume"; 59 FWDRLTimerManager.PAUSE = "pause"; 60 FWDRLTimerManager.TIME = "time"; 61 62 FWDRLTimerManager.prototype = null; 63 window.FWDRLTimerManager = FWDRLTimerManager; 64 65}(window));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.