Skip to content

Instantly share code, notes, and snippets.

@8lane
Created July 18, 2017 12:00
Show Gist options
  • Save 8lane/c62cee18a4b26e80e8ec5c886f575745 to your computer and use it in GitHub Desktop.
Save 8lane/c62cee18a4b26e80e8ec5c886f575745 to your computer and use it in GitHub Desktop.
<?php include $_SERVER['DOCUMENT_ROOT'] . "/markup/structure/html_header.php"; ?>
<body class="join-now">
<main class="component form-confirmation">
<h4>Confirmation</h4>
<div class="conf-mess tick">
<p>Successfully deposited</p>
</div>
<div class="conf-button">
<button id="close" type="button" class="blue">Close</button>
</div>
</main>
<script>
(function() {
var dispatchMessage = function(evt, message) {
if (evt) {
evt.preventDefault();
}
return window.parent.window.postMessage({ 'func': message }, '*');
}
/* Update balance on load */
dispatchMessage(evt, 'depositUpdateBalance');
/* Event listener for close button */
document.getElementById('close').addEventListener('click', function(evt) {
dispatchMessage(evt, 'depositStepClose');
});
})();
</script>
<?php include $_SERVER['DOCUMENT_ROOT'] . "/markup/structure/html_footer.php"; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment