_includes/site-form.html in alembic-jekyll-theme-1.5.3 vs _includes/site-form.html in alembic-jekyll-theme-2.0.2

- old
+ new

@@ -1,7 +1,7 @@ <div class="form form--contact"> - <form id="contact-form" action="" method="POST"> + <form class="contact-form" action="" method="POST"> <label class="label" for="name">Name: <span class="required">*</span></label> <input class="input" id="name" type="text" name="name" value="" placeholder="Your Name" required="required" /> <label class="label" for="_replyto">Email Address: <span class="required">*</span></label> <input class="input" id="_replyto" type="email" name="_replyto" value="" placeholder="email@website.com" required="required" /> @@ -19,9 +19,9 @@ </form> </div> <script> var email = "{{ site.email | split: "" | reverse | join: "" }}"; var unraveledEmail = email.split("").reverse().join(""); - var form = document.getElementById("contact-form"); - form.setAttribute("action", "://formspree.io/" + unraveledEmail); + var form = document.querySelector(".contact-form"); + form.setAttribute("action", "https://formspree.io/" + unraveledEmail); </script> <noscript>Please enable JavaScript to use the form.</noscript>