/** * Responsive Form Iframe JS Template * * @package Templates * @author Adrian Tobey * @copyright Copyright (c) 2018, Groundhogg Inc. * @license https://opensource.org/licenses/GPL-3.0 GNU Public License v3 * @since File available since Release 1.0.20 */ (function () { if (window.ghFormClient) { return } window.ghFormClient = { forms: [], addForm (form) { let script if (document.currentScript) { script = document.currentScript } this.forms.push({ ...form, script }) }, loadForms () { this.forms.forEach((form, i) => { const { src = '', script, name } = form let id = `gh-form-${i}` let iframeHTML = `