Merge pull request #49 from algolia/fix-form-submission
chore(form): fixed the form submission JS code
This commit is contained in:
commit
6aec57ccd1
3 changed files with 5 additions and 5 deletions
|
|
@ -77,7 +77,7 @@ html, body {
|
|||
|
||||
/* JOIN FORM
|
||||
// ------------------------- */
|
||||
#join-form, #join-form-2 {
|
||||
.join-form {
|
||||
background: #242E3A;
|
||||
display: block;
|
||||
width: 400px;
|
||||
|
|
@ -120,7 +120,7 @@ html, body {
|
|||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
#join-form {
|
||||
.jumbotron .join-form {
|
||||
position: absolute;
|
||||
top: 200px;
|
||||
right: 120px;
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ layout: default
|
|||
.text-center
|
||||
%p We’ve created the fastest, easiest way to search within documentation.
|
||||
%p
And best of all? It’s FREE.
|
||||
%form#join-form{action: '#', method: 'POST'}
|
||||
%form.join-form{action: '#', method: 'POST'}
|
||||
%h3 Get Started. It’s FREE!
|
||||
.spacer20
|
||||
.input-group
|
||||
|
|
@ -126,7 +126,7 @@ layout: default
|
|||
%p We’ll get back to you within a few hours with everything you need to integrate your new search into your website.
|
||||
%p Oh, and did we mention it's FREE? No commitment. No subscription. Everything is on us!
|
||||
.spacer30
|
||||
%form#join-form-2{action: '#', method: 'POST'}
|
||||
%form.join-form{action: '#', method: 'POST'}
|
||||
.input-group
|
||||
%span.input-group-addon
|
||||
%i.fa.fa-fw.fa-envelope-o
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
(function($) {
|
||||
$('#join-form').on('submit', function() {
|
||||
$('.join-form').on('submit', function() {
|
||||
var $button = $(this).find('button');
|
||||
var $email = $(this).find('input[name="email"]');
|
||||
var $url = $(this).find('input[name="url"]');
|
||||
|
|
|
|||
Loading…
Reference in a new issue