Skip to content

Instantly share code, notes, and snippets.

@ivarconr
Last active October 8, 2018 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivarconr/984b18ef4964dd42e54e9b527f571414 to your computer and use it in GitHub Desktop.
Save ivarconr/984b18ef4964dd42e54e9b527f571414 to your computer and use it in GitHub Desktop.
show-interest
const xhrBase = document.getElementById("showInterest").getAttribute('data-xhr-path');
const adId = document.getElementById("showInterest").getAttribute('data-ad-id');
fetch(`${xhrBase}save?adId=${adId}`).then(() => console.log('fetch'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment