script.js 504 B

12345678910111213141516
  1. /* The PayPal redirect URL is passed in the hash.
  2. * If JavaScript is enabled, include this in the suggested pagamigo
  3. * invocation. If JavaScript is _not_ enabled, this code will not be
  4. * run; the user will instead be prompted at the console to enter the
  5. * URL. This provides graceful fallback.
  6. */
  7. window.onload = function() {
  8. const pre = document.getElementsByTagName("pre")[2];
  9. /* Remove the leading # */
  10. const to = window.location.hash.slice(1);
  11. pre.innerText += " --url '" + to + "'";
  12. };