function iwatched(title){
  console.log(title + ' was watched');
  if (watched.indexOf(title) == -1) {
    //modifies watched
    visualChange(title);
    watched.push(title);
    added_watched.push(title);
    console.log('it was added to added_watched');
    //if the user is logged in, saves his current activity
    if (username != null && username != "") {
      setWatched()
    }
  }
}
//changes the color of text of already watched stuff
changes the color of text of already watched stuff
changes the color of text of already watched stuff
function iwatched(title){
  console.log(title + ' was watched');
  if (watched.indexOf(title) == -1) {
    visualChange(title);
    watched.push(title);
    added_watched.push(title);
    console.log('it was added to added_watched');
    if (username != null && username != "") {
      setWatched()
    }
  }
}
function iwatched ( title ) { console . log ( title + ' was watched' ) ; if ( watched . indexOf ( title ) == - 1 ) { visualChange ( title ) ; watched . push ( title ) ; added_watched . push ( title ) ; console . log ( 'it was added to added_watched' ) ; if ( username != null && username != "" ) { setWatched ( ) } } }
changes the color of text of already watched stuff
changes the color of text of already watched stuff
//modifies watched //if the user is logged in, saves his current activity