ºÚÁÏ´«ËÍÃÅ

Project T3
Do it yourself, but not alone: Companion-Technology for Home Improvement

Project Manager

Project Coordinator

Dr. Pascal Bercher

Pascal Bercher
Dr.& ).ready( function() { // Insert a row on top of the content. Also add a list for the breadcrumbs $(this).find("main").prepend(""); var bcList = $(this).find(".bc-list"); // Find all
  • nodes in the navigation which are tagged as active var activeNavNodes = $(this).find("nav li[data-actnavigationpage='1'], nav li[data-curnavigationpage='1']"); // Extract the related link and text of the active
  • nodes and add it to the breadcrumbs list var anchor, link, text; activeNavNodes.each( function(){ // Case differentiation on first navigation level if( $(this).parent().hasClass("main-navigation-level1") ){ text = $(this).find("span:first").text().trim(); bcList.append("
  • >" + text + "
  • "); } else { anchor = $(this).find("a:first"); link = anchor.attr("href"); text= anchor.text().trim(); bcList.append("
  • >" + text + "
  • "); }; } ); });