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=R29LP03_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”;
}
/* ///////////////////////////////////////////// */
// Tools – TURN OFF BEFORE PUBLISH
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 = “
“;
}
// Add Shop Look buttons
let addCTA = document.createElement(‘DIV’);
elems[e].appendChild(addCTA);
if (e == 4) {
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[10].classList.add(“tmp-anim”);
elems[10].appendChild(anim3);
anim3.innerHTML = “
“;
/* Cleanup */
elems = undefined;
}
/* ///////////////////////////////////////////// */
/* Video */
// Video urls from JWplayer
const videoHeroDesktopBigURL = “https://content.jwplatform.com/videos/92YkjXVb-r0yi2e87.mp4”; // NEW: For big monitor, desktop
const videoHeroDesktopURL = “https://content.jwplatform.com/videos/92YkjXVb-gaV8s59T.mp4”;
const videoHeroTabletURL = “https://content.jwplatform.com/videos/92YkjXVb-b8WZHQfV.mp4”;
const videoHeroMobileURL = “https://content.jwplatform.com/videos/QML0wgaN-YUuIWPFk.mp4”;
const videoHeroSmallMobileURL = “https://content.jwplatform.com/videos/QML0wgaN-CL7MEiUe.mp4”;
// Poster/thumbnail images while video loads
const vidPosterWide = “https://www.refinery29.com/images/10387291.jpg”;
const vidPosterTall = “https://www.refinery29.com/images/10387275.jpg”;
// 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 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.
If pressure makes diamonds, what can a stress test like, say, a global pandemic do for our style? Some might emerge having indulged in the pleasures of fully fleece-based ‘fits; others might resurface having fine-tuned their personal aesthetics until they more faithfully represent their inner workings than ever before. For the Personal Style Stalwart, the latter is coming true through lots of sartorial reflection, making some smart buys, and, yes, deep-quarantine solo fashion shows (what else was there to do anyway?). Together, these methods can result in a harder, better, and stronger way of dressing — something fashion editor Chelsea Peng can personally attest to. Ahead, discover how her look-at-me approach to style shifted (or didn’t) when her audience was drastically reduced, and how, with every foray into shearling and sweats, she’s styling her way to greater fashion freedom.
My pre-pandemic style could be described as… “A very eclectic hodgepodge of references and influences that, all together, make up…me. There are always about 53 tabs open in my brain. Nobody would ever describe my personal style as minimal, that’s for sure. I like volume, prints on prints on prints, suiting and co-ords, and weird/happy color combinations that make toddlers stop and stare on the street.”