Use this module to save up some time on creating fuctionality for Modal Windows, or anything that needs to be clicked & toggled.
<button openModal="some-modal-window">Open Modal!</button>
<div class="popup" modalName="some-modal-window">
<p>Content...</p>
<button closeModal="some-modal-window">Close!</button>
</div>
<script src="reusable-modal-window/index.js"></script>
new Modal('your-classname-for-visibility-of-modal-window'); // e.g. popup--visible. js-is-visible is set by default