Last active
October 15, 2017 10:48
-
-
Save SSmale/e4a2e08966666720c7a5c23b32ee4903 to your computer and use it in GitHub Desktop.
formspree form for portfolio website
This file contains hidden or 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
| <form action="https://formspree.io/[email protected]" method="POST"> | |
| <input type="text" name="name" placeholder="Your name"> | |
| <input type="email" name="_replyto" placeholder="Your email"> | |
| <textarea name="comment" cols="30" rows="10" placeholder="Your message"></textarea> | |
| <input type="hidden" name="_next" value="/index.html?t=true" /> | |
| <input type="submit" value="Send"> | |
| </form> | |
| var split = location.search.replace('?', '').split('=') | |
| if (split[1]) { | |
| console.log("thanks"); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment