You've already forked bryanpedini.it_old
Added PHP and javascript control for the contact form, moved javascript from template page to a dedicated script file
This commit is contained in:
@@ -35,19 +35,10 @@
|
||||
<label for="contact-form-message">Your Message:</label>
|
||||
<textarea class="form-control" id="contact-form-message" rows="3"></textarea>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-default btn-outline-secondary">Get in touch with me</button>
|
||||
<button type="submit" class="btn btn-default btn-outline-secondary" id="contact-form-send">Get in touch with me</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="vendor/jquery.ns-autogrow/jquery.ns-autogrow.min.js"></script>
|
||||
<script>
|
||||
$(function () {
|
||||
$("#scrolldown-button").click(function() {
|
||||
$('html,body').animate({
|
||||
scrollTop: $("#contact-form").offset().top},
|
||||
'slow');
|
||||
});
|
||||
$("#contact-form-message").css('overflow', 'hidden').autogrow({vertical: true, horizontal: false, flickering: false});
|
||||
});
|
||||
</script>
|
||||
<script src="js/onePageApp-contactForm.js"></script>
|
Reference in New Issue
Block a user