(function() { var domLoaded = false; var initForms = []; /** * This function is used directly by content editors. * Do not move it or change its signature. * * Also, this file has to be included in the head for the function to be available. */ window.LSWMktoForms2Load = function(id, callback, options) { if (domLoaded) { marketoFormInit(id, callback, options); return; } initForms.push([id, callback, options]); }; // We need to wait for marketoFormInit to be defined within lsw_marketo.js // jQuery is not available yet. document.addEventListener('DOMContentLoaded', function() { domLoaded = true; initForms.forEach(function(params) { marketoFormInit.apply(window, params); }); }); //SO-4493 window.showMarketoForm = function(formid) { jQuery(".body").append('
'); MktoForms2.loadForm("//app-lon04.marketo.com", "326-LAN-349", formid, function (form){ MktoForms2.lightbox(form).show(); }); } })();