Skip to content

Instantly share code, notes, and snippets.

View phylliswong's full-sized avatar
💭
coding 👩🏻‍💻

Phyllis Wong phylliswong

💭
coding 👩🏻‍💻
  • San Francisco Bay Area
View GitHub Profile
@phylliswong
phylliswong / eventEmit.js
Last active February 2, 2022 14:42
FragranceX Event Emit
function sendEvent(tag, url){
try {
window.evolv.client.emit(tag);
} catch (e) {
console.log(e);
}
}
function pageMatch(page) {
@phylliswong
phylliswong / auth.js
Last active February 24, 2022 05:25
MP-demo-audience
module.exports = function () {
var section = $('.warranty-cta');
if (section) {
evolv.context.update({ service_section: "true" });
};
};
/*
Running Variants locally without the editor
Authored by Richard Cowin
Disable content security policy with Resource Override
This will allow for local host
window.applyVariants(‘http://localhost:8000/t-and-c/’, [‘v1’]);
*/
window.applyVariants = function applyVariants(folder, variants, poll) {