Skip to content

Instantly share code, notes, and snippets.

@jywarren
Created November 4, 2021 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jywarren/fbfe2ce34e8ba318e90b758019c8991c to your computer and use it in GitHub Desktop.
Save jywarren/fbfe2ce34e8ba318e90b758019c8991c to your computer and use it in GitHub Desktop.
<!-- insert this code into a PL wiki page to create a modal popup -->
<link rel="stylesheet" href="https://idurar.github.io/vanilla-js-modal/src/modal.css" />
<script src="https://idurar.github.io/vanilla-js-modal/src/modal.js"></script>
<div id="idContent" style="display:none">
<h3>Asking for your help</h3>
<p>Are you a teacher in New Orleans?</p>
<div class="container"><div class="row">
<div class="col-6">
<a class="btn btn-md btn-primary" href="#">Yes!</a>
</div>
<div class="col-6">
<a class="btn btn-md btn-default" onClick="modal.close()">No thanks!</a>
</div>
</div></div>
</div>
<script>
(function() {
setTimeout(function(){modal.open('idContent')},500)
})();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment