DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:s5

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:s5 [2015-04-09 15:33] – [Download and Install] 193.246.68.29plugin:s5 [2023-01-10 18:44] (current) – version upped andi
Line 6: Line 6:
 email      : andi@splitbrain.org email      : andi@splitbrain.org
 type       : render type       : render
-lastupdate : 2014-09-22+lastupdate : 2022-11-30
 compatible : Adora Belle, binky, ponder stibbons, hrun compatible : Adora Belle, binky, ponder stibbons, hrun
 depends    :  depends    : 
Line 26: Line 26:
  
 Use the download link given above to download or install the plugin through the plugin manager. Use the download link given above to download or install the plugin through the plugin manager.
- 
-Test_Test_Test 
- 
  
 ==== Changes ==== ==== Changes ====
Line 81: Line 78:
   * Is there a way to manually create a new page (with a new H2 headline) or automatically split content in multiple slides (for instance two pages : "H2 Headline (1/2)" and "H2 Headline (2/2)") ?   * Is there a way to manually create a new page (with a new H2 headline) or automatically split content in multiple slides (for instance two pages : "H2 Headline (1/2)" and "H2 Headline (2/2)") ?
     *Another solution would be an option to use H3 headline for new slides.     *Another solution would be an option to use H3 headline for new slides.
 +    * You can try this patch : <code>
 +--- s5/conf/default.php.orig    2015-06-02 18:03:19.062284950 +0200
 ++++ s5/conf/default.php 2015-06-02 17:50:35.406550419 +0200
 +@@ -1,4 +1,5 @@
 + <?php
 +
 + $conf['template'   = 'dokuwiki';
 ++$conf['maxHeaderLevelForNewSlide'   = 3;
 +
 +--- s5/renderer.php.orig        2015-06-02 17:44:20.952724847 +0200
 ++++ s5/renderer.php     2015-06-02 18:02:06.229923670 +0200
 +@@ -18,6 +18,7 @@
 +     var $slideopen = false;
 +     var $base='';
 +     var $tpl='';
 ++    var $lastH2='';
 +
 +     /**
 +      * the format we produce
 +@@ -121,7 +122,7 @@
 +     /**
 +      * This is what creates new slides
 +      *
 +-     * A new slide is started for each H2 header
 ++     * A new slide is started for each Hx header, where x <= configuration parameter "maxHeaderLevelForNewSlide"
 +      */
 +     function header($text, $level, $pos) {
 +         if($level == 1){
 +@@ -133,12 +134,19 @@
 +             }
 +         }
 +
 +-        if($level == 2){
 ++        if($level <= $this->getConf('maxHeaderLevelForNewSlide')){
 +             if($this->slideopen){
 +                 $this->doc .= '</div>'.DOKU_LF; //close previous slide
 +             }
 +             $this->doc .= '<div class="slide">'.DOKU_LF;
 +             $this->slideopen = true;
 ++
 ++            if ($level == 2) {
 ++                $this->lastH2 = $text;
 ++            } else {
 ++                $level = 2;
 ++                $text = $this->lastH2 . " - " . $text;
 ++            }
 +         }
 +         $this->doc .= '<h'.($level-1).'>';
 +         $this->doc .= $this->_xmlEntities($text);
 +@@ -149,7 +157,7 @@
 +      * Top-Level Sections are slides
 +      */
 +     function section_open($level) {
 +-        if($level < 3){
 ++        if($level <= $this->getConf('maxHeaderLevelForNewSlide')){
 +             $this->doc .= '<div class="slidecontent">'.DOKU_LF;
 +         }else{
 +             $this->doc .= '<div>'.DOKU_LF;
 +</code>
   * There is a colision with the html5 plugin. When it is on, the button for starting is not visible.   * There is a colision with the html5 plugin. When it is on, the button for starting is not visible.
   * Is there a way to end the slideshow and get back to the page?   * Is there a way to end the slideshow and get back to the page?
     * -> there is: hit "back" or, on FF, Alt + left arrow to return to the page.     * -> there is: hit "back" or, on FF, Alt + left arrow to return to the page.
 +
 +==== Any chance to have <class=incremental> ?====
 +
 +Due to http://meyerweb.com/eric/tools/s5/features.html "Incremental display", example in http://meyerweb.com/eric/tools/s5/s5-intro.html on page 9, s5 is capable to "show the bullet points one at a time".
 +
 +Is there a way to have this for the s5 plugin?
 +
 + --- [[user>coastGNU|Thomas Templin]] //2016-04-10 21:30//
plugin/s5.1428586392.txt.gz · Last modified: 2015-04-09 15:33 by 193.246.68.29

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki