]> www.average.org Git - mkgallery.git/blobdiff - include/show.js
switch to "new" slideshow (which is not working yet)
[mkgallery.git] / include / show.js
index 066485c88cb597534ac27ce26ce77e942384ff8e..2b5264f4be9d54bf460adc16f45bb6bd2844b612 100644 (file)
@@ -36,7 +36,8 @@ var Show = new Class({
 
        getOptions: function(){
                return {
-                       onClick: $empty,
+                       cbStart: function(){ alert('show start undefined'); },
+                       cbExit: function(){ alert('show exit undefined'); },
                }
        },
 
@@ -59,6 +60,43 @@ var Show = new Class({
                alert('show.scroller called');
        },
 
+       prev: function(){
+               this.controls.info(-1,this.vimgs.length,
+                               '<ref>','prev called');
+       },
+
+       stop: function(){
+               this.controls.info(0,this.vimgs.length,
+                               '<ref>','stop called');
+               this.controls.running(0);
+       },
+
+       play: function(){
+               this.controls.info(999,this.vimgs.length,
+                               '<ref>','play called');
+               this.controls.running(1);
+       },
+
+       next: function(){
+               this.controls.info(1,this.vimgs.length,
+                               '<ref>','next called');
+       },
+
+       start: function(id, play){
+               this.options.cbStart();
+               /* real job here */
+               return false; /* tao make it usable from href links */
+       },
+
+       exit: function(){
+               this.options.cbExit();
+       },
+
+       comm: function(){
+               alert('show.comm called, do nothing');
+       },
+
 });
 Show.implement(new Options);
+Show.implement(new Events);