« first day (4067 days earlier)      last day (1104 days later) » 

user17382064
02:51
This is what I was supposed to do:
user17382064
  function findPlayers() {
    const allCovers = document.querySelectorAll(".cover");
    const allWrappers = document.querySelectorAll(".wrap");
    allWrappers.forEach(function addToPlayers(cover, index) {
      players.push({
       "cover": cover,
       "wrapper": allWrappers[index]
      });
    });
  }
user17382064
I'm making progress.
04:16
 
3 hours later…
07:24
I already implemented chat system with socketio for realtime communication. I am just changing my logic for new requirements. I want to ensure old client side apk will not break feature, so how can i maintain versioning for socketio ?
@MUHAMMADSHAHIDRAFICP Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
4 hours later…
user17382064
11:25
Kevin, I am told this next to do.

"find the players item that has a matching cover, and when you’ve found that you return the wrapper that is on the same item."
user17382064
That is this line:
user17382064
const wrapper = manageUI.getWrapper(cover);
user17382064
Doing this is wrong I believe: const wrapper = manageUI.getWrapper(cover);return wrapper;
user17382064
  function addPlayer(coverSelector, playerOptions) {
    const cover = document.querySelector(coverSelector);
    const wrapper = manageUI.getWrapper(cover);return wrapper;
    const callback = managePlayer.adder(wrapper, playerOptions);
    manageCover.addCoverHandler(coverSelector, callback);
  }
user17382064
I don't think this is right.
user17382064
11:37
function addPlayer(coverSelector, playerOptions) {
    const cover = document.querySelector(coverSelector);
    const wrapper = manageUI.getWrapper(cover);
    const callback = managePlayer.adder(wrapper, playerOptions);
    manageCover.addCoverHandler(coverSelector, callback);
   return wrapper;
  }
user17382064
This is where I update getWrapper so that instead of using DOM navigation to find the wrapper, it searches the players array for it instead.
user17382064
I am supposed to do this: "find the players item that has a matching cover, and when you’ve found that you return the wrapper that is on the same item."
user17382064

« first day (4067 days earlier)      last day (1104 days later) »