The Most Popular Dress Codes Explained — What They Mean

Are you feel­ing con­fused by all the dif­fer­ent dress codes out there? We’ve got you covered…literally. From casu­al to black tie, we’ve bro­ken down the most com­mon dress codes for women and what each one means and found options for you to shop. So, whether you’re head­ing to a job inter­view or a fan­cy wed­ding, you’ll know exact­ly what to wear.


What is casu­al dress code?

This is prob­a­bly the eas­i­est dress code to fig­ure out. It’s all about com­fort, so you can wear jeans, t‑shirts, and sneak­ers — just sure your clothes are clean and pre­sentable. For casu­al wear, you can find great options at stores like Madewell, J., and Anthro­polo­gie. stores offer com­fort­able and styl­ish cloth­ing options, such as soft t‑shirts, cozy sweaters, and relaxed jeans.

Shop Casu­al Dress Code Looks

: svg%3e

Anthropologie Pilcro Square-Neck Textured Babydoll Dress ($140)

Ging­ham goes with any casu­al soiree, and this dress is no excep­tion. The tiered skirt and square neck add visu­al inter­est over­pow­er­ing the pat­tern, and the over­all flowi­ness to the dress will keep you cool all sum­mer long.

: svg%3e

Madewell Modular Sleeveless Romper in 100% Linen ($83, was $118)

This romper is casu­al, chic, and com­plete­ly ver­sa­tile. You can wear each piece togeth­er as a full, set, or you can sep­a­rate them to get mul­ti­ple mix-and-match out­fits with the top and bot­toms!

: svg%3e

J.Crew Relaxed-fit short-sleeve Baird McNutt Irish linen shirtdress ($104, was $148)

A shirt dress is per­fect for any back­yard bar­be­cue, loung­ing lake-side, or any oth­er casu­al gath­er­ing. Plus, this comes is so many dif­fer­ent col­ors, giv­ing you a ready-made out­fit that does­n’t look like you’re wear­ing the same thing over and over again.

What is smart casu­al dress code?

Wom­en’s attire for a smart casu­al dress code strikes the del­i­cate bal­ance between pol­ished wear and every­day, more relaxed casu­al clothes. But­ton-down shirts in neu­tral tones, smart midi skirts or tai­lored wide leg pants can all work great at this type of event. If your blouse fea­tures embell­ish­ment or pat­terns, pair it with more casu­al bot­toms such as dark den­im jeans or pleat­ed midi skirts as these will an over­dressed appear­ance. Wide-legged culottes make a great choice as well! A well-tai­lored blaz­er can add instant sophis­ti­ca­tion and is the ide­al piece for lay­er­ing over dress­es if your part­ner or friends wear some­thing less for­mal. Block heels, flats or loafers tend to be appro­pri­ate shoes for this kind of event. Sneak­ers in clas­sic col­ors such as black or white may also work. With par­ty sea­son in full swing, it’s a good idea to keep some smart casu­al out­fit ideas handy for unex­pect­ed invi­ta­tions.

: svg%3e

Petal and Pup Womens Eddie Jumpsuit ($69)

A jump­suit is a great way to look like you put way more effort into your out­fit, while remain­ing total­ly relaxed. The flared pants and cutouts are just lax enough to keep this out­fit from being too but­toned up for a smart casu­al look.

: svg%3e

Anthropologie Maeve Scalloped Buttondown Dress ($160)

The scal­loped details sold us the moment we saw them with this Anthro option! The Maeve Scal­loped But­ton­down Dress is dolled up, but not too dressy — the per­fect com­bo for smart casu­al.

: svg%3e

Madewell Pleated Midi Dress in Stripe ($148)

With­out the pleats, this dress from Madewell would like­ly be too down­played. How­ev­er, the extra struc­ture adds just enough for this to feel fun and ele­gant.

What is busi­ness casu­al dress code?

This dress code is a lit­tle more for­mal than casu­al, but not as strict as busi­ness pro­fes­sion­al. Think dress pants or a skirt paired with a blouse or a sweater. You can still wear com­fort­able shoes, but make sure they look pol­ished. Stores like Banana Repub­lic, Ann Tay­lor, and Loft offer great options for work­wear, such as blous­es, skirts, and dress pants.

Shop Busi­ness Casu­al Looks

: svg%3e

