incubator-accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r799022 - /websites/staging/accumulo/trunk/content/accumulo/misc/logo_contest_votes_round2.html
Date Mon, 21 Nov 2011 02:11:06 GMT
Author: buildbot
Date: Mon Nov 21 02:11:05 2011
New Revision: 799022

Log:
Staging update by buildbot

Added:
    websites/staging/accumulo/trunk/content/accumulo/misc/logo_contest_votes_round2.html

Added: websites/staging/accumulo/trunk/content/accumulo/misc/logo_contest_votes_round2.html
==============================================================================
--- websites/staging/accumulo/trunk/content/accumulo/misc/logo_contest_votes_round2.html (added)
+++ websites/staging/accumulo/trunk/content/accumulo/misc/logo_contest_votes_round2.html Mon
Nov 21 02:11:05 2011
@@ -0,0 +1,60 @@
+<html>
+<head>
+<title>Accumulo Logo Submissions</title>
+<script>
+var images;
+var imageObjects;
+
+function setImageWidth(event)
+{
+	imageWidth = document.getElementById("imagewidth").value;
+
+	for(image in imageObjects)
+	{
+		document.getElementById(imageObjects[image].id).width=imageWidth;
+	}
+}
+</script>
+</head>
+<body>
+Please vote for your favorite of the following candidates at <a href="https://issues.apache.org/jira/browse/ACCUMULO-87">ACCUMULO-87</a>.<br><hr>
+<form id="iwform" action="javascript:void()">
+Try a different image width: <input type="text" id="imagewidth" width="5" value="200"/><button
id="imagewidthbutton" onclick="setImageWidth">Set</button>
+</form>
+<br><hr>
+<form id="voteForm">
+</form>
+<script>
+document.getElementById("imagewidth").addEventListener("keyup",setImageWidth,true);
+images=["https://issues.apache.org/jira/secure/attachment/12502262/accumulo-logo50.png",
+"https://issues.apache.org/jira/secure/attachment/12503080/long_grid.png",
+"https://issues.apache.org/jira/secure/attachment/12503331/wooccy_the_mammoth.png",
+"https://issues.apache.org/jira/secure/attachment/12502497/zeroes.png",
+];
+imageObjects = new Array(images.length);
+imageContainer = document.getElementById("voteForm");
+for(i = 0; i < images.length; i++)
+{
+	parts = images[i].split("/");
+	imagename = parts[parts.length-1];
+	p = new Image();
+	p.id = "candidateImage"+i;
+	p.width = 200;
+	p.src = images[i];
+	imageObjects[i] = p;
+	if(i > 0)
+	{
+		imageContainer.appendChild(document.createElement("hr"));
+	}
+
+	h1 = document.createElement("h1");
+	h1.textContent=imagename;
+	imageContainer.appendChild(h1);
+
+	imageContainer.appendChild(p);
+	imageContainer.appendChild(document.createElement("br"));
+}
+
+</script>
+</body>
+</html>



Mime
View raw message