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}} { | |
margin-right: -20px !important; | |
height: 540px !important; | |
top: calc(540px / 2) !important; | |
bottom: calc(540px / 2) !important; | |
margin-top: auto !important; | |
margin-bottom: auto !important; | |
animation: 1s ease-out 0s 1 slideInFromRight; | |
} | |
@keyframes slideInFromRight { |
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}} { | |
right: auto !important; | |
margin-left: 20px !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
html div#om-{{id}} { | |
width: 350px !important; | |
left: calc(350px / 2) !important; | |
right: calc(350px / 2) !important; | |
margin-left: auto !important; | |
margin-right: auto !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
html div#om-{{id}} { | |
top: 0px !important; | |
bottom: unset !important; | |
width: 350px !important; | |
left: calc(350px / 2) !important; | |
right: calc(350px / 2) !important; | |
margin-left: auto !important; | |
margin-right: auto !important; | |
transition: top 0.3s ease 0s !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
html div#om-{{id}} { | |
top: 0px !important; | |
bottom: unset !important; | |
right: auto !important; | |
margin-left: 20px !important; | |
transition: top 0.3s ease 0s !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
html div#om-{{id}} { | |
top: 0px !important; | |
bottom: unset !important; | |
transition: top 0.3s ease 0s !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
// Related, this approach will change the URL to a non-MonsterLink instead of removing the menu item | |
document.addEventListener("DOMContentLoaded", function() { | |
if (document.cookie.split(';').some((item) => item.trim().startsWith('omSeen-swzorfrz48hzwhrtuzal'))) { | |
// define the monsterlink menu item | |
var monsterlink = document.querySelector("#menu-item-9624 .manual-optin-trigger"); | |
// change the URL and remove data-optin-slug attribute | |
monsterlink.setAttribute('href', 'https://home.cognia.org'); | |
monsterlink.removeAttribute('data-optin-slug'); | |
} |
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
const queryString = window.location.search; // capture all query args | |
const urlParams = new URLSearchParams(queryString); // parse parameters | |
const paramName = 'utm_medium'; // create variable to re-use | |
const medium = urlParams.get(paramName); // call our specific parameter | |
document.addEventListener('om.Dtr.init', function(event) { | |
// Registers {{query_arg}} smart tag that outputs a specific query arg from the current page. | |
event.detail.Dtr.setCustomVariable('query_arg', '?' + paramName + '=' + medium); | |
}); |
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
const queryString = window.location.search; // capture all query args | |
document.addEventListener('om.Dtr.init', function(event) { | |
// use this event instead if added directly through the OM campaign builder | |
// document.addEventListener('om.Campaign.load', function(event) { | |
// Registers {{query_args}} smart tag that outputs all query args from the current page. | |
event.detail.Dtr.setCustomVariable('query_args', queryString); | |
}); |