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
| <div class="container"> | |
| <script src="//app-abc.marketo.com/js/forms2/js/forms2.min.js"></script> | |
| <form id="mktoForm_27"></form> | |
| <script>MktoForms2.loadForm("//app-abc.marketo.com", "123-ABC-456", 1);</script> | |
| <div id="confirmation" aria-hidden="true" style="display:none;"> | |
| <p>This is a sample thank you message. Thanks for viewing.</p> | |
| </div> | |
| </div> | |
| <script> | |
| MktoForms2.whenReady(function (form){ |
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
| MktoForms2.whenReady(function(form) { | |
| form.onSuccess(function(vals, page) { | |
| ga('send', 'event', { | |
| eventCategory: 'Marketo Form', | |
| eventAction: 'Form Submission', | |
| eventLabel: formName, | |
| hitCallback: function() { | |
| document.location.href = page; | |
| }; | |
| }); |
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
| .mktoForm, .mktoForm .mktoFieldWrap, .mktoForm .mktoHtmlText, .mktoForm input, .mktoLogicalField .mktoCheckboxList, .mktoRangeField, .mktoRangeValue {width:100% !important;} | |
| @media only screen and (min-width:480px) { | |
| .mktoFormCol:first-child:nth-last-child(2), .mktoFormCol:first-child:nth-last-child(2) ~ .mktoFormCol {width: 100% !important;} | |
| .mktoFormCol:first-child:nth-last-child(3), .mktoFormCol:first-child:nth-last-child(3) ~ .mktoFormCol {width: 50% !important;} | |
| .mktoFormCol:first-child:nth-last-child(4), .mktoFormCol:first-child:nth-last-child(4) ~ .mktoFormCol {width: 33.3333% !important;} | |
| .mktoFormCol:first-child:nth-last-child(3) ~ .mktoFormCol {padding-left: 0.3em !important;} | |
| } | |
| @media only screen and (max-width:480px) {.mktoFormCol {width:100% !important;}} | |
| .mktoAsterix{display:none !important;} | |
| .mktoForm .mktoGutter {display:none !important;} |
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
| //First, let's get the URI and have it split out all parameters | |
| var getURLParams = function() { | |
| var temp = {}; | |
| document.location.search.replace(/\??(?:([^=]+)=([^&]*)&?)/g, function() { | |
| var decode = function(s) { | |
| return decodeURIComponent(s.split("+").join(" ")); | |
| }; | |
| temp[decode(arguments[1])] = decode(arguments[2]); | |
| }); |