Difference between revisions of "Team:NYU Shanghai/Design"
Line 537: | Line 537: | ||
} | } | ||
function expandforty() { | function expandforty() { | ||
− | if (document.getElementById("forty").className === " | + | if (document.getElementById("forty").className === "collapsed") { |
document.getElementById("forty").style.color = "white"; | document.getElementById("forty").style.color = "white"; | ||
document.getElementById("fortyText").style.display = "none"; | document.getElementById("fortyText").style.display = "none"; | ||
− | document.getElementById("forty").className = " | + | document.getElementById("forty").className = "expanded"; |
} else{ | } else{ | ||
document.getElementById("fortyText").style.display = "inline-block"; | document.getElementById("fortyText").style.display = "inline-block"; | ||
document.getElementById("forty").style.color = "#6db"; | document.getElementById("forty").style.color = "#6db"; | ||
− | document.getElementById("forty").className = " | + | document.getElementById("forty").className = "collapsed"; |
}; | }; | ||
} | } |
Revision as of 05:43, 17 September 2015