Created
March 8, 2019 17:29
-
-
Save totomz/06f0033b660c8b616e1ad3385a89ee09 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
hbspt.forms.create({ | |
portalId: "0000", | |
formId: "aaa-bbb-ccc", | |
onFormReady: function($form){ | |
var input = $form.find('input[type=email]'); | |
input.addClass('form-control'); | |
input.css('width', '100%'); | |
// Get rid of labels we don't want them | |
// Actually, remove90 break the form. Just hide the labels | |
$form.find('label').addClass('hide-always'); | |
// Style the submit button | |
$form.find('.actions').addClass('subscribe-submit form-group clearfix mb-0'); | |
var submit = $form.find('input[type=submit]'); | |
submit.addClass('btn btn-primary btn-square float-left'); | |
submit.css('margin-top', '0'); | |
submit.after('<span>Don’t worry! <br>Your e-mail won’t be published.</span>') | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment