fixed, reworked and simplyfied and added example content in markdown
This commit is contained in:
parent
bdf28fd018
commit
ff46ccae8b
15 changed files with 335 additions and 286 deletions
40
exampleSite/content/formspree.md
Normal file
40
exampleSite/content/formspree.md
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
+++
|
||||
title = "Formspree"
|
||||
id = "formspree"
|
||||
+++
|
||||
|
||||
<form id="contactform" method="post" action="https://formspree.io/rac2030@gmail.com">
|
||||
<div class="field half first">
|
||||
<input type="text" name="name" id="name" placeholder="Name"/>
|
||||
</div>
|
||||
<div class="field half">
|
||||
<input type="email" id="email" name="email" placeholder="Email">
|
||||
</div>
|
||||
<div class="field">
|
||||
<textarea name="message" id="message" rows="4" placeholder="Message"></textarea>
|
||||
</div>
|
||||
<ul class="actions">
|
||||
<li><input type="submit" value="Send message" class="special" /></li>
|
||||
<li><input type="reset" value="Reset" /></li>
|
||||
</ul>
|
||||
<input type="hidden" name="_next" value="?sent#formspree" />
|
||||
<input type="hidden" name="_subject" value="Subject for your mail like new message" />
|
||||
<input type="text" name="_gotcha" style="display:none" />
|
||||
</form>
|
||||
<span id="contactformsent">Thank you for your message</span>
|
||||
|
||||
<script>
|
||||
$(document).ready(function($) {
|
||||
$(function(){
|
||||
if (window.location.search == "?sent") {
|
||||
$('#contactform').hide();
|
||||
$('#contactformsent').show();
|
||||
} else {
|
||||
$('#contactformsent').hide();
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
{{< socialLinks >}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue