Skip to content
Snippets Groups Projects
Commit ddb57229 authored by Joe Scheuermann's avatar Joe Scheuermann
Browse files

Merge branch 'fix-demo-confirm' into 'master'

Fix confirmation on eep demo page

See merge request gitlab-com/www-gitlab-com!9113
parents 65209312 328d4946
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -27,25 +27,11 @@ extra_css:
%form#mktoForm_1419
:javascript
MktoForms2.loadForm("//app-ab13.marketo.com", "194-VVC-221", 1419, function(form) {
form.onSuccess(function(values, followUpUrl) {
form.getFormElem().hide();
document.getElementById('confirmform').style.visibility = 'visible';
dataLayer.push({event: 'mktoLead',mktoFormId: form.getId()});
return false;
});
function getgacid() {
try {
var tracker = ga.getAll()[0];
return tracker.get('clientId');
} catch (e) {
return 'n/a';
}
}
form.vals({
'gacid': getgacid()
});
form.onSuccess(function() {
form.getFormElem().hide();
$('.confirmform').attr('style', 'visibility: visible');
return false;
});
});
.confirmform{style: "visibility:hidden;"}
.centered-form-info
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment