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

user17382064
2:51 AM
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.
 
4:16 AM
 
 
3 hours later…
7:24 AM
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 AM
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 AM
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 (867 days later) »