This file contains hidden or 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
| var formFooter = document.getElementById("form-footer"); | |
| formFooter.addEventListener("submit", function(evt) { | |
| evt.preventDefault(); | |
| formFooter.classList.add("form-submit"); | |
| var name = document.getElementById("name"); | |
| var email = document.getElementById("email"); | |
| var telephone = document.getElementById("telephone"); | |
| var cellphone = document.getElementById("cellphone"); |
This file contains hidden or 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
| /** | |
| * AJAX Form | |
| * http://stackoverflow.com/a/13038218/1414881 | |
| */ | |
| var form = document.getElementById('contact_form'); | |
| // Append the form status | |
| var formStatus = document.createElement('div'); | |
| formStatus.setAttribute('class', 'form-status alert'); |
This file contains hidden or 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
| /* | |
| |----------------------------------------------------------------------- | |
| | With HTML | |
| |----------------------------------------------------------------------- | |
| */ | |
| <input | |
| type="number" | |
| id="userProvidedHeight" | |
| min="211" |
This file contains hidden or 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
| /* | |
| |----------------------------------------------------------------------- | |
| | With HTML | |
| |----------------------------------------------------------------------- | |
| */ | |
| <input | |
| type="number" | |
| id="userProvidedHeight" | |
| min="211" |
This file contains hidden or 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
| /* | |
| PDF Creator - Email all responses | |
| ================================= | |
| When you click "Create PDF > Create a PDF for each row" this script | |
| constructs a PDF for each row in the attached GSheet. The value in the | |
| "File Name" column is used to name the file and - if there is a | |
| value - it is emailed to the recipient in the "Email" column. |
This file contains hidden or 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
| /* | |
| Copyright 2011 Martin Hawksey | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software |