Created
July 18, 2017 12:00
-
-
Save 8lane/c62cee18a4b26e80e8ec5c886f575745 to your computer and use it in GitHub Desktop.
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
<?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