Difference between revisions of "Sitemap"

Line 157: Line 157:
  
 
case 1: //this page is likely to have a hub to append to
 
case 1: //this page is likely to have a hub to append to
append_tier_two ( page_name[w] );   
+
append_tier_two ( page_name, w);   
 
break;
 
break;
  
Line 180: Line 180:
 
return false;
 
return false;
 
}
 
}
 +
}
 +
 +
 +
function append_to_not_sorted  (page_name) {
 +
 +
$("#not_sorted").append("<li> <a  href='"+page_name+"'>"+page_name +"</a></li>");
 +
 
}
 
}
  
Line 189: Line 196:
  
  
function append_tier_two (page_name ) {
+
function append_tier_two (page_name, w ) {
  
if ( ( $( "#"+page_name.substring(0, page_name.indexOf("/") )  ) ).length ) {
+
if ( page_name[w-1] == page_name.substring(0, page_name.indexOf("/") )  ) {
 +
console.log (" this is the first instance");
 +
}
 +
if ( ( $( "#"+page_name[w].substring(0, page_name[w].indexOf("/") )  ) ).length ) {
  
$("#"+page_name.substring(0, page_name.indexOf("/") ) ).append("<ul><li id='"+page_name+"'>"+page_name+"</li></ul>");
+
$("#"+page_name[w].substring(0, page_name[w].indexOf("/") ) ).append("<ul><li id='"+page_name[w]+"'>"+page_name[w]+"</li></ul>");
  
 
}
 
}
Line 215: Line 225:
  
  
function append_to_not_sorted  (page_name) {
 
 
$("#not_sorted").append("<li> <a  href='"+page_name+"'>"+page_name +"</a></li>");
 
 
}
 
  
  

Revision as of 22:22, 2 March 2016

Total number of pages 2016 Wiki HQ Not sorted Redirect

Menu items

Lorem ipsum

All Pages