<?xml version="1.0" encoding="UTF-8"?>

<xwikidoc>
<web>Main</web>
<name>Presentations</name>
<language></language>
<defaultLanguage>en</defaultLanguage>
<translation>0</translation>
<parent>XWiki.Menu</parent>
<creator></creator>
<author>XWiki.superadmin</author>
<contentAuthor></contentAuthor>
<creationDate>1107712021000</creationDate>
<date>1117547449000</date>
<contentUpdateDate>1427132179948</contentUpdateDate>
<version>1.4</version>
<title></title>
<template></template>
<content>1 Presentation

1.1 Create a new presentation

To create a new presentation, you should first choose a name for your presentation.

#includeTopic("XWiki.XWikiCommonJavascript")
&lt;form action="" id="newdoc"&gt;
&lt;input type="hidden" name="parent" value="Main.Presentations"&gt;
&lt;input type="hidden" name="template" value="XWiki.PresentationClassTemplate"&gt;
&lt;input type="hidden" name="sheet" value="1"&gt;
&lt;input type="hidden" name="webname" value="Demo" size="8"&gt;
Document: &lt;input type="text" name="name" value="Name of your presentation" size="80" /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;input type="button" value="Create this presentation" onclick='if (updateName(this.form.name)) {this.form.action="../../inline/" + this.form.webname.value + "/" + this.form.name.value; this.form.submit(); }'&gt;
&lt;/form&gt;

1.1 Existing Presentations

#set ($sql = ", BaseObject as obj where obj.name=doc.fullName and obj.className='XWiki.PresentationClass' and obj.name&lt;&gt;'XWiki.PresentationClassTemplate'")
#foreach ($item in $xwiki.searchDocuments($sql))
#set($itemdoc = $xwiki.getDocument($item))
   * $itemdoc.name: &lt;a href="$itemdoc.getURL("view")"&gt;Preview&lt;/a&gt; &lt;a href="$itemdoc.getURL("inline")"&gt;Edit&lt;/a&gt; &lt;a href="$itemdoc.getURL("view", "xpage=s5b")"&gt;Launch&lt;/a&gt; 
#end

1.1 About this tool

This tool integrates S5 with XWiki. It allows to build a presentation using [S5&gt;http://www.meyerweb.com/eric/tools/s5/] from [Eric Meyer&gt;http://www.meyerweb.com/eric/]. 

It uses XWiki forms to permit creation of a S5 presentation without any use of HTML. It will generate the HTML that is going to be understood by the S5 stylesheet and javascript.

We used a slightly modified version of the S5 model done by [Human Factor&gt;http://www.wats.ca/presentations/humanfactor/]. Our S5 stylesheets and javascript are available [here&gt;http://www.xwiki.com/xwiki/s5/ui2/]
</content>
<renderedcontent>&lt;h2 class="heading-1"&gt;&lt;span id="HPresentation"&gt;Presentation&lt;/span&gt;&lt;/h2&gt; 
&lt;h3 class="heading-1-1"&gt;&lt;span id="HCreateanewpresentation"&gt;Create a new presentation&lt;/span&gt;&lt;/h3&gt;&lt;p class="paragraph"/&gt;To create a new presentation, you should first choose a name for your presentation.&lt;p class="paragraph"/&gt;
&lt;script type="text/javascript"&gt;
&lt;!--
function updateName(field1, field2, removeclass) {
  var name = field1.value;
  name = name.replace(/[???]/gi,"a")
  name = name.replace(/[????]/gi,"e")
  name = name.replace(/[??]/gi,"i")
  name = name.replace(/[??]/gi,"o")
  name = name.replace(/[???]/gi,"u")
  name = name.replace(/["!?]/g,"");
  name = name.replace(/[_':]/g," ");
  if (removeclass!=false)
   name = name.replace(/class$/gi,"");
  if (navigator.userAgent.indexOf("Safari")==-1) {
   name = name.replace(/\s(.)/g,function(str, p1) { return p1.toUpperCase(); });
   name = name.replace(/^(.)/g,function(str, p1) { return p1.toUpperCase(); });
  }
  name = name.replace(/\s+/g,"");
  if (field2 == null) {
         field1.value = name;
     } else {
         field2.value = name;
     }
  if (name=="")
   return false;
  return true;
}
// --&gt;
&lt;/script&gt;


&lt;form action="" id="newdoc"&gt;
&lt;input type="hidden" name="parent" value="Main.Presentations"&gt;
&lt;input type="hidden" name="template" value="XWiki.PresentationClassTemplate"&gt;
&lt;input type="hidden" name="sheet" value="1"&gt;
&lt;input type="hidden" name="webname" value="Demo" size="8"&gt;
Document: &lt;input type="text" name="name" value="Name of your presentation" size="80" /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;input type="button" value="Create this presentation" onclick='if (updateName(this.form.name)) {this.form.action="../../inline/" + this.form.webname.value + "/" + this.form.name.value; this.form.submit(); }'&gt;
&lt;/form&gt;
&lt;h3 class="heading-1-1"&gt;&lt;span id="HExistingPresentations"&gt;Existing Presentations&lt;/span&gt;&lt;/h3&gt; 
&lt;ul class="star"&gt;
&lt;li&gt;WhatIsAWiki: &lt;a href="/xwiki/bin/view/Main/WhatIsAWiki"&gt;Preview&lt;/a&gt; &lt;a href="/xwiki/bin/inline/Main/WhatIsAWiki"&gt;Edit&lt;/a&gt; &lt;a href="/xwiki/bin/view/Main/WhatIsAWiki?xpage=s5b#aspire"&gt;Launch&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;h3 class="heading-1-1"&gt;&lt;span id="HAboutthistool"&gt;About this tool&lt;/span&gt;&lt;/h3&gt;&lt;p class="paragraph"/&gt;This tool integrates S5 with XWiki. It allows to build a presentation using &lt;span class="wikiexternallink"&gt;&lt;a href="http://www.meyerweb.com/eric/tools/s5/"&gt;&amp;#83;5&lt;/a&gt;&lt;/span&gt; from &lt;span class="wikiexternallink"&gt;&lt;a href="http://www.meyerweb.com/eric/"&gt;&amp;#69;ric Meyer&lt;/a&gt;&lt;/span&gt;.&lt;p class="paragraph"/&gt;It uses XWiki forms to permit creation of a S5 presentation without any use of HTML. It will generate the HTML that is going to be understood by the S5 stylesheet and javascript.&lt;p class="paragraph"/&gt;We used a slightly modified version of the S5 model done by &lt;span class="wikiexternallink"&gt;&lt;a href="http://www.wats.ca/presentations/humanfactor/"&gt;&amp;#72;uman Factor&lt;/a&gt;&lt;/span&gt;. Our S5 stylesheets and javascript are available &lt;span class="wikiexternallink"&gt;&lt;a href="http://www.xwiki.com/xwiki/s5/ui2/"&gt;&amp;#104;ere&lt;/a&gt;&lt;/span&gt;
</renderedcontent>
</xwikidoc>