Документ взят из кэша поисковой машины. Адрес оригинального документа : http://dualopt1.cmm.msu.ru/bin/rdiff/TWiki/TwistyContrib?rev1=2&rev2=1
Дата изменения: Unknown
Дата индексирования: Fri Feb 28 21:54:29 2014
Кодировка:
%TOPICTITLE% (1 vs. 2) - TWiki
Welcome, Registration, and other StartingPoints; TWiki history & Wiki style; All the docs...
View   r2  >  r1  ...
TwistyContrib 2 - 2006-02-22 - Main.TWikiContributor
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:
<
<
  • Name of the perl package
>
>
  • Set SHORTDESCRIPTION = Twisty section javascript library to open/close content dynamically
 
    • Set STUB = TWiki::Contrib::TwistyContrib
Changed:
<
<
  • One line description:
    • Set SHORTDESCRIPTION = Placeholder for the twisty javascript library.

Installation Instructions

>
>

Installation Instructions

 
  • Download the ZIP file from the Plugin web (see below)
  • Unzip TwistyContrib.zip in your ($TWIKI_ROOT) directory. Content:
Line: 50 to 49
 
  • Alternatively, manually make sure the dependencies listed in the table below are resolved. None
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 /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

 
Authors: Javascript created by TWiki:Main.SamHasler, Contrib packaged by TWiki:Main.RafaelAlvarez
Copyright ©: 2005 Sam Hasler and Rafael Alvarez
License: GPL
Dependencies: None
Changed:
<
<
12/09/2005 1.000 First Version
>
>
12 Sep 2005 1.000 First Version
 
Home: http://TWiki.org/cgi-bin/view/Plugins/TwistyContrib
Feedback: http://TWiki.org/cgi-bin/view/Plugins/TwistyContribDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/TwistyContribAppraisal

Related Topics: TWikiPreferences

Changed:
<
<
META FILEATTACHMENT attachment="twist.js" attr="" comment="Javscript library" date="1126427179" name="twist.js" path="twist.js" size="3441" stream="twist.js" user="Main.RafaelAlvarez" version="0"
META FILEATTACHMENT attachment="twist.css" attr="" comment="Style Sheet" date="1126427224" name="twist.css" path="twist.css" size="122" stream="twist.css" user="Main.RafaelAlvarez" version="0"
META FILEATTACHMENT attachment="toggle-optm-jsoff-sep.html" attr="" comment="Example of usage" date="1126427282" name="toggle-optm-jsoff-sep.html" path="toggle-optm-jsoff-sep.html" size="1716" stream="toggle-optm-jsoff-sep.html" user="Main.RafaelAlvarez" version="0"
>
>
-- TWiki:Main.SamHasler - 12 Sep 2005
META FILEATTACHMENT attachment="twist.js" attr="" comment="Javscript library" date="1126427179" name="twist.js" path="twist.js" size="3441" stream="twist.js" user="TWikiContributors" version="0"
META FILEATTACHMENT attachment="twist.css" attr="" comment="Style Sheet" date="1126427224" name="twist.css" path="twist.css" size="122" stream="twist.css" user="TWikiContributors" version="0"
META FILEATTACHMENT attachment="toggle-optm-jsoff-sep.html" attr="" comment="Example of usage" date="1126427282" name="toggle-optm-jsoff-sep.html" path="toggle-optm-jsoff-sep.html" size="1716" stream="toggle-optm-jsoff-sep.html" user="TWikiContributors" version="0"

TwistyContrib 1 - 2005-09-12 - RafaelAlvarez
Line: 1 to 1
Added:
>
>

TwistyContrib

Summary

This 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.

Customization

Skins can customize the color of the twisty placeholder by modifiying the .twistyPlaceholder style.

Settings

  • Name of the perl package
    • Set STUB = TWiki::Contrib::TwistyContrib

  • One line description:
    • Set SHORTDESCRIPTION = Placeholder for the twisty javascript library.

Installation Instructions

  • Download the ZIP file from the Plugin web (see below)
  • Unzip TwistyContrib.zip in your ($TWIKI_ROOT) directory. Content:
    File: Description:
    data/TWiki/TwistyContrib.txt NEW
    lib/TWiki/Contrib/TwistyContrib.pm NEW
    pub/TWiki/TwistyContrib/toggle-optm-jsoff-sep.html NEW
    pub/TWiki/TwistyContrib/twist.css NEW
    pub/TWiki/TwistyContrib/twist.js NEW

  • Optionally, run TwistyContrib_installer to automatically check and install other TWiki modules that this module depends on. You can also do this step manually.
  • Alternatively, manually make sure the dependencies listed in the table below are resolved. None

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 /bin/view/TWiki.TwistyContrib?raw=on to see how it's done.


Click on the button above to fold this section.

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; 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

Authors: Javascript created by TWiki:Main.SamHasler, Contrib packaged by TWiki:Main.RafaelAlvarez
Copyright ©: 2005 Sam Hasler and Rafael Alvarez
License: GPL
Dependencies: None
12/09/2005 1.000 First Version
Home: http://TWiki.org/cgi-bin/view/Plugins/TwistyContrib
Feedback: http://TWiki.org/cgi-bin/view/Plugins/TwistyContribDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/TwistyContribAppraisal

Related Topics: TWikiPreferences

META FILEATTACHMENT attachment="twist.js" attr="" comment="Javscript library" date="1126427179" name="twist.js" path="twist.js" size="3441" stream="twist.js" user="Main.RafaelAlvarez" version="0"
META FILEATTACHMENT attachment="twist.css" attr="" comment="Style Sheet" date="1126427224" name="twist.css" path="twist.css" size="122" stream="twist.css" user="Main.RafaelAlvarez" version="0"
META FILEATTACHMENT attachment="toggle-optm-jsoff-sep.html" attr="" comment="Example of usage" date="1126427282" name="toggle-optm-jsoff-sep.html" path="toggle-optm-jsoff-sep.html" size="1716" stream="toggle-optm-jsoff-sep.html" user="Main.RafaelAlvarez" version="0"


Revision 2r2 - 2006-02-22 - 08:42:37 - TWikiContributor
Revision 1r1 - 2005-09-12 - 02:01:52 - RafaelAlvarez
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.TwistyContrib
Syndicate this site RSSATOM