Line: 1 to 1 | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TwistyContribThis contrib packages in a convenient way the JavaScript library and the CSS file needed to implement Twisty sections. | |||||||||||||
Line: 169 to 169 | |||||||||||||
| |||||||||||||
Changed: | |||||||||||||
< < |
| ||||||||||||
> > |
| ||||||||||||
|
Line: 1 to 1 | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TwistyContribThis contrib packages in a convenient way the JavaScript library and the CSS file needed to implement Twisty sections. | |||||||||||||
Line: 169 to 169 | |||||||||||||
| |||||||||||||
Changed: | |||||||||||||
< < |
| ||||||||||||
> > |
| ||||||||||||
|
Line: 1 to 1 | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TwistyContribThis contrib packages in a convenient way the JavaScript library and the CSS file needed to implement Twisty sections. | |||||||||||||||||||
Line: 7 to 7 | |||||||||||||||||||
It is recommended to use the TwistyPlugin as it eases the deployment and use of this contrib. | |||||||||||||||||||
Changed: | |||||||||||||||||||
< < | This Contrib should work in all versions of TWiki. It has been tested against TWiki 3 and TWiki 4. | ||||||||||||||||||
> > | This Contrib should work with TWiki 4 and newer. | ||||||||||||||||||
Line: 143 to 143 | |||||||||||||||||||
Settings
| |||||||||||||||||||
Deleted: | |||||||||||||||||||
< < |
| ||||||||||||||||||
Changed: | |||||||||||||||||||
< < | Installation Instructions | ||||||||||||||||||
> > | You can also set the global TWiki variable TWISTYCONTRIB_DEBUG to 1 to make the contrib use uncompressed javascript sources, in the event of problems. | ||||||||||||||||||
Changed: | |||||||||||||||||||
< < |
| ||||||||||||||||||
> > | Installation Instructions%*INSTALL_INSTRUCTIONS%
| ||||||||||||||||||
Contrib Info | |||||||||||||||||||
Changed: | |||||||||||||||||||
< < |
| ||||||||||||||||||
> > |
| ||||||||||||||||||
| |||||||||||||||||||
Added: | |||||||||||||||||||
> > |
| ||||||||||||||||||
| |||||||||||||||||||
Line: 176 to 182 | |||||||||||||||||||
Related Topics: TWikiPreferences | |||||||||||||||||||
Changed: | |||||||||||||||||||
< < |
| ||||||||||||||||||
> > |
|
Line: 1 to 1 | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TwistyContrib | |||||||||||||
Changed: | |||||||||||||
< < | |||||||||||||
> > | This contrib packages in a convenient way the JavaScript library and the CSS file needed to implement Twisty sections. | ||||||||||||
Changed: | |||||||||||||
< < | Summary | ||||||||||||
> > | TwistyContrib is installed by default in TWiki 4 and used by Twisty Plugin. | ||||||||||||
Changed: | |||||||||||||
< < | This contrib packages in a convenient way the Javascript library and the CSS file needed to implement TWisty Sections. | ||||||||||||
> > | It is recommended to use the TwistyPlugin as it eases the deployment and use of this contrib. | ||||||||||||
Changed: | |||||||||||||
< < | See the attached file for a demo and an example of usage. | ||||||||||||
> > | This Contrib should work in all versions of TWiki. It has been tested against TWiki 3 and TWiki 4. | ||||||||||||
Changed: | |||||||||||||
< < | To use the libraries, you must place the following scriplet either in the head section of the page (by modifying the TWikiSkins) or putting it somewhere in the topic: | ||||||||||||
> > | |||||||||||||
Changed: | |||||||||||||
< < | <style type="text/css" media="all"> @import url("%PUBURLPATH%/TWiki/TwistyContrib/twist.css"); </style> | ||||||||||||
> > | Usage examplesIf the contrib is properly installed (and JavaScript is enabled in your browser) you should see two folding sections below. | ||||||||||||
Changed: | |||||||||||||
< < | |||||||||||||
> > | Basic Twisty<span id="demo1show" class="twistyTrigger twistyMakeVisible"><button class="twikiButton"> Unfold </button></span> <span id="demo1hide" class="twistyTrigger twistyHidden"><button class="twikiButton"> Fold </button></span> <span id="demo1toggle" class="twistyContent twistyMakeHidden"> my twisty content </span> | ||||||||||||
Changed: | |||||||||||||
< < | It's recommended to use the TWiki:Plugins.TwistyPlugin, as it eases the deployment and use of this contrib. | ||||||||||||
> > | Generates: | ||||||||||||
Changed: | |||||||||||||
< < | Caution: If the previous scriplet is put in the HEAD section of the page or the TWiki:Plugins.TwistyPlugin is used, it won't work if the <body onload=""> manager is set by the skin. Check the twist.js file for an idea on how to register an eventmanager for the onload event without overwriting the previous one. | ||||||||||||
> > | my twisty content | ||||||||||||
Changed: | |||||||||||||
< < | This Contrib should work in all versions of TWiki. It has been tested against TWiki:Codev.CairoRelease and TWiki:Codev.DakarRelease. | ||||||||||||
> > | Twisty with placeholder text<span id="demo2show" class="twistyTrigger twistyMakeVisible"><a href="#">Expand...</a> <span class="twistyPlaceholder">Hamlet is without question the most famous play in the English language...</span></span> <span id="demo2hide" class="twistyTrigger twistyHidden"><a href="#">Collapse...</a></span> <span id="demo2toggle" class="twistyContent twistyMakeHidden"> Hamlet is without question the most famous play in the English language. Probably written in 1601 or 1602, the tragedy is a milestone in Shakespeare's dramatic development. </span> | ||||||||||||
Changed: | |||||||||||||
< < | Customization | ||||||||||||
> > | Generates: Expand... Hamlet is without question the most famous play in the English language... Collapse... Hamlet is without question the most famous play in the English language. Probably written in 1601 or 1602, the tragedy is a milestone in Shakespeare's dramatic development. | ||||||||||||
Skins can customize the color of the twisty placeholder by modifiying the .twistyPlaceholder style. | |||||||||||||
Added: | |||||||||||||
> > | Twisty made easyManual written by Harald Joerg. Examples require Spreadsheet Plugin to work (installed by default).
Some of my TWiki users are impressed by the optical effect of what can be done with TWiki:Plugins.TwistyPlugin - and they keep asking me: "How do I do that? I don't understand the documentation, and I don't understand the raw text of your topics!"
They indeed have a point here. The docs aren't easily understood. It isn't easy to pick all the variables needed from a single example, and just copypasting sometimes fails in embarrassing ways if non-unique
You WriteIn your Main.TWikiPreferences write:* Set FLIP = <span id="twid_%CALC{$SETM(twisty_id, + 1)$GET(twisty_id)}%show" class="twistyTrigger twistyMakeVisible"> <a href="#">more...</a> </span> <span id="twid_%CALC{$GET(twisty_id)}%hide" class="twistyTrigger twistyHidden"> <a href="#">close</a> </span> <div id="twid_%CALC{$GET(twisty_id)}%toggle" class="twistyContent twistyMakeHidden"> * Set FLOP = </div>You can include the text in a verbatim block if you want (like I have done here). Additionally I've added plenty of newlines and spaces to make it readable. This works, and you don't have to care for invalid HTML! Your Users WriteIn any topic, your users can now write things like this:* *Brace and parenthesize in K&R style* %FLIP% When setting out a code block, use the K&R style of bracketing. That is, place the opening brace at the end of the construct that controls the block. ... %FLOP% * *Separate your control keywords from the following opening bracket* %FLIP% Control structures regulate the dynamic behaviour of a program, so the keywords of control structures are the most critical components of a program. ... %FLOP% You See
All on, all offYou can toggle all Twisties on or off at once by putting a link or button on the page with classtwistyExpandAll or twistyCollapseAll .
<button class="twistyExpandAll twikiButton">Expand all</button> <button class="twistyCollapseAll twikiButton">Collapse all</button>Creates these controls: When you want to use links, write: #VarTOGGLE <a href="#TOGGLE" class="twistyExpandAll">Expand all</a> <a href="#TOGGLE" class="twistyCollapseAll">Collapse all</a>Expand all Collapse all | ||||||||||||
Settings
| |||||||||||||
Line: 41 to 152 | |||||||||||||
| |||||||||||||
Deleted: | |||||||||||||
< < |
| ||||||||||||
| |||||||||||||
Added: | |||||||||||||
> > |
| ||||||||||||
| |||||||||||||
Changed: | |||||||||||||
< < | None
Demo & TextIf the contrib is properly installed (and Javascript is enabled in your browser!), then you should see some folding sections below. Look at /twiki/bin/view/TWiki.TwistyContrib?raw=on to see how it's done.Click on the button above to fold this section.
Hamlet is without question the most famous play in the English language. Probably written in 1601 or 1602, the tragedy is a milestone in Shakespeare's dramatic development; the playwright achieved artistic maturity in this work through his brilliant depiction of the hero's struggle with two opposing forces: moral integrity and the need to avenge his father's murder.
More...
Hide more
| ||||||||||||
> > |
| ||||||||||||
Deleted: | |||||||||||||
< < |
For more Shakespeare plays, see Wikipedia:WilliamShakespeare
| ||||||||||||
Contrib Info | |||||||||||||
Changed: | |||||||||||||
< < |
| ||||||||||||
> > |
| ||||||||||||
| |||||||||||||
Changed: | |||||||||||||
< < |
| ||||||||||||
> > |
| ||||||||||||
| |||||||||||||
Line: 108 to 176 | |||||||||||||
Related Topics: TWikiPreferences | |||||||||||||
Changed: | |||||||||||||
< < | -- TWiki:Main.SamHasler - 12 Sep 2005
| ||||||||||||
> > |
| ||||||||||||
| |||||||||||||
Deleted: | |||||||||||||
< < |
|
Line: 1 to 1 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TwistyContrib | |||||||||||
Line: 39 to 39 | |||||||||||
| |||||||||||
Changed: | |||||||||||
< < |
| ||||||||||
> > |
| ||||||||||
|
Line: 1 to 1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
Changed: | |||||||||
< < | TwistyContrib | ||||||||
> > | TwistyContrib | ||||||||
Changed: | |||||||||
< < | Summary | ||||||||
> > | Summary | ||||||||
This contrib packages in a convenient way the Javascript library and the CSS file needed to implement TWisty Sections. | |||||||||
Added: | |||||||||
> > | See the attached file for a demo and an example of usage. | ||||||||
To use the libraries, you must place the following scriplet either in the head section of the page (by modifying the TWikiSkins) or putting it somewhere in the topic: | |||||||||
Line: 29 to 31 | |||||||||
Settings | |||||||||
Changed: | |||||||||
< < |
| ||||||||
> > |
| ||||||||
| |||||||||
Changed: | |||||||||
< < |
Installation Instructions | ||||||||
> > | Installation Instructions | ||||||||
| |||||||||
Line: 50 to 49 | |||||||||
| |||||||||
Changed: | |||||||||
< < | Demo & Text | ||||||||
> > | Demo & Text | ||||||||
If the contrib is properly installed (and Javascript is enabled in your browser!), then you should see some folding sections below. Look at /twiki/bin/view/TWiki.TwistyContrib?raw=on to see how it's done. | |||||||||
Line: 96 to 95 | |||||||||
For more Shakespeare plays, see Wikipedia:WilliamShakespeare | |||||||||
Changed: | |||||||||
< < | Contrib Info | ||||||||
> > | Contrib Info | ||||||||
| |||||||||
Changed: | |||||||||
< < |
| ||||||||
> > |
| ||||||||
| |||||||||
Changed: | |||||||||
< < |
| ||||||||
> > | -- TWiki:Main.SamHasler - 12 Sep 2005
|
Line: 1 to 1 | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Added: | |||||||||||||||||||||||||||||||||||
> > | TwistyContribOn this page:
SummaryThis contrib packages in a convenient way the Javascript library and the CSS file needed to implement TWisty Sections. To use the libraries, you must place the following scriplet either in the head section of the page (by modifying the TWikiSkins) or putting it somewhere in the topic:<style type="text/css" media="all"> @import url("%PUBURLPATH%/TWiki/TwistyContrib/twist.css"); </style> <script type="text/javascript" src="%PUBURLPATH%/TWiki/TwistyContrib/twist.js"></script>It's recommended to use the TWiki:Plugins.TwistyPlugin, as it eases the deployment and use of this contrib. Caution: If the previous scriplet is put in the HEAD section of the page or the TWiki:Plugins.TwistyPlugin is used, it won't work if the <body onload=""> manager is set by the skin. Check the twist.js file for an idea on how to register an eventmanager for the onload event without overwriting the previous one.
This Contrib should work in all versions of TWiki. It has been tested against TWiki:Codev.CairoRelease and TWiki:Codev.DakarRelease.
CustomizationSkins can customize the color of the twisty placeholder by modifiying the.twistyPlaceholder style.
Settings
Installation Instructions
Demo & TextIf the contrib is properly installed (and Javascript is enabled in your browser!), then you should see some folding sections below. Look at /twiki/bin/view/TWiki.TwistyContrib?raw=on to see how it's done.Click on the button above to fold this section.
Hamlet is without question the most famous play in the English language. Probably written in 1601 or 1602, the tragedy is a milestone in Shakespeare's dramatic development; the playwright achieved artistic maturity in this work through his brilliant depiction of the hero's struggle with two opposing forces: moral integrity and the need to avenge his father's murder.
More...
Hide more
For more Shakespeare plays, see Wikipedia:WilliamShakespeare
Contrib Info
|