modal-video icon indicating copy to clipboard operation
modal-video copied to clipboard

Show popup on pageload

Open abhilashrajrs opened this issue 6 years ago • 3 comments

Hi

Is there a way to show the popup on pageload.

abhilashrajrs avatar Jan 20 '18 14:01 abhilashrajrs

hi its very easy using a simple function in javascript

Open Video

` window.onload = function() {

// Trigger on load $("#clickButton").click();

function display(msg) { var p = document.createElement('p'); p.innerHTML = msg; document.body.appendChild(p); } }; window.addEventListener('DOMContentLoaded',function(){ new ModalVideo(".js-video-btn"); }); `

dysat avatar Mar 14 '18 21:03 dysat

@dysat is there away to destroy ModalVideo ?

ayafaheem avatar Mar 08 '19 20:03 ayafaheem

Hi @ayafaheem modal-video doesn't have such method to destroy modal-video When do you want to destroy ModalVideo?

steelydylan avatar Mar 11 '19 05:03 steelydylan