Can you confirm for me that "_," can be deleted from the code?
Meaning, the code is able to work with that not being in there?
Working Code: Edit fiddle - JSFiddle - Code Playground
['0', '3', '5', '7'].forEach(function callback(_, index) {
players.add(".playSingle" + index...
It looks like I am back to this:
This code works: Edit fiddle - JSFiddle - Code Playground
const totalP = document.querySelectorAll("[data-container=\"play1\"]");
totalP.forEach(function(_, index) {
players.add(".playSingle" + index, (playerVarsList[index] || {}));
});
This code works: Edit...
What, it's not working now. Edit fiddle - JSFiddle - Code Playground
I thought I had the code working.
["0", "3", "5", "7"].forEach(function callback(index) {
players.add(".playSingle" + index, (playerVarsList[index] || {}));
});
players.add(".playInitial", {});
}
Now it works: Edit fiddle - JSFiddle - Code Playground
["0", "3", "5", "7"].forEach(function callback(index) {
players.add(".playSingle" + index, (playerVarsList[index] || {}));
});
players.add(".playInitial", {});
}
Where this line can be removed: const totalP =...
How can I attempt steps if I don't know what the steps are?
I answered the last question you had for me here: https://codeforum.org/threads/how-to-add-data-id-to-button-allowing-me-to-remove-the-2nd-container.5737/page-14#post-21623
From that point, what is the next thing I am supposed to do...
Without instruction on what to do next in the code, then I am lost and have no idea.
Now I am lost and don't know what I am up to doing in the code. Edit fiddle - JSFiddle - Code Playground
const totalP = document.querySelectorAll("[data-container=\"play1\"]");
['0', '3', '5'...
Custom properties are added to specific players only. In this instance:
Only these players get custom added ones: ['0', '3', '5', '7']
The array is being used to give custom properties to these players only: ['0', '3', '5', '7']
The numbers from these: playSingle0
That are used in the array.
['0', '3', '5', '7']
It gets all of the numbers then separates out the ones used in the array.
I need to loop through the items in totalP to select the numbers that are in the array.
Inside the array I need this information:
playerVars: {
end: 1800,
playlist: "0dgNc5S8cLI,mnfmQe8Mv1g,-Xgi_way56U,CHahce95B1g",
start: 150
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.