stop the spaaaaaaam

This commit is contained in:
Brittany Chiang
2017-01-20 11:45:08 -05:00
parent 4ff52ab2f8
commit c87a40818e
2 changed files with 8 additions and 4 deletions

View File

@@ -11,7 +11,8 @@
<p class="contact-description">Have a sweet project in mind or just want to say hi? Feel free to send me a message!</p>
</div>
<div class="contact-wrapper">
<form class="form-wrapper" autocomplete="off" method="post" action="https://formspree.io/brittany.chiang@gmail.com">
<form id="contactform" class="form-wrapper" method="POST" autocomplete="off">
<input type="text" name="_gotcha" style="display:none" >
<div class="input-wrapper">
<label for="name" class="input-label">Name</label>
<input type="text" name="name" class="contact-input" id="name" required>
@@ -28,7 +29,6 @@
<label for="message" class="input-label" id="message-label">Message</label>
<textarea name="message" class="contact-input autoExpand" id="message" required></textarea>
</div>
<input type="text" name="_gotcha" style="display:none" />
<button type="submit" name="submit" class="message-btn">
<span>Send Message</span>
</button>

View File

@@ -6,6 +6,10 @@
{% else %}
<script src="https://cdnjs.cloudflare.com/ajax/libs/skrollr/0.6.30/skrollr.min.js"></script>
<script src="{{site.baseurl}}/js/main.js"></script>
<script>
const contactform = document.getElementById('contactform');
contactform.setAttribute('action', 'https:' + '//formspree.io/' + 'brittany.chiang' + '@' + 'gmail' + '.' + 'com');
</script>
{% endif %}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){