Line | |
---|
1 | +++ |
---|
2 | title = "Formspree" |
---|
3 | weight = 60 |
---|
4 | menuname = "Contact 2" |
---|
5 | draft = true |
---|
6 | +++ |
---|
7 | |
---|
8 | <form id="contactform" method="post" action="https://formspree.io/insert.your@mail.adress"> |
---|
9 | <div class="field half first"> |
---|
10 | <input type="text" name="name" id="name" placeholder="Name"/> |
---|
11 | </div> |
---|
12 | <div class="field half"> |
---|
13 | <input type="email" id="email" name="email" placeholder="Email"> |
---|
14 | </div> |
---|
15 | <div class="field"> |
---|
16 | <textarea name="message" id="message" rows="4" placeholder="Message"></textarea> |
---|
17 | </div> |
---|
18 | <ul class="actions"> |
---|
19 | <li><input type="submit" value="Send message" class="special" /></li> |
---|
20 | <li><input type="reset" value="Reset" /></li> |
---|
21 | </ul> |
---|
22 | <input type="hidden" name="_next" value="?sent#formspree" /> |
---|
23 | <input type="hidden" name="_subject" value="Subject for your mail like new message" /> |
---|
24 | <input type="text" name="_gotcha" style="display:none" /> |
---|
25 | </form> |
---|
26 | <span id="contactformsent">Thank you for your message</span> |
---|
27 | |
---|
28 | <script> |
---|
29 | $(document).ready(function($) { |
---|
30 | $(function(){ |
---|
31 | if (window.location.search == "?sent") { |
---|
32 | $('#contactform').hide(); |
---|
33 | $('#contactformsent').show(); |
---|
34 | } else { |
---|
35 | $('#contactformsent').hide(); |
---|
36 | } |
---|
37 | }); |
---|
38 | }); |
---|
39 | </script> |
---|
40 | |
---|
41 | |
---|
42 | {{< socialLinks >}} |
---|
Note: See
TracBrowser for help on using the repository browser.