Difference between revisions of "Team:Purdue/Navpage"

Line 40: Line 40:
  
 
function addLink(Name_Url){
 
function addLink(Name_Url){
 +
var flag=0
 
for(i = 0; i<entryBlocks.length; i++){
 
for(i = 0; i<entryBlocks.length; i++){
 
     if(entryBlocks[i].letter==(Name_Url.toUpperCase())[0]){
 
     if(entryBlocks[i].letter==(Name_Url.toUpperCase())[0]){
 
         addLinkToList(Name_Url,i);
 
         addLinkToList(Name_Url,i);
 +
        flag=1;
 +
 
}
 
}
    else{
 
    document.getElementById("error").innerHTML="ERROR IN LINK NAME";
 
 
}
 
}
 +
    if(!flag){
 +
    document.getElementById("error").innerHTML="ERROR IN LINK NAME";
 
}
 
}
 +
 
}
 
}
  

Revision as of 17:56, 13 June 2018

Bootstrap Example