Team:UNITN-Trento/JS/Styles/Menu

From 2013.igem.org

/**

*
*/

function buildMenu(id) { var links = $("#tn-menu-"+id).attr("data-list-link").split(";"); var labels = $("#tn-menu-"+id).attr("data-list-labels").split(";");

for (var i=0; i < links.length; i++) { $("#tn-menu-"+id).append("<a href='"+$.trim(links[i])+"' id='tn-v-"+id+"' class='tn-label'>"+$.trim(labels[i])+"</a>"); } }