Banana Republic Serenade Silk Shirtdress ($250)

A shirt dress can cer­tain­ly be casu­al, but this Ser­e­nade Silk Shirt­dress from Banana Repub­lic takes the clas­sic sil­hou­ette up a notch. This dress is great for hop­ping from the office to your Thurs­day hap­py hours!

: svg%3e

Ann Taylor Scoop Neck Short Sleeve Sheath Dress ($149)

A sheath dress is a great style for offices in the sum­mer — it has nice struc­ture, but still has a room to breathe. You can eas­i­ly dress up this ver­sa­tile option with state­ment jew­el­ry and some heels, or you can go for a more toned down look with a chunky flat san­dal and a sim­ple satchel.

: svg%3e

Loft Floral Ruffle Wrap Skirt ($36, was $70) + Ribbed Twist Open Back Top ($40)

Loft is a long­time sta­ple for women in the work­place. This com­bi­na­tion of the dain­ty skirt and straight­for­ward shirt is per­fect­ly pol­ished for your sum­mer Fri­days, allow­ing you to feel cute and com­fort­able.


[rebel­mouse-proxy-image https://media.everlane.com/image/upload/c_fill,w_750,ar_1:1,q_auto,dpr_1.0,f_auto,fl_progressive:steep/i/338404f4_650c crop_info=”%7B%22image%22%3A%20%22https%3A//media.everlane.com/image/upload/c_fill%2Cw_750%2Car_1%3A1%2Cq_auto%2Cdpr_1.0%2Cf_auto%2Cfl_progressive%3Asteep/i/338404f4_650c%22%7D” expand=1]

Everlane The Structured Cotton Jumpsuit ($178)

This laid back look is sophis­ti­cat­ed, with all the vibes of slacks and a blouse and none of the has­sle. And if you’re not head­ed into the office? Toss some Birken­stocks on with this the next time you head to the farmer’s mar­ket.

What is busi­ness pro­fes­sion­al dress code?

If you’re going to a job inter­view or a busi­ness meet­ing, this is the dress code you’ll like­ly encounter. You’ll need to wear a tai­lored suit or dress, heels, and con­ser­v­a­tive acces­sories. The goal is to look pol­ished and pro­fes­sion­al.

Shop Busi­ness Pro­fes­sion­al Looks

: svg%3e

Carolina Slim Cotton-Linen Blazer ($250) + Straight Cotton Linen Pant ($130)

Linen will be your BFF for your sum­mer office style. This linen suit still gives off “busi­ness pro­fes­sion­al,” but isn’t suf­fo­cat­ing giv­en the lighter fab­ric. You can eas­i­ly take this look from day to night by los­ing the jack­et and putting on a bold lip col­or.


[rebel­mouse-proxy-image https://media.everlane.com/image/upload/c_fill,w_750,ar_1:1,q_auto,dpr_1.0,f_auto,fl_progressive:steep/i/a392c428_053c crop_info=”%7B%22image%22%3A%20%22https%3A//media.everlane.com/image/upload/c_fill%2Cw_750%2Car_1%3A1%2Cq_auto%2Cdpr_1.0%2Cf_auto%2Cfl_progressive%3Asteep/i/a392c428_053c%22%7D” expand=1]

Everlane The Linen Oversized Blazer ($178) + Way-High Drape Pant ($128)

Gone are the days of super cropped and trim cut blaz­ers. This over­sized blaz­er and drape pant look is the trendy answer to your office wear needs!

: svg%3e

COS Asymmetric Gathered Midi Dress ($135)

If you don’t wan­na go the pants and jack­et route, a solid­ly struc­tured dress at an appro­pri­ate length will work just fine for busi­ness pro­fes­sion­al dress code! We’d pair this dress from COS with some pointy-toed heels and chunky gold jew­el­ry.

What is cock­tail attire dress code?

This dress code is often seen at wed­dings, par­ties, and oth­er for­mal events. You’ll need to wear a dress or a skirt with a dressy blouse, paired with heels and taste­ful acces­sories. Think sophis­ti­cat­ed and glam­orous. When it comes to cock­tail attire, you’ll want to look for dress­es or dressy sep­a­rates that are appro­pri­ate for a night out. Check out stores like Nord­strom, Bloom­ing­dale’s, and Revolve for chic and styl­ish options.

Shop Cock­tail Attire Looks

: svg%3e

Lulu’s Beyond Classy Satin Halter Cocktail Midi Dress ($72)

The hater neck­line and midi length are an excel­lent pair for this Lulu’s dress. The drap­ing is ele­gant, but the slit and slight­ly short­er length add that lev­el of cock­tail play­ful­ness.

: svg%3e

Helsi Structured 3D Floral-Embellished Mini Dress ($535)

Flo­ral embell­ish­ments are all over right now, from twist­ed rosettes to embroi­dered wild­flow­ers like these. While we love all the col­ors in this Hel­si option from Anthro­polo­gie, there’s also a black and nude option.

: svg%3e

Norma Kamali Diana Mini Dress ($195)

Much like the Lulu’s dress, this one-shoul­dered mini dress from Revolve is sim­ple and stun­ning. We’d add some state­ment ear­rings and a sim­ple up-do to this dress.

: svg%3e

Free People Remi Mini Dress ($329)

Want sleeves that are breath­able? This Free Peo­ple dress gives just that, plus some added Ste­vie Nicks vibes. Yes, please!

What is black tie dress code?

This is the most for­mal dress code, often seen at galas or fan­cy wed­dings. You’ll need to wear a long floor-length gown, a dressy jump­suit, or a for­mal cock­tail dress, paired with dressy acces­sories such as fine jew­el­ry and heels. Think red car­pet glam­our. You can find beau­ti­ful options at stores like BHLDN, Saks Fifth Avenue, and Neiman Mar­cus.

: svg%3e

Lulu’s Amelia Plunge Neck Trumpet Gown ($55-$88, was $88)

Luck­i­ly, brands like Lulu’s offer more afford­able options you can don con­fi­dent­ly at your next wed­ding or spe­cial occa­sion! The v‑neckline on this takes this sim­ple black dress and makes is more of a state­ment.

What is beach for­mal dress code?

Beach for­mal attire should be com­fort­able and light­weight, yet still ele­gant. Look for flowy maxi dress­es or linen sep­a­rates at stores like Free Peo­ple, Anthro­polo­gie, and H&M.

Shop Beach For­mal Looks

: svg%3e

Free People Santa Maria Maxi Dress ($128)

Cur­rent­ly man­i­fest­ing a beach wed­ding invi­ta­tion so we can have an excuse to wear this Free Peo­ple dress! It’s fun and flowy, with­out feel­ing like a bathing suit cov­er up.

: svg%3e

H&M Long Halterneck Dress ($40)

This pop of col­or is per­fect for your next beachy event. The hal­ter top is sum­mer per­son­i­fied, and the flowy shape allows you to move through the sun and the sand with ease.

What is white tie dress code?

White tie events are the most for­mal dress code and typ­i­cal­ly call for full-length ball gowns. Check out stores like Moda Operan­di, Bergdorf Good­man, and Net-a-Porter for stun­ning options.

Shop White Tie Looks

: svg%3e

Marchesa Ruffled Organza Ball Gown ($5,995)

Ruf­fles are real­ly, real­ly in if you haven’t noticed. This gown from March­esa may be almost $6k, but the drap­ing of the del­i­cate organ­za, the pinched rosettes on the gown, and the pas­tel peri­win­kle are a work of art in their own right.

: svg%3e

MARKARIAN Magnolia Off-the-Shoulder Corset Gown ($2,457, was $4,095)

The corset­ed bodice is still very trendy right now, espe­cial­ly when paired with off-the-shoul­der sleeves and del­i­cate drap­ing. This dress by MARKARIAN is what I imag­ine ancient Greek roy­al­ty would wear (if they had fuch­sia dyes at their dis­pos­al).

: svg%3e

Marchesa Notte Plunge Petal Appliqué Gown ($1,195)

Are you sur­prised to find more appliqué embell­ish­ments at the end of this guide? Did­n’t think so. This oth­er March­esa gown is for­mal, but edgy enough to bring your per­son­al­i­ty into the look.

Now that you know the most com­mon dress codes for women, you can con­fi­dent­ly dress for any occa­sion. Just remem­ber to always con­sid­er the set­ting and dress appro­pri­ate­ly. With these tips in mind, you’ll be the best-dressed in the room!

Look­ing for more style advice? Sign up for our email newslet­ter so you nev­er miss a thing!

Brit + Co. may at times use affil­i­ate links to pro­mote prod­ucts sold by oth­ers, but always offers gen­uine edi­to­r­i­al rec­om­men­da­tions.

Head­er images via Banana Repub­lic, Free Peo­ple, Anthro­polo­gie

“; toolTip.classList.add(‘tool-tip’); a.appendChild(toolTip); }) } }); window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){ !function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version=‘2.0′; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(window, document,‘script’, ‘https://joblyjobs.com/jobly_cont/litespeed/localres/aHR0cHM6Ly9jb25uZWN0LmZhY2Vib29rLm5ldC9lbl9VUy9mYmV2ZW50cy5qcw==’); fbq(‘init’, ‘377612259624022’); }); window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){ window.REBELMOUSE_STDLIB.loadExternalScript(“https://s.skimresources.com/js/58005X1352817.skimlinks.js”, func­tion() { }); }); window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){ func­tion Vizible(a) { if (!(a instance­of Ele­ment)) throw Error(“DomUtil: elem is not an ele­ment.”); con­st b = getComputedStyle(a); if (“none” === b.display) return !1; if (“vis­i­ble” !== b.visibility) return !1; if (0.1 > b.opacity) return !1; if ( 0 === a.offsetWidth + a.offsetHeight + a.getBoundingClientRect().height + a.getBoundingClientRect().width ) return !1; con­st c = { x: a.getBoundingClientRect().left + a.offsetWidth / 2, y: a.getBoundingClientRect().top + a.offsetHeight / 2, }; if (0 > c.x) return !1; if (c.x > (document.documentElement.clientWidth || window.innerWidth)) return !1; if (0 > c.y) return !1; if (c.y > (document.documentElement.clientHeight || window.innerHeight)) return !1; let d = document.elementFromPoint(c.x, c.y); do if (d === a) return !0; while ((d = d.parentNode)); return !1; } var sub­menu = document.querySelector(“.submenu”); document.querySelectorAll( “.menu_container .list .list__item” ).forEach(function(i){ if (!Vizible(i)) { submenu.appendChild(i); } }); }); window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){ (async(n,o)=>{if(n.cartedInitialized)return;if(!n.carted?.versions){n.carted={apiKey:“pk-a64250e7-f33a-4b46-ac96-1a8335a18ef2”,environment:“live”,displayName:“Brit + Co”,onMessage:t=>{const a=new CustomEvent(“carted_event”,{detail:{…t}});n.dispatchEvent(a)}};const e=o.createElement(“script”);e.src=“https://cdn.jsdelivr.net/npm/@carted/elements@0.6/dist/main.esm.js”,o.head.appendChild(e)}const p=o.createElement(“style”);p.innerHTML=‘:root{–carted-elements-primary-color:#70cfbe;–carted-elements-font-family:Soleil,Helvetica,Arial,sans-serif;–font-color:#000;–carted-zindex-product-modal:2147483647;–carted-zindex-cart-drawer:2147483647}carted-product-card:focus{outline:none}carted-product-card::part(card-container){border:none;border-radius:0;width:max-content}carted-product-card::part(card-container loading),carted-product-card::part(card-container error){display:none}carted-product-card::part(card-container-content),carted-product-card::part(content-container){padding:0;text-align:center}carted-product-card::part(content-container-bottom){margin-top:0}carted-product-card::part(carousel-container){display:none}carted-product-card::part(product-title),carted-product-card::part(options),carted-product-card::part(price){display:none}carted-product-card::part(stock){margin:0 0 .5rem}carted-product-card::part(primary-button):focus{outline:none;box-shadow:none}carted-product-card::part(primary-button):focus-visible{outline:5px auto #2684b1;box-shadow:none}carted-product-card::part(primary-button){padding:15px 30px;border-radius:2px;background-color:#ffe600;background-image:none;color:var(–font-color);font-family:Filson,Open Sans,sans-serif;font-size:16px;font-weight:400;line-height:1;text-transform:uppercase}carted-product-card::part(primary-button):hover{opacity:.9}carted-product-card::part(primary-button disabled){border:none;background-image:none;background-color:#c7c5cf;color:#fff}carted-floating-cart-button::part(button){right:unset!important;left:16px!important}@media (max-width:767px){body:has([data-unit=“stickybanner”].ams-sticky .htl-ad-gpt>div[style*=“height: 50px;”]),body:has([data-unit=“stickybanner”].ams-sticky .htl-ad-gpt iframe[style*=“height: 50px;”]),body:has([data-unit=“stickybanner”].ams-sticky .htl-ad-gpt>div:not([style*=“height:”]) iframe:not([style*=“height:”])[height=“50”]){–carted-cart-button-height:50px}body:has([data-unit=“stickybanner”].ams-sticky .htl-ad-gpt>div[style*=“height: 100px;”]),body:has([data-unit=“stickybanner”].ams-sticky .htl-ad-gpt iframe[style*=“height: 100px;”]),body:has([data-unit=“stickybanner”].ams-sticky .htl-ad-gpt>div:not([style*=“height:”]) iframe:not([style*=“height:”])[height=“100”]){–carted-cart-button-height:100px}carted-floating-cart-button::part(button){margin-bottom:var(–carted-cart-button-height)}}carted-floating-cart-button::part(count-indicator){background-color:#fff;color:var(–font-color)}‘,o.head.appendChild℗;const u=[];let d=null;for(const e of u){const{type:t,value:a}=e;let r=!1;if(t===“hasElement”&&o.querySelector(a)&&(r=!0),t===“url”&&n.location.href.includes(a)&&(r=!0),r){d={include:r,rule:e};break}}if(d||u.length===0)console.log(“Carted: includ­ing page”,d?.rule);else{console.log(“Carted: exclud­ing page u2014 no match­ing inclu­sion rules”);return}const h=[{type:“hasElement”,value:“body.section-britcopicks”},{type:“hasElement”,value:“body.section-food,body.section-food-news,body.section-food-appetizers,body.section-diy-recipes,body.section-dessert-recipes,body.section-cocktails,body.section-recipes,body.section-food-adulting,body.section-food-news,body.section-healthy-eating”},{type:“hasElement”,value:“article:has(.badge-list-sponsored):has(div.body)”}];let s=null;for(const e of h){const{type:t,value:a}=e;let r=!1;if(t===“hasElement”&&o.querySelector(a)&&(r=!0),t===“url”&&n.location.href.includes(a)&&(r=!0),r){s={exclude:r,rule:e};break}}if(s){console.log(“Carted: exclud­ing page”,s.rule);return}const f=[{type:“startsWith”,value:location.origin},{type:“startsWith”,value:“https://amzn.to”},{type:“startsWith”,value:“https://www.amazon.com”},{type:“includes”,value:“tag=brit-co-20”}],y=[…o.querySelector(“article div.body”).querySelectorAll(“.rebellt-item h3 > a”)].filter(e=>{const t=e.href;let a=null;for(rule of f){const{type:r,value:i}=rule;let c=!1;if(r===“startsWith”&&t.startsWith(i)&&(c=!0),r===“includes”&&t.includes(i)&&(c=!0),c){a={exclude:c,rule};break}}return a?(console.log(‘Carted: exclud­ing link u2014 ${t}‘,a.rule),!1):!0});for(const e of y)try{const t=await fetch(“https://clever-squirrel-97.deno.dev/resolve”,{method:“POST”,headers:{“content-type”:“application/json”},body:JSON.stringify(e.href)});if(!t.ok)throw Error(resolveURLResponse.statusText);const a=await t.json(),r=new URL(a.href),i=‘${r.origin}${r.pathname}‘,c=e.href,l=o.createElement(“carted-product-card”);l.setAttribute(“product-url”,i),l.setAttribute(“affiliate-link”,c),e.parentElement?.insertAdjacentElement(“afterend”,l)}catch(t){console.error(“Carted: could not resolve URL”,e.href,t);continue}n.cartedInitialized=!0})(window,document); (()=>{con­st s={…document.querySelector(“article div.body”)?.querySelector(“div[data-post-url]”)?.dataset};window.addEventListener(“carted_event”,n=>{const{type:t,payload:a}=n?.detail;switch(t){case“carted:init_product”:u(a);break;case“carted:init_products”:f(a);break;case“carted:view_product_details”:m(a);break;case“carted:add_to_cart”:l(a);break;case“carted:remove_from_cart”:p(a);break;case“carted:view_cart”:v(a);break;case“carted:begin_checkout”:_(a);break;case“carted:add_shipping_info”:y(a);break;case“carted:add_payment_info”:g(a);break;case“carted:purchase”:h(a);break}});function u(n){if(n)if(n.product){const t=n.product,a=t.variantConnection?.edges[0],r=t.variantConnection?.edges?.find?.(w=>w.node?.offerConnection?.edges[0]?.node?.availability?.inStock),i=(r||a).node?.offerConnection?.edges[0]?.node,c={item_id:t.id,item_name:t.title,affiliation:i.merchant?.name,currency:i.price?.currency,price:i.price?.amount,quantity:1},o={item_list_id:s.elid,item_list_name:s.headline,items:[c]};window.gtag?.(“event”,“view_item”,o),t.availability?.inStock||window.gtag?.(“event”,“product_out_of_stock”,{productUrl:n.productUrl,productTitle:t.title})}else window.gtag?.(“event”,“product_broken_link”,{productUrl:n.productUrl})}function f(n){if(!n?.products)return;const t=n.products.map(r=>{const e=r.variantConnection?.edges[0],i=r.variantConnection?.edges?.find?.(d=>d.node?.offerConnection?.edges[0]?.node?.availability?.inStock),o=(i||e).node?.offerConnection?.edges[0]?.node;return{item_id:r.id,item_name:r.title,affiliation:o.merchant?.name,currency:o.price?.currency,price:o.price?.amount,quantity:1}}),a={item_list_id:s.elid,item_list_name:s.headline,items:t};window.gtag?.(“event”,“view_item_list”,a)}function m(n){const t=n?.product;if(!t)return;const a=t.variantConnection?.edges[0],r=t.variantConnection?.edges?.find?.(d=>d.node?.offerConnection?.edges[0]?.node?.availability?.inStock),i=(r||a).node?.offerConnection?.edges[0]?.node,c={item_id:t.id,item_name:t.title,affiliation:i.merchant?.name,currency:i.price?.currency,price:i.price?.amount,quantity:1},o={item_list_id:s.elid,item_list_name:s.headline,items:[c]};window.gtag?.(“event”,“select_item”,o)}function l(n){const t=n?.line;if(!t)return;const r=t.offer?.variant?.selectedOptions?.map(c=>c.value)?.join(“https://www.brit.co/”)?.toLowerCase(),e={item_id:t.id,item_name:t.title,item_variant:r,affiliation:t.offer?.merchant?.name,currency:t.offer?.price?.currency,price:t.offer?.price?.amount,quantity:t.quantity},i={currency:t.offer?.price?.currency,price:t.offer?.price?.amount,items:[e],quantity:n?.quantity};window.gtag?.(“event”,“add_to_cart”,i)}function p(n){const t=n?.line;if(!t)return;const r=t.offer?.variant?.selectedOptions?.map(c=>c.value)?.join(“https://www.brit.co/”)?.toLowerCase(),e={item_id:t.id,item_name:t.title,item_variant:r,affiliation:t.offer?.merchant?.name,currency:t.offer?.price?.currency,price:t.offer?.price?.amount,quantity:t.quantity},i={currency:t.offer?.price?.currency,price:t.offer?.price?.amount,items:[e],quantity:n?.quantity};window.gtag?.(“event”,“remove_from_cart”,i)}function v(n){const t=n?.cart;if(!t)return;const a=t.lines.map(e=>{const c=e.offer?.variant?.selectedOptions?.map(o=>o.value)?.join(“https://www.brit.co/”)?.toLowerCase();return{item_id:e.id,item_name:e.title,item_variant:c,affiliation:e.offer?.merchant?.name,currency:e.offer?.price?.currency,price:e.offer?.price?.amount,quantity:e.quantity}}),r={currency:t.pricing.totalPrice.currency,value:t.pricing.totalPrice.amount,items:a};window.gtag?.(“event”,“view_cart”,r)}function _(n){const t=n?.checkout;if(!t)return;const a=t.lines.map(i=>{const o=i.offer?.variant?.selectedOptions?.map(d=>d.value)?.join(“https://www.brit.co/”)?.toLowerCase();return{item_id:i.id,item_name:i.title,item_variant:o,affiliation:i.offer?.merchant?.name,currency:i.offer?.price?.currency,price:i.offer?.price?.amount,quantity:i.quantity}}),r={currency:t.pricing.totalPrice.currency,value:t.pricing.totalPrice.amount,items:a};window.gtag?.(“event”,“begin_checkout”,r);const e=n.checkout.lines.filter(i=>i.affiliate?.followed===!1).map(i=>({affiliateLink:i.affiliate?.link,productTitle:i.title,productUrl:i.productUrl}));e.length>0&&e.forEach(i=>{window.gtag?.(“event”,“product_broken_affiliate”,{affiliateLink:i.affiliateLink,productTitle:i.productTitle,productUrl:i.productUrl})})}function y(n){const t=n?.checkout;if(!t)return;const a=t.lines.map(e=>({item_id:e.offer?.variant?.id,item_name:e.offer?.variant?.product?.title,affiliation:e.offer?.merchant?.name,currency:e.price?.totalPrice?.currency,price:e.price?.totalPrice?.amount/e.quantity,quantity:e.quantity,item_variant:e.offer?.variant?.selectedOptions?.map(i=>i.value)?.join(“https://www.brit.co/”)?.toLowerCase()})),r={currency:t.pricing?.totalPrice?.currency,value:t.pricing?.totalPrice?.amount,shipping_tier:t.shipping?.shipments[0]?.selectedShippingRate,items:a};window.gtag?.(“event”,“add_shipping_info”,r)}function g(n){const t=n?.checkout;if(!t)return;const a=t.lines.map(e=>({item_id:e.offer?.variant?.id,item_name:e.offer?.variant?.product?.title,affiliation:e.offer?.merchant?.name,currency:e.price?.totalPrice?.currency,price:e.price?.totalPrice?.amount/e.quantity,quantity:e.quantity,item_variant:e.offer?.variant?.selectedOptions?.map(i=>i.value)?.join(“https://www.brit.co/”)?.toLowerCase()})),r={currency:t.pricing?.totalPrice?.currency,value:t.pricing?.totalPrice?.amount,payment_method:n?.paymentMethod,items:a};window.gtag?.(“event”,“add_payment_info”,r)}function h(n){const t=n?.order;if(!t)return;const a=t.lines.map(e=>({item_id:e.offer?.variant?.id,item_name:e.offer?.variant?.product?.title,affiliation:e.offer?.merchant?.name,currency:e.price?.totalPrice?.currency,price:e.price?.totalPrice?.amount/e.quantity,quantity:e.quantity,item_variant:e.offer?.variant?.selectedOptions?.map(i=>i.value)?.join(“https://www.brit.co/”)?.toLowerCase()})),r={transaction_id:t.sessionId,currency:t.pricing?.totalPrice?.currency,value:t.pricing?.totalPrice?.amount,shipping:t.pricing?.shipping?.amount,tax:t.pricing?.tax?.amount,items:a};window.gtag?.(“event”,“purchase”,r)}})(); }); window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){ REBELMOUSE_STDLIB.createElementChangeListener(“.scroll-post:not(.share-proc)”, func­tion (item) { item.classList.add(“share-proc”); if (item.querySelector(“.widget__head + .widget__body”)) { item.querySelector(“.widget__head + .widget__body”).appendChild( item.querySelector(“.widget__shares”).cloneNode(true) ); } else { if(item.querySelector(“.widget__body + .widget__body”)){ item.querySelector(“.widget__body + .widget__body”).appendChild( item.querySelector(“.widget__shares”).cloneNode(true) ); } } }); }); window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){ if(document.querySelector(‘.post-date’)){ con­st D=new Date(document.querySelector(‘.post-date’).innerText); if(D.getFullYear()<2017){ if(document.querySelector(‘.post-splash-custom .widget__head .widget__image’)){ document.querySelector(‘.post-splash-custom .widget__head .widget__image’).remove(); //console.log(“Removed”) } }} }); window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){ REBELMOUSE_STDLIB.onElementInViewport({ thresh­old: 400, selec­tor: “.sidebar_sticky_parent”, one­Time: true, onIn­ter­sect: function(entry){ var ele­ment = entry.target; var json­Val = JSON.stringify({ post_id: currentPostId_s }); var ad_el=element.querySelector(“.sidebar_repeat_ad”); ad_el.dataset.targeting = json­Val; ad_el .classList.add(“htlad-Right_Rail_3”); element.insertAdjacentHTML( “afterend”, ’

’ ); } }); window.REBELMOUSE_STDLIB.onElementInViewport({ selec­tor: “.scroll-post .wid­get”, thresh­old: 50, one­Time: true, onIn­ter­sect: func­tion (entry) { var ele­ment = entry.target; var elId = element.getAttribute(‘elid’); if (elId) { var sidebar_ad_div=document.querySelector(“.sidebar_sticky_parent:nth-last-child(2) .stick_in_parent”); if(!sidebar_ad_div) {} else { sidebar_ad_div.innerHTML=””; var json­Val = JSON.stringify({ post_id: elId }); let ad_div=document.createElement(“div”); ad_div.dataset.targeting = json­Val; ad_div.classList.add(‘htlad-Right_Rail_3’, “adver­tise­ment”); sidebar_ad_div.append(ad_div) } return; } }, }); }); window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){ window.REBELMOUSE_STDLIB.onElementInViewport({ selec­tor: “.tag-spon­sored, [data-category=‘Sponsored’]”, thresh­old: 10, one­Time: false, onAbove­View­port: func­tion (ele­ment) { console.log(“I am above View port”); if(document.querySelector(“.exco-loader .pbs__player”) != null) { if(window.innerWidth > 768){ document.querySelector(“.exco-loader .pbs__player”).style.display = “block”; } } }, onBel­lowView­port: function(element) { console.log(“I am below View port”); }, onIn­ter­sect: func­tion (entry) { console.log(“sponsored post in view”); if(document.querySelector(“.exco-loader .pbs__player”) != null) { if(window.innerWidth > 768){ document.querySelector(“.exco-loader .pbs__player”).style.display = “none”; } } var wid­get = entry.target; /* var row = widget.closest(‘.row’) if (row != null) { var out­brain = row.querySelector(‘.outbrain-wrap’); /*if (out­brain) { outbrain.classList.add(“hidden”); } }*/ } }); }); window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){ //const script = document.createElement(“script”); //script.src = “https://player.anyclip.com/anyclip-widget/lre-widget/prod/v1/src/lre.js”; //script.async = true; //script.setAttribute(“id”, “lre-play­er-wid­get”); //script.setAttribute(“pubname”, “brit­co”); //script.setAttribute(“widgetname”, “0011r00001onCeo_1182”); //const hold­er = document.getElementById(“lre-script-holder”); //holder.parentElement.insertBefore(script, hold­er); /*const script = document.createElement(“script”); script.src = “https://player.anyclip.com/anyclip-widget/lre-widget/prod/v1/src/lre.js”; script.async = true; script.setAttribute(“id”, “lre-play­er-wid­get”); script.setAttribute(“pubname”, “brit­co”); script.setAttribute(“widgetname”, “0011r00001onCeo_1182”); con­st hold­er = document.getElementById(“lre-script-holder”); holder.parentElement.insertBefore(script, holder);*/ }); window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){ if(document.querySelector(‘.post-date’)){ con­st D=new Date(document.querySelector(‘.post-date’).innerText); if(D.getFullYear()<2017){ if(document.querySelector(‘.post-splash-custom .widget__head .widget__image’)){ document.querySelector(‘.post-splash-custom .widget__head .widget__image’).remove(); //console.log(“Removed”) } }} }); window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){ func­tion measureElement(entry){ var arti­cle = entry.target; if(article.offsetHeight){ article.style.containIntrinsicSize = article.offsetHeight+“px”; article.classList.add(“post-measured”); } } /*window.REBELMOUSE_STDLIB.onElementInViewport({ selec­tor: “.post-splash-custom,.posts-custom”, root­Mar­gin: “-100px 0px ‑100px 0px”, onNon­In­ter­sect: mea­sureEle­ment, onIn­ter­sect: mea­sureEle­ment });*/ }); window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){ if(document.querySelector(“.section-sponsored .first-insti­ca­tor”) != null) { document.querySelector(“.section-sponsored .first-insticator”).style.display = “none”; } if(document.querySelector(“.section-sponsored .first-ob-mod­ule”) != null) { document.querySelector(“.section-sponsored .first-ob-module”).style.display = “none”; } if(document.querySelector(“.section-sponsored .pbs__player”) != null) { document.querySelector(“.section-sponsored .pbs__player”).style.display = “none”; } });

Read More

Leave a Comment