var blogMenus = document.getElementsByName("blog-menu");
var projectsMenu = document.getElementsByName("projects-menu");
var diff1 = "";
var diff2 = "../";
if(document.URL.includes("index.html") || document.URL == "http://oliver-jk-redding.github.io/") {
  diff1 = "blog/";
  diff2 = "";  
}
else {  
  drawBlogMenu(blogMenus[1]);
}
drawBlogMenu(blogMenus[0]);
drawProjectMenu(projectsMenu[0]);

function drawBlogMenu(menu) {  
  menu.innerHTML = ""+
  "<li class=\"u-cf\">"+
    "<a style=\"padding-top: 10px;\" href=\"" + diff1 + "c1-reflection-blog.html\">Shereef's Fireside Chat</a>"+
    "</li>"+
  "<li class=\"u-cf\">"+
    "<a href=\"" + diff1 + "c1-time-and-habits-blog.html\">Time and Habits</a>"+ 
  "</li>"+
  "<li class=\"u-cf\">"+ 
    "<a href=\"" + diff1 + "c2-emotional-intelligence.html\">Emotional Intelligence</a>"+   
  "</li>"+
  "<li class=\"u-cf\">"+ 
    "<a href=\"" + diff1 + "t2-html-css-dom-p1.html\">HTML, CSS & DOM</a>"+   
  "</li>"+
  "<li class=\"u-cf\">"+ 
    "<a href=\"" + diff1 + "t2-html-css-dom-p2.html\">HTML, CSS & DOM 2</a>"+   
  "</li>"+
  "<li class=\"u-cf\">"+
    "<a href=\"" + diff1 + "t3-design-to-web-blog.html\">Design to Web</a>"+       
  "</li>"+
  "<li class=\"u-cf\">"+ 
    "<a href=\"" + diff1 + "c3-meditation-process.html\">Meditation Process</a>"+   
  "</li>"+
  "<li class=\"u-cf\">"+ 
    "<a href=\"" + diff1 + "t4-javascript-basics.html\">Javascript Basics</a>"+   
  "</li>"+
  "<li class=\"u-cf\">"+ 
    "<a href=\"" + diff1 + "c4-daily-mindfulness.html\">Daily Mindfulness</a>"+   
  "</li>"+
  "<li class=\"u-cf\">"+ 
    "<a href=\"" + diff1 + "c5-self-confidence.html\">Self Confidence</a>"+   
  "</li>"+
  "<li class=\"u-cf\">"+ 
    "<a href=\"" + diff1 + "t5-problem-solving.html\">Problem Solving</a>"+   
  "</li>"+
  "<li class=\"u-cf\">"+ 
    "<a href=\"" + diff1 + "t6-testing.html\">Testing</a>"+
  "</li>"+
  "<li class=\"u-cf\">"+ 
    "<a href=\"" + diff1 + "c6-control.html\">Control</a>"+
  "</li>"+
  "<li class=\"u-cf\">"+ 
    "<a href=\"" + diff1 + "c7-motivation.html\">Motivation</a>"+
  "</li>"+
  "<li class=\"u-cf\">"+ 
    "<a href=\"" + diff1 + "cognitive-biases.html\">Cognitive Biases</a>"+
  "</li>"+
  "";
}

function drawProjectMenu(menu) {  
  menu.innerHTML = ""+
  "<li class=\"u-cf\">"+
    "<a style=\"padding-top: 10px;\" href=\"" + diff2 + "oliver-jk-redding/javascript-racer\">Javascript Racer</a>"+
  "</li>"+ 
  "<li class=\"u-cf\">"+
    "<a href=\"" + diff2 + "oliver-jk-redding/frontend-nanodegree-resume\">Udacity Resume</a>"+  
  "</li>"+
  "<li class=\"u-cf\">"+
    "<a href=\"" + diff2 + "http://vickenliu.github.io/quote-generator/\">JS-Quote-Generator</a>"+  
  "</li>"+
  "<li class=\"u-cf\">"+
    "<a href=\"" + diff2 + "oliver-jk-redding/js-calculator\">JS-Calculator</a>"+  
  "</li>"+
  "";
}
@@ -2341,32 +2341,39 @@
 =%5C%22%22 + diff2 + %22
+http://
 oliver-jk-reddin
@@ -2373,16 +2373,26 @@
 -redding
+.github.io
 /javascr
@@ -2483,32 +2483,39 @@
 =%5C%22%22 + diff2 + %22
+http://
 oliver-jk-reddin
@@ -2515,16 +2515,26 @@
 -redding
+.github.io
 /fronten
@@ -2779,16 +2779,23 @@
 iff2 + %22
+http://
 oliver-j
@@ -2803,16 +2803,26 @@
 -redding
+.github.io
 /js-calc

fix links