asciimation/gallery.js
// <option> tags to put inside the bottom-left select box.
 tags to put inside the bottom-left select box.
tags to put inside the bottom - left select box .
function buildSelectOptions(ajax) {
		var text = ajax.responseText;
		if (typeof(text.trim) === "function") {
			text = text.trim();
		}
		var sortedStudents = text.split(/\r?\n/);
		sortedStudents.sort();
			var select = document.getElementById("gallery");
			while (select.firstChild) {
				select.removeChild(select.firstChild);
			}
			var option = document.createElement("option");
			option.value = "";
			option.innerHTML = "(choose)";
			option.style.fontSize = FONT;
			option.style.fontWeight = "normal";
			select.appendChild(option);
			for (var i = 0; i < sortedStudents.length; i++) {
				if (sortedStudents[i]) {
					var option = document.createElement("option");
					option.value = option.innerHTML = sortedStudents[i];
					select.appendChild(option);
				}
			}
	}
function buildSelectOptions ( ajax ) { var text = ajax . responseText ; if ( typeof ( text . trim ) === "function" ) { text = text . trim ( ) ; } var sortedStudents = text . split ( / \r?\n / ) ; sortedStudents . sort ( ) ; var select = document . getElementById ( "gallery" ) ; while ( select . firstChild ) { select . removeChild ( select . firstChild ) ; } var option = document . createElement ( "option" ) ; option . value = "" ; option . innerHTML = "(choose)" ; option . style . fontSize = FONT ; option . style . fontWeight = "normal" ; select . appendChild ( option ) ; for ( var i = 0 ; i < sortedStudents . length ; i ++ ) { if ( sortedStudents [ i ] ) { var option = document . createElement ( "option" ) ; option . value = option . innerHTML = sortedStudents [ i ] ; select . appendChild ( option ) ; } } }
<option> tags to put inside the bottom-left select box.
<option > tags to put inside the bottom - left select box .
// sort by uwnetid // if (sortedStudents.length > 0) { // clear out existing students // initial empty option // turn each student into an option in the select box on bottom left // }