incubator-accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From afu...@apache.org
Subject svn commit: r1201604 - in /incubator/accumulo/site/trunk/content/accumulo/misc: logo_contest_20111111.html logo_contest_votes.html
Date Mon, 14 Nov 2011 05:42:16 GMT
Author: afuchs
Date: Mon Nov 14 05:42:16 2011
New Revision: 1201604

URL: http://svn.apache.org/viewvc?rev=1201604&view=rev
Log:
ACCUMULO-87

Added:
    incubator/accumulo/site/trunk/content/accumulo/misc/logo_contest_votes.html
Removed:
    incubator/accumulo/site/trunk/content/accumulo/misc/logo_contest_20111111.html

Added: incubator/accumulo/site/trunk/content/accumulo/misc/logo_contest_votes.html
URL: http://svn.apache.org/viewvc/incubator/accumulo/site/trunk/content/accumulo/misc/logo_contest_votes.html?rev=1201604&view=auto
==============================================================================
--- incubator/accumulo/site/trunk/content/accumulo/misc/logo_contest_votes.html (added)
+++ incubator/accumulo/site/trunk/content/accumulo/misc/logo_contest_votes.html Mon Nov 14
05:42:16 2011
@@ -0,0 +1,136 @@
+<html>
+<head>
+<title>Accumulo Logo Submissions</title>
+<script>
+var votes = {};
+var checkboxes = new Array();
+var images;
+var imageObjects;
+function voteForImage(event)
+{
+	// alertstring = "";
+	// for(prop in event)
+		// alertstring += prop + ":" + event[prop] + ", ";
+	// alert(alertstring);
+	checkbox = event.target;
+	imagename = checkbox.imagename;
+	if(checkbox.checked)
+		votes[imagename]=1;
+	else
+		votes[imagename]=0;
+
+	voteString = "";
+	for(candidate in votes)
+	{
+		if(votes[candidate] == 1)
+		{
+			voteString += "+1 " + candidate + "\n";
+		}
+	}
+	document.getElementById("voteFormText").value=voteString;
+	return voteString;
+}
+
+function setImageWidth(event)
+{
+	imageWidth = document.getElementById("imagewidth").value;
+
+	for(image in imageObjects)
+	{
+		document.getElementById(imageObjects[image].id).width=imageWidth;
+	}
+}
+</script>
+</head>
+<body>
+Check the box next to the images you like, then copy your vote from the textbox below into
<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/12503236/a2.png",
+"https://issues.apache.org/jira/secure/attachment/12503271/accumulo+cloud+other+font2.png",
+"https://issues.apache.org/jira/secure/attachment/12503272/accumulo+stylized+cloud.png",
+"https://issues.apache.org/jira/secure/attachment/12502262/accumulo-logo50.png",
+"https://issues.apache.org/jira/secure/attachment/12501656/accumulo_blocks3.png",
+"https://issues.apache.org/jira/secure/attachment/12503056/accumulo_curly.png",
+"https://issues.apache.org/jira/secure/attachment/12503315/accumulo_man.png",
+"https://issues.apache.org/jira/secure/attachment/12503054/accumulo_one_line.png",
+"https://issues.apache.org/jira/secure/attachment/12503057/accumulo_signature.png",
+"https://issues.apache.org/jira/secure/attachment/12501472/logo1.png",
+"https://issues.apache.org/jira/secure/attachment/12501471/logo2.png",
+"https://issues.apache.org/jira/secure/attachment/12503058/accumulo_wire.png",
+"https://issues.apache.org/jira/secure/attachment/12503323/accvmvlo.png",
+"https://issues.apache.org/jira/secure/attachment/12503224/army_cloud.png",
+"https://issues.apache.org/jira/secure/attachment/12502509/black.png",
+"https://issues.apache.org/jira/secure/attachment/12502510/red_circle.png",
+"https://issues.apache.org/jira/secure/attachment/12502511/red_ital.png",
+"https://issues.apache.org/jira/secure/attachment/12502151/circular_c.png",
+"https://issues.apache.org/jira/secure/attachment/12502493/cloud.png",
+"https://issues.apache.org/jira/secure/attachment/12503225/dots.png",
+"https://issues.apache.org/jira/secure/attachment/12503226/dots2.png",
+"https://issues.apache.org/jira/secure/attachment/12503227/grey.png",
+"https://issues.apache.org/jira/secure/attachment/12503080/long_grid.png",
+"https://issues.apache.org/jira/secure/attachment/12502649/grid_or2.png",
+"https://issues.apache.org/jira/secure/attachment/12502886/inverse.png",
+"https://issues.apache.org/jira/secure/attachment/12503229/line.png",
+"https://issues.apache.org/jira/secure/attachment/12503230/line2.png",
+"https://issues.apache.org/jira/secure/attachment/12503228/line_sharp.png",
+"https://issues.apache.org/jira/secure/attachment/12502494/logi_yellow.png",
+"https://issues.apache.org/jira/secure/attachment/12502222/logo3.png",
+"https://issues.apache.org/jira/secure/attachment/12503141/rise.png",
+"https://issues.apache.org/jira/secure/attachment/12502648/skate.png",
+"https://issues.apache.org/jira/secure/attachment/12503231/starburst1.png",
+"https://issues.apache.org/jira/secure/attachment/12503309/starburst1_rounded.png",
+"https://issues.apache.org/jira/secure/attachment/12503232/starburst2.png",
+"https://issues.apache.org/jira/secure/attachment/12502495/stripe_green.png",
+"https://issues.apache.org/jira/secure/attachment/12503142/tipping.png",
+"https://issues.apache.org/jira/secure/attachment/12503331/wooccy_the_mammoth.png",
+"https://issues.apache.org/jira/secure/attachment/12502497/zeroes.png",
+"https://issues.apache.org/jira/secure/attachment/12502496/zeroes_red.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;
+	// document.images[i] = p;
+	if(i > 0)
+	{
+		imageContainer.appendChild(document.createElement("hr"));
+	}
+
+	h1 = document.createElement("h1");
+	h1.textContent=imagename;
+	imageContainer.appendChild(h1);
+
+	checkbox = document.createElement("input");
+	checkbox.type="checkbox";
+	checkbox.imagename = imagename;
+	checkboxes[i] = checkbox;
+	imageContainer.appendChild(checkbox);
+	checkbox.addEventListener("click",voteForImage,false);
+
+	imageContainer.appendChild(p);
+	imageContainer.appendChild(document.createElement("br"));
+}
+
+voteFormText = document.createElement("textarea");
+voteFormText.style.width=300;
+voteFormText.style.height=600;
+voteFormText.id="voteFormText";
+imageContainer.appendChild(voteFormText);
+
+</script>
+</body>
+</html>



Mime
View raw message