You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@taverna.apache.org by br...@apache.org on 2015/03/20 15:18:48 UTC

svn commit: r1668027 - /incubator/taverna/site/trunk/content/download/code/test.md

Author: brenninc
Date: Fri Mar 20 14:18:48 2015
New Revision: 1668027

URL: http://svn.apache.org/r1668027
Log:
another onload attempt

Modified:
    incubator/taverna/site/trunk/content/download/code/test.md

Modified: incubator/taverna/site/trunk/content/download/code/test.md
URL: http://svn.apache.org/viewvc/incubator/taverna/site/trunk/content/download/code/test.md?rev=1668027&r1=1668026&r2=1668027&view=diff
==============================================================================
--- incubator/taverna/site/trunk/content/download/code/test.md (original)
+++ incubator/taverna/site/trunk/content/download/code/test.md Fri Mar 20 14:18:48 2015
@@ -16,29 +16,6 @@ Notice:    Licensed to the Apache Softwa
            specific language governing permissions and limitations
            under the License.
 
-<script>
-function check() {
-   var x = document.getElementsByClassName("gitlink");
-   var i;
-   if ( document.getElementById("picker").value == "Apache Committer"){
-      for (i = 0; i < x.length; i++) {
-         x[i].value = "https://git-wip-us.apache.org/repos/asf/" +x[i].id + ".git";
-      }
-   }
-   if ( document.getElementById("picker").value == "Apache git"){
-      for (i = 0; i < x.length; i++) {
-         x[i].value = "git://git.apache.org/" +x[i].id + ".git";
-      }
-      
-   }
-   if ( document.getElementById("picker").value == "Github"){
-      for (i = 0; i < x.length; i++) {
-        x[i].value = "https://github.com/apache/" +x[i].id + ".git";
-      }
-   }
-}
-$( document ).ready( check );
-</script>
 Apache Taverna's source code is hosted at [git.apache.org](http://git.apache.org/), with read-only mirroring to 
 [GitHub](https://github.com/apache/?query=taverna-).
 
@@ -310,6 +287,30 @@ Some plugins that were previously part o
 * RShell activity
 * [Table activity](https://github.com/taverna-extras/table-activity)
 
+<script>
+function check() {
+   var x = document.getElementsByClassName("gitlink");
+   var i;
+   if ( document.getElementById("picker").value == "Apache Committer"){
+      for (i = 0; i < x.length; i++) {
+         x[i].value = "https://git-wip-us.apache.org/repos/asf/" +x[i].id + ".git";
+      }
+   }
+   if ( document.getElementById("picker").value == "Apache git"){
+      for (i = 0; i < x.length; i++) {
+         x[i].value = "git://git.apache.org/" +x[i].id + ".git";
+      }
+      
+   }
+   if ( document.getElementById("picker").value == "Github"){
+      for (i = 0; i < x.length; i++) {
+        x[i].value = "https://github.com/apache/" +x[i].id + ".git";
+      }
+   }
+}
+check ();
+</script>
+