]> www.average.org Git - mkgallery.git/blobdiff - include/show.js
outline strategy on window resize
[mkgallery.git] / include / show.js
index 427cb38a834fc0fec1887cf59035b7b35fbc1b58..a5f2abd5ddea8a5ac0e09e70f800416f76a767b3 100644 (file)
   - On "stop": if "playing" cancel autoswitch; break "playing".
   - On "start show": set up things; set "playing" state; show needed image.
   - On "stop show": cancel any schedules, hide things.
   - On "stop": if "playing" cancel autoswitch; break "playing".
   - On "start show": set up things; set "playing" state; show needed image.
   - On "stop show": cancel any schedules, hide things.
+  - On resize: recalculate existing image size and position; determine
+    what image is needed; if it is not the one on display then request
+    "show image" for the new image.
 */
 
 var Show = new Class({
 
        getOptions: function(){
                return {
 */
 
 var Show = new Class({
 
        getOptions: function(){
                return {
-                       onClick: $empty,
-                       exit: function(){ alert('show exit undefined'); },
+                       cbStart: function(){ alert('show start undefined'); },
+                       cbExit: function(){ alert('show exit undefined'); },
                }
        },
 
                }
        },
 
@@ -82,8 +85,14 @@ var Show = new Class({
                                '<ref>','next called');
        },
 
                                '<ref>','next called');
        },
 
+       start: function(id, play){
+               this.options.cbStart();
+               /* real job here */
+               return false; /* tao make it usable from href links */
+       },
+
        exit: function(){
        exit: function(){
-               this.options.exit();
+               this.options.cbExit();
        },
 
        comm: function(){
        },
 
        comm: function(){