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
Custom attribute #6
Comments
Whoops, I think Github's markdown ate your comment...but if I understand correctly you'd like to do:
instead of
At the moment the script only assumes the data is in the href. However, it shouldn't be too hard to modify the code to use a data-url attribute in combination with the pt-playable class, something like:
As a proof of concept, you could try replacing references to o.href in the pushtape-player.js script with o.getAttribute('data-pushtape-url'). Let me know if this works -- I'd be interested in adding this functionality if so. |
@chadul, curious why you closed this? Did you try the solution as suggested? |
I have tried all above you mentioned but not working, currently I use jQuery to prevent "long touch" or "right click" of "href" links in ul. |
Is possible to use custom attribute of sound file links i.e instead
I don't want mobile user can see the link through "long touch"
The text was updated successfully, but these errors were encountered: