Skip to content

Instantly share code, notes, and snippets.

@jmmastey
Created June 17, 2014 22:02
Show Gist options
  • Save jmmastey/bf14b8cebbfc209fb999 to your computer and use it in GitHub Desktop.
Save jmmastey/bf14b8cebbfc209fb999 to your computer and use it in GitHub Desktop.
<input id="generator" type="button" value="Generate!" />
<p>Locus options here:</p>
<select name="theMenu" id = "setMenu">
<option selected value="real">Real Set</option>
<option value="real1">Real + Fake Set 1</option>
<option value="real2">Real + Fake Set 2</option>
<option value="real1_2">Real + Fake Set 1 and 2</option>
</select>
function whichGenes(){
foo = document.getElementById("setMenu");
if (foo == 'real'){
maybeLocus = geneSet;
} else if (foo == 'real1'){
maybeLocus = geneSet + fakeSet1;
} else if (foo == 'real2'){
maybeLocus = geneSet + fakeSet2;
} else if (foo == 'real1_2'){
maybeLocus = geneSet + fakeSet1 + fakeSet2;
};
};
//the button makes whichGenes() go, among other things.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment