Advertisement
vladcrown111

Untitled

Jun 16th, 2017
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. <a class="coinbase-widget"
  2. id="coinbase_widget"
  3. data-address=""
  4. data-amount="13.00"
  5. data-code="09759171-25a4-5c75-b748-abdee8086c30"
  6. data-currency="USD"
  7. data-crypto_currency="BTC"
  8. href="">Buy with Coinbase</a>
  9.  
  10. <script type='text/javascript' id='coinbase_widget_loader' class='coinbase-widget-async-loader'>
  11. document.currentScript.src ='';
  12. (function() {
  13. function asyncLoad() {
  14. var s = document.createElement('script');
  15. s.type = 'text/javascript';
  16. s.async = true;
  17. var theUrl = 'https://buy.coinbase.com/static/widget.js';
  18. s.src = theUrl+ (theUrl.indexOf("?") >= 0 ? '&' : '?') + 'ref=' + encodeURIComponent(window.location.href);
  19. var embedder = document.getElementById('coinbase_widget_loader');
  20. embedder.parentNode.insertBefore(s, embedder);
  21. }
  22. if (window.attachEvent) {
  23. window.attachEvent('onload', asyncLoad);
  24. } else {
  25. window.addEventListener('load', asyncLoad, false);
  26. }
  27. })();
  28. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement