...
You can add it whenever you want (but in the best way you can add it in the tag <head> of the page, where you want to add the pop-up).
Expand | ||
---|---|---|
| ||
<script> document.addEventListener('DOMContentLoaded', function(){ document.getElementsByClassName("w-entry-point")[0].addEventListener( 'click', showPopup, false ); });
function showPopup(evt) { if(evt) { Swal.fire({ icon: 'warning', title: 'Please note, patterns are based on a 108" high wall.', customClass: { container: 'my-swal' } }) } } </script> |
...