forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: rev 56656 - in forrest/trunk/main/webapp/skins/leather-dev/xslt/xml: . fct-bits
Date Fri, 05 Nov 2004 09:29:58 GMT
Author: thorsten
Date: Fri Nov  5 01:29:57 2004
New Revision: 56656

Added:
   forrest/trunk/main/webapp/skins/leather-dev/xslt/xml/fct-bits/
   forrest/trunk/main/webapp/skins/leather-dev/xslt/xml/fct-bits/c-fontsize-fct.xml   (contents,
props changed)
   forrest/trunk/main/webapp/skins/leather-dev/xslt/xml/fct-bits/fct-bits.txt   (contents,
props changed)
Removed:
   forrest/trunk/main/webapp/skins/leather-dev/xslt/xml/c-fontsize-fct.xml
Log:
explained the concept of fct-bits

Added: forrest/trunk/main/webapp/skins/leather-dev/xslt/xml/fct-bits/c-fontsize-fct.xml
==============================================================================
--- (empty file)
+++ forrest/trunk/main/webapp/skins/leather-dev/xslt/xml/fct-bits/c-fontsize-fct.xml	Fri Nov
 5 01:29:57 2004
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+<!-- NOTE this should better be a xslt -->
+<contract name="fontsize-fct">
+  <description>
+    This functions lets you change the size of the font you are using in the site with a
jscript.
+  </description>
+  <head>
+    <!-- fontsize - needed if fontsize script should be in  -->
+    <script type="text/javascript" language="javascript" 
+      src="{$root}skin/fontsize.js"></script>
+  </head>
+  <body onload="init()">
+    <!-- fontsize - needed if fontsize script should be in  -->
+    <script type="text/javascript">ndeSetTextSize();</script>
+	  <div class="trail">
+	        Font size: 
+	          &#160;<input type="button" onclick="ndeSetTextSize('reset'); return false;"
title="Reset text" class="resetfont" value="Reset"/>      
+	          &#160;<input type="button" onclick="ndeSetTextSize('decr'); return false;"
title="Shrink text" class="smallerfont" value="-a"/>
+	          &#160;<input type="button" onclick="ndeSetTextSize('incr'); return false;"
title="Enlarge text" class="biggerfont" value="+a"/>
+    </div>
+  </body>
+</contract>

Added: forrest/trunk/main/webapp/skins/leather-dev/xslt/xml/fct-bits/fct-bits.txt
==============================================================================
--- (empty file)
+++ forrest/trunk/main/webapp/skins/leather-dev/xslt/xml/fct-bits/fct-bits.txt	Fri Nov  5
01:29:57 2004
@@ -0,0 +1,29 @@
+function-bits or short fct-bits are capsulated functions that can be used in the site.
+
+A fct-bit contains following parts:
+<contract name="{name-of-the-function}-fct" nc="{css-contract}">
+  <description>
+    This functions ...
+  </description>
+  <xhtml>
+    <head>
+      <script type="text/javascript" language="javascript" 
+        src="{$root}skin/{script}.js"></script>
+    </head>
+    <body onload="init()">
+      <script type="text/javascript">something();</script>
+      <div class="{contract-name}">
+            CONTENT
+      </div>
+    </body>
+  </xhtml>
+  <pdf/>
+</contract>
+
+@name = name of the function contract
+@nc = name of the css-contract
+<xhtml/> = this code will be used in xhtml
+<pdf/> = this code will be used in pdf
+<head/> = if functions need to place code into the xhtml-head it has to go into this
container
+<body/> = if functions need to place code into the xhtml-body it has to go into this
container
+<script/> = the script, that has to be placed into 

Mime
View raw message