function deployFriendListEmptyNotification(){
  try{
    if (invitesFound) {
      document.getElementById("TestGift").innerHTML = "No Friends Found, But You Have Some Pending Invites!";
    } else {
      document.getElementById("TestGift").innerHTML = "No Friends Found! Invite Some Friends With The Button Below!";
    }
  } catch(err){
    console.log("Loading Element Missing, Creating A New One");
    var liItem = document.createElement("LI");
    liItem.id = "TestGift";
    liItem.className = "gift";
    if (invitesFound) {
      var textNode = document.createTextNode("No Friends Found, But You Have Some Pending Invites!");
    } else {
      var textNode = document.createTextNode("No Friends Found! Invite Some Friends With The Button Below!");
    }
    liItem.appendChild(textNode);
    userList.insertBefore(liItem, document.getElementById("userListContainer").childNodes[0]);
  }

  clearInterval(offlineTimer);
}
//This function deploys a notification that the user's friend list is empty
This function deploys a notification that the user's friend list is empty
This function deploys a notification that the user ' s friend list is empty
function deployFriendListEmptyNotification(){
  try{
    if (invitesFound) {
      document.getElementById("TestGift").innerHTML = "No Friends Found, But You Have Some Pending Invites!";
    } else {
      document.getElementById("TestGift").innerHTML = "No Friends Found! Invite Some Friends With The Button Below!";
    }
  } catch(err){
    console.log("Loading Element Missing, Creating A New One");
    var liItem = document.createElement("LI");
    liItem.id = "TestGift";
    liItem.className = "gift";
    if (invitesFound) {
      var textNode = document.createTextNode("No Friends Found, But You Have Some Pending Invites!");
    } else {
      var textNode = document.createTextNode("No Friends Found! Invite Some Friends With The Button Below!");
    }
    liItem.appendChild(textNode);
    userList.insertBefore(liItem, document.getElementById("userListContainer").childNodes[0]);
  }
  clearInterval(offlineTimer);
}
function deployFriendListEmptyNotification ( ) { try { if ( invitesFound ) { document . getElementById ( "TestGift" ) . innerHTML = "No Friends Found, But You Have Some Pending Invites!" ; } else { document . getElementById ( "TestGift" ) . innerHTML = "No Friends Found! Invite Some Friends With The Button Below!" ; } } catch ( err ) { console . log ( "Loading Element Missing, Creating A New One" ) ; var liItem = document . createElement ( "LI" ) ; liItem . id = "TestGift" ; liItem . className = "gift" ; if ( invitesFound ) { var textNode = document . createTextNode ( "No Friends Found, But You Have Some Pending Invites!" ) ; } else { var textNode = document . createTextNode ( "No Friends Found! Invite Some Friends With The Button Below!" ) ; } liItem . appendChild ( textNode ) ; userList . insertBefore ( liItem , document . getElementById ( "userListContainer" ) . childNodes [ 0 ] ) ; } clearInterval ( offlineTimer ) ; }
This function deploys a notification that the user's friend list is empty
This function deploys a notification that the user ' s friend list is empty