PythonSlideShow

Changeset

8:af99dfb5ef4e
2010-08-26 ink raw files shortlog changelog graph Changed template_H5p10n.html: added key capture code for up and down cursor. Parent and first-child attribute class/content code next.
template_H5p10n.html (file)
     1.1 --- a/template_H5p10n.html	Thu Aug 26 19:12:37 2010 +0300
     1.2 +++ b/template_H5p10n.html	Thu Aug 26 22:10:08 2010 +0300
     1.3 @@ -69,10 +69,10 @@
     1.4          background: -webkit-gradient(linear, left bottom, left top, from(#bbd), to(#fff));
     1.5          background: -moz-linear-gradient(bottom, #bbd, #fff);
     1.6          background: linear-gradient(bottom, #bbd, #fff);
     1.7 -        -webkit-transition: margin 0.60s ease-in-out;
     1.8 -        -moz-transition: margin 0.60s ease-in-out;
     1.9 -        -o-transition: margin 0.60s ease-in-out;
    1.10 -        transition: margin 0.60s ease-in-out;
    1.11 +        -webkit-transition: margin 1.4s ease-in-out;
    1.12 +        -moz-transition: margin 1.4s ease-in-out;
    1.13 +        -o-transition: margin 1.4s ease-in-out;
    1.14 +        transition: margin 1.4s ease-in-out;
    1.15        }
    1.16        
    1.17        .slide:nth-child(even) {
    1.18 @@ -742,7 +742,15 @@
    1.19              this.current = Math.max(this.current-1, 1);//this.current-1, 1);
    1.20              this._update();
    1.21            },
    1.22 +          parent: function() {
    1.23 +            this.current = Math.max(this.current-1, 1);//this.current-1, 1);
    1.24 +            this._update();
    1.25 +          },
    1.26  
    1.27 +          first_child: function() {
    1.28 +            this.current = Math.max(this.current-1, 1);//this.current-1, 1);
    1.29 +            this._update();
    1.30 +          },
    1.31  //
    1.32  //
    1.33  //