An alternative to popups.
Download the script here and include it on your webpage:
<script src="proxy.php?url=https%3A%2F%2Fgithub.com.%2Fpath%2Fto%2Funpopup.js"></script>
Do not include the script directly from GitHub (http://raw.github.com/...). The file is being served as text/plain and as such being blocked in Internet Explorer on Windows 7 for instance (because of the wrong MIME type). Bottom line: GitHub is not a CDN.
- Add the class
unpopupto the element that you'd like to convert. - Give that element a unique
id - Enjoy!
Unpopup will create a background overlay to bring the element into focus and display a "close" icon. "Closing" the unpopup element will create a cookie that will prevent the unpopup from being shown again to the same user for the next week.
npm install- Edit configuration or code in
src/ npm run build