Skip to content

Instantly share code, notes, and snippets.

//The following code has been added to the site for custom activities of the test, setting data attributes on the page body for developer events and A/B testing
(function() {
try {
var debug = 1;
/**
* setup Team
*/
// LIBRARY FUNCTIONS
var lib = {
@media screen and (max-width: 767px) {
html body.OdeàlaRose_T41 #main-content article header + div > .u-text-center{
margin-top: 2.4rem;
}
}
/* ========================================
Financial Advisory Website Styles
======================================== */
/* Base Styles */
html body.unbiased-1 {
font-family: Lato, sans-serif;
}
/* Main Container Styles */
html body.unbiased-1 .v-main .v-theme--consumer .overflow-hidden .v-container>div:first-child .grid.gap-4 {
background-color: #f1efe7;
// The following code has been added for the custom trigger of the experiments
(function() {
// Use a global object to persist experiment state
window.activatedExperiments = window.activatedExperiments || new Map();
/**
* Checks if the current user matches the specified user type condition.
* @param {string} userType - The user type to check against. Valid values are "logged-out-user" and "logged-in-user".
* @returns {boolean} True if the current user matches the specified user type, otherwise false.
*/
function debounce(func, timeout = 300) {
(function () {
try {
function addCss(cssString) {
const style = document.createElement("style");
style.type = "text/css";
style.appendChild(document.createTextNode(cssString));
html body .cre-t-69-section {
padding: 4em 0px;
}
html body .cre-t-69-section.cre-t-69-section3 {
background: #eaf2f3;
}
html body .cre-t-69-approach-container {
width: 100%;
max-width: 100%;
<script>
//test 05 v1
(function () {
try {
function addCss(cssString) {
const style = document.createElement("style");
style.type = "text/css";
style.appendChild(document.createTextNode(cssString));
document.head.appendChild(style);
.CRE_EXP_4 .CRE_EXP_4-hero-button-container {
width: 100%;
}
.CRE_EXP_4 .CRE_EXP_4-hero-button-container .btn.btn--primary {
width: 100%;
max-width: 229px;
}
.CRE_EXP_4 .shopify-section.cc-icons-with-text ,
html body .cc-announcement .announcement,
html body .main-nav>li:nth-child(3),
html body .main-nav>li:nth-child(4),
html body .cc-promo-strip,
html body .CRE_EXP_3-callIcon {
display: none;
}
@media only screen and (min-width: 769px) {
html body .header .header__grid {
html body.cre-t-1 .cre-t-hero-container .col-md-5 > div #product hr,
html body.cre-t-1 .cre-t-hero-container .col-md-5 > div #product .form-group > .mb-2,
html body.cre-t-1 .cre-t-hero-container .col-md-5 > div #product .form-group > .button-scroll,
html body.cre-t-1 .cre-t-hero-container .col-md-5 > div #product .form-group > .pp_later_message {
display: none;
}
html body.cre-t-1 .cre-t-hero-container .col-md-5 > div > [itemprop="offers"],
html body.cre-t-1 .cre-t-hero-container .col-md-5 > div > .row .badge,
html body.cre-t-1 .cre-t-hero-container .col-md-5 > div > .row > .col:last-child {
display: none;