plugin:s5
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:s5 [2012-11-28 01:19] – old revision restored (2012/11/23 16:39) ach | plugin: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 : 2009-01-07 | + | lastupdate : 2022-11-30 |
- | compatible : 2009-02-14+, | + | compatible : Adora Belle, binky, ponder stibbons, hrun |
depends | depends | ||
conflicts | conflicts | ||
Line 13: | Line 13: | ||
tags : media, slideshow, javascript | tags : media, slideshow, javascript | ||
- | downloadurl: | + | downloadurl: |
- | sourcerepo : http:// | + | sourcerepo : https:// |
- | bugtracker : http:// | + | bugtracker : https:// |
donationurl: | donationurl: | ||
---- | ---- | ||
Line 22: | Line 22: | ||
This plugin can create [[http:// | This plugin can create [[http:// | ||
- | |||
===== Download and Install ===== | ===== Download and Install ===== | ||
Line 30: | Line 29: | ||
==== Changes ==== | ==== Changes ==== | ||
- | {{rss>http:// | + | {{rss>https:// |
===== Configuration ===== | ===== Configuration ===== | ||
Line 42: | Line 41: | ||
Usage is simple. Just add '' | Usage is simple. Just add '' | ||
- | Have a look at this [[plugin:s5: | + | A template can be selected from within the syntax like this: '' |
Opera users need to press '' | Opera users need to press '' | ||
- | Another option is to insert a link to the s5 view of any page in your template. For example edit: < | + | Another option is to insert a link to the s5 view of any page in your template. For example edit: '' |
- | < | + | < |
<a href="<? | <a href="<? | ||
</ | </ | ||
in the topright div. | in the topright div. | ||
- | ===== Specifying theme: == | + | |
- | ahmetsacan: In order to specify theme using e.g., '' | + | |
- | < | + | |
- | diff -b -u .s5/ | + | |
- | --- .s5/ | + | |
- | +++ s5/ | + | |
- | @@ -45,7 +45,7 @@ | + | |
- | ); | + | |
- | | + | |
- | | + | |
- | - $this-> | + | |
- | + $this-> | + | |
- | } | + | |
- | + | ||
- | /** | + | |
- | </ | + | |
- | < | + | |
- | diff -b -u .s5/ | + | |
- | --- .s5/ | + | |
- | +++ s5/ | + | |
- | @@ -43,7 +43,7 @@ | + | |
- | * Connect pattern to lexer | + | |
- | */ | + | |
- | | + | |
- | - $this-> | + | |
- | + $this-> | + | |
- | } | + | |
- | + | ||
- | + | ||
- | @@ -51,6 +51,7 @@ | + | |
- | * Handle the match | + | |
- | */ | + | |
- | | + | |
- | + if($match!=' | + | |
- | | + | |
- | } | + | |
- | + | ||
- | @@ -61,7 +62,7 @@ | + | |
- | | + | |
- | | + | |
- | + | ||
- | - $renderer-> | + | |
- | + $renderer-> | + | |
- | | + | |
- | | + | |
- | | + | |
- | </ | + | |
===== Using with jsMath ===== | ===== Using with jsMath ===== | ||
Line 104: | Line 57: | ||
<code php> | <code php> | ||
- | <!-- S5 JS --> | + | <!-- S5 JS --> |
// add those two lines: | // add those two lines: | ||
- | <script type=" | + | <script type=" |
- | <script src="' | + | <script src="' |
- | | + | <script src="' |
- | <script src="' | + | |
</ | </ | ||
+ | |||
===== Incremental ULs ===== | ===== Incremental ULs ===== | ||
+ | |||
just in case you want to show List-Elements one by one put this at the bottom of the page | just in case you want to show List-Elements one by one put this at the bottom of the page | ||
- | <code> | + | < |
- | <html> | + | |
< | < | ||
for(var i=0, | for(var i=0, | ||
</ | </ | ||
- | </ | ||
- | |||
</ | </ | ||
===== Discussion ===== | ===== Discussion ===== | ||
+ | |||
* 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/ | * 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/ | ||
*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 : < | ||
+ | --- s5/ | ||
+ | +++ s5/ | ||
+ | @@ -1,4 +1,5 @@ | ||
+ | <? | ||
+ | |||
+ | | ||
+ | +$conf[' | ||
+ | |||
+ | --- s5/ | ||
+ | +++ s5/ | ||
+ | @@ -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 " | ||
+ | */ | ||
+ | | ||
+ | | ||
+ | @@ -133,12 +134,19 @@ | ||
+ | } | ||
+ | } | ||
+ | |||
+ | - if($level == 2){ | ||
+ | + if($level <= $this-> | ||
+ | | ||
+ | | ||
+ | } | ||
+ | | ||
+ | | ||
+ | + | ||
+ | + if ($level == 2) { | ||
+ | + $this-> | ||
+ | + } else { | ||
+ | + $level = 2; | ||
+ | + $text = $this-> | ||
+ | + } | ||
+ | } | ||
+ | | ||
+ | | ||
+ | @@ -149,7 +157,7 @@ | ||
+ | * Top-Level Sections are slides | ||
+ | */ | ||
+ | | ||
+ | - if($level < 3){ | ||
+ | + if($level <= $this-> | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
* 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 " | ||
+ | |||
+ | ==== Any chance to have < | ||
+ | |||
+ | Due to http:// | ||
+ | |||
+ | Is there a way to have this for the s5 plugin? | ||
+ | |||
+ | --- [[user> |
plugin/s5.1354061972.txt.gz · Last modified: 2012-11-28 01:19 by ach