You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by de...@apache.org on 2014/05/30 18:13:15 UTC
svn commit: r1598654 - in /uima/site/trunk/uima-website/xdocs:
doc-uimaducc-demo.xml stylesheets/site.vsl
Author: degenaro
Date: Fri May 30 16:13:15 2014
New Revision: 1598654
URL: http://svn.apache.org/r1598654
Log:
UIMA-3806 Explain DUCC demo
work-in-progress
Modified:
uima/site/trunk/uima-website/xdocs/doc-uimaducc-demo.xml
uima/site/trunk/uima-website/xdocs/stylesheets/site.vsl
Modified: uima/site/trunk/uima-website/xdocs/doc-uimaducc-demo.xml
URL: http://svn.apache.org/viewvc/uima/site/trunk/uima-website/xdocs/doc-uimaducc-demo.xml?rev=1598654&r1=1598653&r2=1598654&view=diff
==============================================================================
--- uima/site/trunk/uima-website/xdocs/doc-uimaducc-demo.xml (original)
+++ uima/site/trunk/uima-website/xdocs/doc-uimaducc-demo.xml Fri May 30 16:13:15 2014
@@ -21,6 +21,61 @@
<document>
+<scripts>
+<script>
+ window.onload=init;
+ function init() {
+ hide('q2');
+ hide('q3');
+ show('q1');
+ }
+ function hide(id) {
+ //alert('hide:'+id);
+ element = document.getElementById(id)
+ element.style.display='none';
+ }
+ function show(id) {
+ //alert('show:'+id);
+ element = document.getElementById(id)
+ element.style.display='';
+ }
+ function goLeft(location) {
+ if(location == 'q1') {
+ hide('q1');
+ hide('q2');
+ show('q3');
+ }
+ else if(location == 'q2') {
+ hide('q2');
+ hide('q3');
+ show('q1');
+ }
+ else if(location == 'q3') {
+ hide('q3');
+ hide('q1');
+ show('q2');
+ }
+ }
+ function goRight(location) {
+ if(location == 'q1') {
+ hide('q3');
+ hide('q1');
+ show('q2');
+ }
+ else if(location == 'q2') {
+ hide('q1');
+ hide('q2');
+ show('q3');
+ }
+ else if(location == 'q3') {
+ hide('q3');
+ hide('q2');
+ show('q1');
+ }
+ }
+</script>
+</scripts>
+
<properties>
<title>Demo: Apache UIMA DUCC</title>
<author email="dev@uima.apache.org">
Modified: uima/site/trunk/uima-website/xdocs/stylesheets/site.vsl
URL: http://svn.apache.org/viewvc/uima/site/trunk/uima-website/xdocs/stylesheets/site.vsl?rev=1598654&r1=1598653&r2=1598654&view=diff
==============================================================================
--- uima/site/trunk/uima-website/xdocs/stylesheets/site.vsl (original)
+++ uima/site/trunk/uima-website/xdocs/stylesheets/site.vsl Fri May 30 16:13:15 2014
@@ -259,6 +259,12 @@ under the License.
#end
##
<title>$project.getChild("title").getText() - $root.getChild("properties").getChild("title").getText()</title>
+#set ($scripts = $root.getChild("scripts"))
+#if ($scripts)
+ #foreach ( $item in $scripts.getChildren() )
+ $item
+ #end
+#end
</head>
<body>