function areYouStillThereNote(timeElapsed){
    var timeRemaining = logoutLimit - timeElapsed;
    var timeMins = Math.floor(timeRemaining/60);
    var timeSecs = timeRemaining%60;

    if (timeSecs < 10) {
      timeSecs = ("0" + timeSecs).slice(-2);
    }


    try {
        modal.style.display = "none";
    } catch (err) {
        //console.log("Basic Modal Not Open");
    }
    noteInfoField.innerHTML = "You have been inactive for 5 minutes, you will be logged out in " + timeMins
      + ":" + timeSecs + "!";
    noteTitleField.innerHTML = "Are You Still There?";
    noteModal.style.display = "block";
    currentModalOpen = "noteModal";
    console.log("Modal Open: " + currentModalOpen);

    //close on close
    noteSpan.onclick = function() {
      currentModalOpen = "";
      console.log("Closed modal");
      noteModal.style.display = "none";
      areYouStillThereBool = false;
    };
  }
//been inactive for too long.
been inactive for too long.
been inactive for too long .
function areYouStillThereNote(timeElapsed){
    var timeRemaining = logoutLimit - timeElapsed;
    var timeMins = Math.floor(timeRemaining/60);
    var timeSecs = timeRemaining%60;
    if (timeSecs < 10) {
      timeSecs = ("0" + timeSecs).slice(-2);
    }
    try {
        modal.style.display = "none";
    } catch (err) {
    }
    noteInfoField.innerHTML = "You have been inactive for 5 minutes, you will be logged out in " + timeMins
      + ":" + timeSecs + "!";
    noteTitleField.innerHTML = "Are You Still There?";
    noteModal.style.display = "block";
    currentModalOpen = "noteModal";
    console.log("Modal Open: " + currentModalOpen);
    noteSpan.onclick = function() {
      currentModalOpen = "";
      console.log("Closed modal");
      noteModal.style.display = "none";
      areYouStillThereBool = false;
    };
  }
function areYouStillThereNote ( timeElapsed ) { var timeRemaining = logoutLimit - timeElapsed ; var timeMins = Math . floor ( timeRemaining / 60 ) ; var timeSecs = timeRemaining % 60 ; if ( timeSecs < 10 ) { timeSecs = ( "0" + timeSecs ) . slice ( - 2 ) ; } try { modal . style . display = "none" ; } catch ( err ) { } noteInfoField . innerHTML = "You have been inactive for 5 minutes, you will be logged out in " + timeMins + ":" + timeSecs + "!" ; noteTitleField . innerHTML = "Are You Still There?" ; noteModal . style . display = "block" ; currentModalOpen = "noteModal" ; console . log ( "Modal Open: " + currentModalOpen ) ; noteSpan . onclick = function ( ) { currentModalOpen = "" ; console . log ( "Closed modal" ) ; noteModal . style . display = "none" ; areYouStillThereBool = false ; } ; }
been inactive for too long.
been inactive for too long .
//console.log("Basic Modal Not Open"); //close on close