witty-finland-62471
11/30/2023, 1:09 PMvar result1 = gb.run({
key: "shoptimizerlp-h1-color",
variations: ["control", "yellow-text"],
weights: [0.5, 0.5],
coverage: 1.0,
});
document.addEventListener("DOMContentLoaded", function() {
var introSection = document.querySelector(".cg-theme-intro.opening");
var introSection2 = document.querySelector(".cg-theme-intro");
console.log( introSection );
console.log( introSection2 );
if (result1.value === "yellow-text") {
if (introSection) {
console.log("adding yellow");
introSection.classList.add("yellow");
}
}
rhythmic-agent-34208
11/30/2023, 1:09 PMswift-helmet-3648
11/30/2023, 2:50 PMevalFeature
? We also supply a method to evaluate conditions called evalCondition
if you want to figure out if a user is targeted given their attributeswitty-finland-62471
11/30/2023, 11:00 PMrhythmic-agent-34208
12/04/2023, 4:23 PM