PythonSlideShow

Changeset

7:f1bd097f5297
2010-08-26 ink raw files shortlog changelog graph Missing up/down cursor calls because the tree navigation needs sorting. Added grandparent to grandchild relative generations' CSS rules. Next need to add these attributes to the correct slides and find a way to compute this with javascript (or python output). Changed template_H5p10n.html
template_H5p10n.html (file)
     1.1 --- a/template_H5p10n.html	Thu Aug 26 18:05:45 2010 +0300
     1.2 +++ b/template_H5p10n.html	Thu Aug 26 19:12:37 2010 +0300
     1.3 @@ -130,13 +130,38 @@
     1.4        .bullets {
     1.5         font-size: 40px;
     1.6        }
     1.7 +
     1.8 +      .slide.far-past {
     1.9 +        display: block;
    1.10 +        margin-left: -2400px;
    1.11 +      }
    1.12        
    1.13 -      .slide.far-past {
    1.14 +      .slide.past {
    1.15 +        display: block;
    1.16 +        margin-left: -1400px;
    1.17 +      }
    1.18 +      
    1.19 +      .slide.current {
    1.20 +        display: block;
    1.21 +        margin-left: 0px;
    1.22 +      }
    1.23 +      
    1.24 +      .slide.future {
    1.25 +        display: block;
    1.26 +        margin-left: 1500px;
    1.27 +      }
    1.28 +      
    1.29 +      .slide.far-future {
    1.30 +        display: block;
    1.31 +        margin-left: 2500px;
    1.32 +      }
    1.33 +
    1.34 +      .slide.grandparent {
    1.35          display: block;
    1.36          margin-top: -2400px;
    1.37        }
    1.38        
    1.39 -      .slide.past {
    1.40 +      .slide.parent {
    1.41          display: block;
    1.42          margin-top: -1400px;
    1.43        }
    1.44 @@ -146,12 +171,12 @@
    1.45          margin-top: 0px;
    1.46        }
    1.47        
    1.48 -      .slide.future {
    1.49 +      .slide.first-child {
    1.50          display: block;
    1.51          margin-top: 1500px;
    1.52        }
    1.53        
    1.54 -      .slide.far-future {
    1.55 +      .slide.first-grandchild {
    1.56          display: block;
    1.57          margin-top: 2500px;
    1.58        }
    1.59 @@ -717,6 +742,11 @@
    1.60              this.current = Math.max(this.current-1, 1);//this.current-1, 1);
    1.61              this._update();
    1.62            },
    1.63 +
    1.64 +//
    1.65 +//
    1.66 +//
    1.67 +//
    1.68            go: function(num) {
    1.69              if (history.pushState && this.current != num) {
    1.70                history.replaceState(this.current, "Slide " + this.current, "#slide" + this.current);
    1.71 @@ -762,7 +792,13 @@
    1.72              switch (e.keyCode) {
    1.73                case 37: // left arrow
    1.74                  this.prev(); break;
    1.75 +              case 38: // up arrow/context by file links should work, but
    1.76 +                this.parent(); break; // linked p10ns must use a nest-level flag for back button=up cursor              
    1.77                case 39: // right arrow
    1.78 +                this.next(); break;
    1.79 +              case 40: // down arrow/what can we do with os.walk() here? This navigation should allow p10n tailoring to a given situation; link keys on a per-presentation basis for key slides will also be good.
    1.80 +                this.first_child(); break; // make the wiki bouncier.
    1.81 +
    1.82                case 32: // space
    1.83                  this.next(); break;
    1.84                case 50: // 2