This file contains 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.Campaign.afterShow', function(event) { | |
// Replace YOUR_DUMMY_EMAIL with the email address you want to autofill the field with. | |
// A validly formatted email address is required here. | |
var emailValue = "YOUR_DUMMY_EMAIL"; | |
document.getElementById("{{ns}}-field-email").value = emailValue; | |
}); |
This file contains 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
function mySep() { | |
var url = window.location.href; | |
if (url.indexOf('?') != -1) { | |
var sep = '&'; | |
} else var sep = '?'; | |
console.log(sep); | |
return sep; | |
} |
This file contains 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}} { | |
left: 0 !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 slideInFromLeft; | |
} | |
@keyframes slideInFromLeft { |
This file contains 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 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 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 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 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; | |
} |