I’m A Homebody & This Is How I Took WFH Dressing To The Next Level

0
I’m A Homebody & This Is How I Took WFH Dressing To The Next Level

const toolsOn = false;

/* ///////////////////////////////////////////// */

/* DO NOT DELETE – Knotch Tracking – Add tracking to product Links */

function setupProductLinks() {

const regex = /[’/`~!#*$@%+=.,^&(){}[]|;:””‘?\]/g;

let g = document.querySelectorAll(“.product a”);
let gpt = document.querySelectorAll(“.product .short-title”);
let gpb = document.querySelectorAll(“.product .brand-name”);

var i;

for (i = 0; i < g.length; i++) {

let gd = gpb[i].textContent + “-” + gpt[i].textContent;
let rgd = gd.replace(regex, ”);
let prodVars = rgd.replace(/s/g, ‘_’);

let clck = “javascript:invokeKnotchEventPixel(‘https://t.knotch.it/receive/beacon.gif?account_id=255cc573-7884-4b5a-baf9-8b0255872664&event=R29LP01_ProductClick_” + prodVars + “‘);”;
g[i].setAttribute(“onclick”, clck);

}

}

/* ///////////////////////////////////////////// */

/* Image Annotations */

var elem = new Array();
var mobilebuy = new Array();
var closebutton = new Array();

var init = false;
var previous = 100;
var mobile = false;
var desktop = true;

var grabnav;

// What device is this?
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
var mobile = true;
var desktop = false;
}

function assembleArray(id, pos) {
// Assemble a tip and dot array, add id tags to them
var a = [document.getElementById(‘anno-tip’ + id), document.getElementById(‘anno-dot’ + id + ‘-hint’), pos];
return a;
}

function tipOn(elem) {
// Grab items from the array
var pop = elem[0];
var hint = elem[1];
var pos = elem[2];
// Setup Global Nav for hiding on mobile
if (init == false) {
// Add the id to the global nav and store mobile buy buttons
initAnnotations();
// Done with setup
init = true;
}
if (mobile == true) {
// Mobile & Tablet, click dots, show mobile buy button
showPop(pop,pos,true);
// If just mobiile and not tablet, hide the global nav
if (window.innerWidth < 768) {
hideGlobalNav();
}
} else {
// Check for small or wide desktop
if (window.innerWidth < 768) {
// Desktop Small, click dots, show mobile buy button
showPop(pop,pos,true);
hideGlobalNav();
} else {
// Desktop Wide, rollover dots, no mobile buy button
showPop(pop,pos,false);
showHint(hint);
}
}
}

function tipOff(elem) {
// Grab items from the array
var pop = elem[0];
var hint = elem[1];
var pos = elem[2];
if (mobile == true) {
// Mobile & Tablet, click dots, show mobile buy button
hidePop(pop,pos,true);
// If just mobiile and not tablet, hide the global nav
if (window.innerWidth < 768) {
showGlobalNav();
}
} else {
// Check for small or wide desktop
if (window.innerWidth 540) {
mobileExtraOn(id);
}
}

function closeTip(id) {
// Mobile onClick closebutton
var lmt = assembleArray(id, ‘0’);
tipOff(lmt);
if (window.innerWidth > 540) {
mobileExtraOff(id);
}
}

function showTip(id) {
// Desktop Rollover
if (desktop == true) {
if (window.innerWidth > 720) {
var lmt = assembleArray(id, ‘-15%’);
tipOn(lmt);
}
}
}

function hideTip(id) {
// Desktop Rolloff
if (desktop == true) {
if (window.innerWidth > 720) {
var lmt = assembleArray(id, ‘0’);
tipOff(lmt);
}
}
}

function mobileExtraOn(id) {
// Turn on the mobile buy button
mobilebuy[id].style.display = “block”;
closebutton[id].style.display = “block”;
}

function mobileExtraOff(id) {
// Turn off the mobile buy button
mobilebuy[id].style.display = “none”;
closebutton[id].style.display = “none”;
}

function initAnnotations() {

// Add id tag to the global nav, for hiding on mobile
document.getElementsByClassName(“global-header”)[0].setAttribute(“id”, “tmp-global-header”);
grabnav = document.getElementById(‘tmp-global-header’);

// Get the mobile buttons
mobilebuy = document.getElementsByClassName(‘anno-mobile-buy’);
// Get the mobile close buttoms
closebutton = document.getElementsByClassName(‘anno-tip-close’);

}

function showGlobalNav() {
grabnav.style.display = “block”;
}

function hideGlobalNav() {
grabnav.style.display = “none”;
}

/* ///////////////////////////////////////////// */

// Tag images and add shop buttons

function tagImages() {

let elems = document.querySelectorAll(“.section-image .img-container”);
let e;

for (e = 0; e < elems.length; e++) {

elems[e].setAttribute(“id”, [“image” + e]);

// Temp numbering, turn off above by setting toolsOn to false

if (toolsOn == true) {
let add = document.createElement(‘DIV’);
elems[e].appendChild(add);

add.innerHTML = “

” + e + “

“;
}

// Add Shop Look buttons

let addCTA = document.createElement(‘DIV’);
elems[e].appendChild(addCTA);

if (e == 3) {
addCTA.innerHTML = “

“;
}

}

// Reveal?

let elemsReveal = document.querySelectorAll(“.section-reveal-container”);

let addReveal = document.createElement(‘DIV’);
elemsReveal[0].appendChild(addReveal);

addReveal.innerHTML = “

“;

// Cleans up
elems, e = undefined;

}

// Setup

function setupAnnotations(id) {

/* ///////////////////////////////////////////// */

// Grab the img-containers for adding annotations

let elems = document.querySelectorAll(“.section-image .img-container”);

/* ///////////////////////////////////////////// */

/* Annotation 1 */

let anno1 = document.createElement(‘DIV’);
elems[id].classList.add(“anno-layers”);
elems[id].appendChild(anno1);

anno1.innerHTML = “

“;

/* Cleanup */

elems = undefined;

}

function setupInsetAnimations() {

/* ///////////////////////////////////////////// */

// Grab the img-containers for adding animations (replaces gifs)

let elems = document.querySelectorAll(“.section-image .img-container”);

/* ///////////////////////////////////////////// */

/* Animation 1 */

let anim1 = document.createElement(‘DIV’);
elems[1].classList.add(“tmp-anim”);
elems[1].appendChild(anim1);

anim1.innerHTML = “

“;

/* Animation 2 */

let anim2 = document.createElement(‘DIV’);
elems[5].classList.add(“tmp-anim”);
elems[5].appendChild(anim2);

anim2.innerHTML = “

“;

/* Animation 3 */

let anim3 = document.createElement(‘DIV’);
elems[8].classList.add(“tmp-anim”);
elems[8].appendChild(anim3);

anim3.innerHTML = “

“;

/* Cleanup */

elems = undefined;

}

/* ///////////////////////////////////////////// */

/* Video */

// Video urls from JWplayer
const videoHeroDesktopBigURL = “https://content.jwplatform.com/videos/cNgsAFag-r0yi2e87.mp4”; // NEW: For big monitor, desktop
const videoHeroDesktopURL = “https://content.jwplatform.com/videos/cNgsAFag-gaV8s59T.mp4”;
const videoHeroTabletURL = “https://content.jwplatform.com/videos/cNgsAFag-b8WZHQfV.mp4”;

const videoHeroMobileURL = “https://content.jwplatform.com/videos/m2bXi4SO-YUuIWPFk.mp4”;
const videoHeroSmallMobileURL = “https://content.jwplatform.com/videos/m2bXi4SO-CL7MEiUe.mp4”;

// Poster/thumbnail images while video loads
const vidPosterWide = “https://www.refinery29.com/images/10377329.png”;
const vidPosterTall = “https://www.refinery29.com/images/10377330.png”;

// ALt text
const altTag = “”;

function startVideoHero() {

const videoHeroDesktop = document.getElementById(“tmp-video-hero-desktop”);
const videoHeroMobile = document.getElementById(“tmp-video-hero-mobile”);

if (window.innerWidth > 1799) {
videoHeroDesktop.src = videoHeroDesktopBigURL;
videoHeroDesktop.load();
}
if (window.innerWidth > 1220 && window.innerWidth 767 && window.innerWidth 360 && window.innerWidth < 768) {
videoHeroMobile.src = videoHeroMobileURL;
videoHeroMobile.load();
}
if (window.innerWidth < 361) {
videoHeroMobile.src = videoHeroSmallMobileURL;
videoHeroMobile.load();
}

}

function setupVideoHero() {

// Grab the target
const videoInject = document.getElementsByClassName(“opener”);
// Make a new element
let vidOpener = document.createElement(‘DIV’);
// Give the new element a class
vidOpener.classList.add(“tmp-video-opener”);
// Update the element
videoInject[0].appendChild(vidOpener);
// Assemble the custom html
let allCode = “

“;
// Insert the custom html
vidOpener.innerHTML = allCode;

// Add the video urls etc.
startVideoHero();

// Cleanup
//videoInject = undefined;

}

/* ///////////////////////////////////////////// */

/* Setup */

function setupPage() {

// Video opener
setupVideoHero();
// Annotations, set number based on image tag using the tag images function
setupAnnotations(7);
// Inset animations
setupInsetAnimations();
// Number the images, turn off numbers for publish
tagImages();
// Knotch analytics
setupProductLinks();

}

/* ///////////////////////////////////////////// */

/* Preload */

document.onmouseleave = function() {
window.isReady = false
}

window.addEventListener(“resize”, function() {window.isReady = false});

function ready(fn) {
if (document.attachEvent ? document.readyState === “complete” : document.readyState !== “loading”){
fn();
} else {
document.addEventListener(‘DOMContentLoaded’, fn);
}
}

window.isReady = window.isReady === undefined ? false : window.isReady;

ready(function () {
var imagesLoadedInterval = setInterval(function(){
if(window.imagesLoaded) {
imagesLoaded( ‘#tmp-load’, { background: true }, function() {
window.isReady = false
clearInterval(imagesLoadedInterval)
});
clearInterval(imagesLoadedInterval)
}
}, 100)

if (window.isReady === false) {
window.isReady = true
} else {
return
}

const waitForLoad = setTimeout(function(){
clearTimeout(waitForLoad);
setupPage();
}, 200);

})

function invokeKnotchEventPixel(eventName) {
try {
var img = new Image();
var src = eventName;
src += “&ts=” + Date.now().toString();
img.src = src;
} catch (e) {}
}

Our lives have been in a state of flux — and so has our sense of style. In partnership with Macy’s, we’ve tapped R29 editors to shed light on how their personal styles have evolved in the last year, aligning them with their own specific fashion identity that offers a glimpse into who they are and a reflection of the times we’re living in. Read more about the partnership and the other fashion identities here. 

It doesn’t take a whole lot to envisage a homebody. With all that has transpired in the last year, most of us have had to become one regardless of our natural inclination. But make no mistake, a homebody is not the same as The Homebody: the person who has long preferred the comfort of their couch to uncomfortable social interactions; who gets dressed up to attend an event for exactly 12 minutes before calling it a night (or cancels plans outright — usually at the last minute); who thrives in their personal space, cocooning themselves (usually in soft-to-the-touch knits and blankets) from The Outside.

For Aimee Simeon, senior beauty writer at Refinery29, The Homebody resonates with her to her very core — and it manifests in her beauty and sartorial predilections, through fluffy slippers, roomy sweats, and cozy sweaters. Keep reading to find out why she identifies with this fashion identity, how her personal style has evolved throughout the pandemic, and the most surprising thing she’s discovered about herself. 

Comments are closed.