Team:UNITS Trieste/Template:Header

From 2011.igem.org

(Difference between revisions)
Line 10: Line 10:
             if($('.current_page_item').length>0||$('#access strong').length>1) {
             if($('.current_page_item').length>0||$('#access strong').length>1) {
               //var subm = $('#access strong').parents("ul.children").find("li.page_item");
               //var subm = $('#access strong').parents("ul.children").find("li.page_item");
-
// Get a refernce to the OL list element.
+
 
var destination = $('#submenu');
var destination = $('#submenu');
-
// Create our array.
 
var subm = $('#access strong').parents("ul.children").find("li.page_item");
var subm = $('#access strong').parents("ul.children").find("li.page_item");
-
// Loop over each value in the array.
 
$.each( subm, function( intIndex, objValue ){
$.each( subm, function( intIndex, objValue ){
 +
  var linkm = objValue.firstChild;
 +
  if(linkm == [object HTMLElement]);
 +
  else destination.append($( "<span>" + linkm + "</span>" ));
   destination.append($( "<span>" + objValue.firstChild.innerHTML + "</span>" ));
   destination.append($( "<span>" + objValue.firstChild.innerHTML + "</span>" ));
});
});

Revision as of 09:35, 27 August 2011