Advertisement
CLooker

Untitled

Jan 19th, 2018
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $.post("/api/friends", newSurvey).done(data => {
  2.     const newFriend = data[pickRandomFriend(data.length - 1)];
  3.     $("#matchName").text(newFriend.name);
  4.     $("#matchImg").attr("src", newFriend.photo);
  5.     $("#resultsModal").modal("toggle");
  6.   });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement