Created
November 4, 2021 17:54
-
-
Save jywarren/fbfe2ce34e8ba318e90b758019c8991c to your computer and use it in GitHub Desktop.
Demo currently at: https://publiclab.org/wiki/sandbox-4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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