lity icon indicating copy to clipboard operation
lity copied to clipboard

Direct link to popup video?

Open timothyshambra opened this issue 5 years ago • 2 comments

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!

timothyshambra avatar Jul 31 '18 19:07 timothyshambra

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).

jsor avatar Sep 06 '18 11:09 jsor

Would you be able to please provide an example of the javascript used, that you mention in the comment above?

Ella316 avatar Dec 09 '20 05:12 Ella316