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
<script> | |
/** | |
* Limit OptinMonster Campaigns | |
* @author Erica Franz | |
* @url https://fatpony.me | |
* @desc Show only one OptinMonster campaign per page visit regardless of campaign type. | |
*/ | |
// Run this script when the first Campaign is shown | |
document.addEventListener('om.Campaign.afterShow', function(event) { |
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 id="ss-form-target-{{id}}"></div> | |
<script type="text/javascript"> | |
(function(){ | |
window.ss_form = {'account': 'XXXXXXXXXXXXXXX', 'formID': 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'}; | |
ss_form.width = '100%'; | |
ss_form.height = '1000'; | |
ss_form.domain = 'app-XXXXXXXXX.marketingautomation.services'; | |
ss_form.target_id = 'ss-form-target-{{id}}'; // Optional parameter: forms will be placed inside the element with the specified id | |
// ss_form.hidden = {'field_id': 'value'}; // Modify this for sending hidden variables, or overriding values | |
// ss_form.polling = true; // Optional parameter: set to true ONLY if your page loads dynamically and the id needs to be polled continually. |
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
<script src="//app-aba.marketo.com/js/forms2/js/forms2.min.js"></script> | |
<form id="mktoForm_#####"></form> | |
<script> | |
MktoForms2.loadForm("//app-aba.marketo.com", "###-LLL-###", #####, function(form) { | |
var formEl = form.getFormElem()[0]; | |
var submitEl = formEl.querySelector('button[type="submit"]'); | |
form.onSuccess(function(values, followUpUrl) { | |
// Get the form's jQuery element and hide it | |
form.getFormElem().hide(); | |
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
html div#om-{{id}} * { | |
/* Anything inside here will be applied to all elements within your OptinMonster campaign */ | |
} |
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
// Using Vue Router. | |
import Vue from 'vue'; | |
import Router from 'vue-router'; | |
Vue.use(Router); | |
const router = new Router ({ | |
// Your vue router settings. | |
}); | |
router.beforeEach((to, from, next) =&amp;amp;gt; { | |
if (window.om5678_1234) { | |
window.om5678_1234.reset(); |
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
document.addEventListener('om.Main.init', function (evt) { | |
var Strings = evt.detail._utils.strings; | |
// Replace ¡Copiada! below with the text you wish to use. | |
Strings['Copied!'] = '¡Copiada!'; | |
}); |
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
<a href="https://app.monstercampaigns.com/c/aclizd4ba0gfjv9u1hhu/" target="_blank">Subscribe Now!</a> |
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
<a href="https://app.monstercampaigns.com/c/aclizd4ba0gfjv9u1hhu/" target="_blank"><img src="http://www.example.com/image.jpg" alt="Call to action text in case your image doesn't load." height="" width="" /></a> |
NewerOlder