Skip to content

Instantly share code, notes, and snippets.

@natejones
Last active February 11, 2024 06:28
Show Gist options
  • Save natejones/60aebbb033d59acd1fdb to your computer and use it in GitHub Desktop.
Save natejones/60aebbb033d59acd1fdb to your computer and use it in GitHub Desktop.
Registration Success message
<!-- formstack submit redirect to same page with #success on the end -->
<!-- This goes at the top of the content -->
<div class="alert-box success radius" data-alert="" id="success" style="display: none;">Success! Thank you for registering for Open House! <a class="close" href="#">&#215;</a></div>
<!-- this goes anywhere -->
<!--#protect
<script type="text/javascript">
if(window.location.hash) {
var thehash = window.location.hash;
if (thehash == "#success"){
document.getElementById("success").style.display = "block";
}
}
else {}
</script>
#protect-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment