Last active
August 29, 2015 14:05
-
-
Save yetanothernguyen/3265cc0ffc5865f6fa71 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
<iframe id="donation-iframe" data-src="http://unicef.my/donations/confirmed?iframe=true" width="700px" height="700px" seamless="true" border="0" style="margin: 0; padding: 0; border: none"></iframe> | |
<script type="text/javascript"> | |
window.onload = function() { | |
var params = window.location.toString().split('?')[1], | |
iframe = document.getElementById('donation-iframe'); | |
iframe.src = iframe.getAttribute('data-src') + '&' + params; | |
}; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment