lity
lity copied to clipboard
Direct link to popup video?
Hello, I can't seem to figure out the proper way to direct link to my lity video popup on my page.
I'm hoping to send someone a link (www.example.com/page#video1) and have the page popup the embedded video on the website. But if a user visits www.example.com/page it won't autoload the video until they press the button.
Any help? Thanks!
On page load, the hash can be read from window.location.hash
. If theres a inline element with a corresponding ID, that could be used as an ID selector to open the inline target: lity(window.location.hash)
.
Would you be able to please provide an example of the javascript used, that you mention in the comment above?