Team:UNITN-Trento/JS/Styles/Menu

From 2013.igem.org

Revision as of 09:24, 25 June 2013 by Ggirelli (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

/**

*
*/

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>"); } }