Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

class vs id #1300

Open
halukkaramete opened this issue Jul 3, 2024 · 0 comments
Open

class vs id #1300

halukkaramete opened this issue Jul 3, 2024 · 0 comments

Comments

@halukkaramete
Copy link

halukkaramete commented Jul 3, 2024

Hello,

I have multiple YT players on the same page one after another which comes to viewport just like the tiktok style.
there is a div over each player (which sits as an overlay on video ) to catch the user gestures and that div has a class.
( sure I can each div an ID ) but then, how would hammer/js work? That I do not know.

I'm confused because you select the element using getElementById.
If I change that initialization code to select those divs with getElementsByClassName, then the rest of the implementation will be drastically different, right?

Any suggestions how I should proceed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant