(function () {
if(!document.querySelector('.eg-top-bar'))
try {
/* main variables */
var debug = 0;
var variation_name = "";
/* all Pure helper functions */
function waitForElement(selector, trigger, delayInterval, delayTimeout) {
var interval = setInterval(function () {
if (
document &&
document.querySelector(selector) &&
document.querySelectorAll(selector).length > 0
) {
clearInterval(interval);
trigger();
}
}, delayInterval);
setTimeout(function () {
clearInterval(interval);
}, delayTimeout);
}
function live(selector, event, callback, context) {
/****Helper Functions****/
// helper for enabling IE 8 event bindings
function addEvent(el, type, handler) {
if (el.attachEvent) el.attachEvent("on" + type, handler);
else el.addEventListener(type, handler);
}
// matches polyfill
this.Element &&
(function (ElementPrototype) {
ElementPrototype.matches =
ElementPrototype.matches ||
ElementPrototype.matchesSelector ||
ElementPrototype.webkitMatchesSelector ||
ElementPrototype.msMatchesSelector ||
function (selector) {
var node = this,
nodes = (
node.parentNode || node.document
).querySelectorAll(selector),
i = -1;
while (nodes[++i] && nodes[i] != node);
return !!nodes[i];
};
})(Element.prototype);
// live binding helper using matchesSelector
function live(selector, event, callback, context) {
addEvent(context || document, event, function (e) {
var found,
el = e.target || e.srcElement;
while (
el &&
el.matches &&
el !== context &&
!(found = el.matches(selector))
)
el = el.parentElement;
if (found) callback.call(el, e);
});
}
live(selector, event, callback, context);
}
var egArrowNew = `<svg role="img" class="icon svg-icon svg-arrow-right" width="7" height="12" aria-hidden="false" tabindex="-1">
<title>Next</title>
<desc>Next</desc>
<use role="img" xlink:href="#arrow-right" alt="Next"></use>
</svg>`;
var egHeroText = `<h2 class="eg-heading">The Best of <br>Both Worlds</h2>
<p class="eg-para">Puffy or fuzzy to light and lofty, your comfort can thrive off-grid and off-mountain.</p>
<div class="eg-button-container">
<a href="https://www.marmot.com/men/jackets-and-vests/insulated-and-down/" target="_self" class="eg-button btn large btn-black solid-fill">Shop Men</a>
<a href="https://www.marmot.com/women/jackets-and-vests/insulated-and-down/" target="_self" class="eg-button btn large btn-black solid-fill">Shop Women</a>
</div>`;
var egArrow = '' +
`<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" viewBox="0 0 8 8" fill="none">
<path fill-rule="evenodd" clip-rule="evenodd" d="M1.22644 6.05006L4.00394 3.39838L6.78144 6.05006C7.06069 6.31665 7.51169 6.31665 7.79094 6.05006C8.07019 5.78347 8.07019 5.35291 7.79094 5.08658L4.50494 1.94994C4.22569 1.68335 3.77469 1.68335 3.49544 1.94994L0.209438 5.08658C-0.0698125 5.35317 -0.0698125 5.78373 0.209438 6.05006C0.488688 6.30969 0.946687 6.31665 1.22594 6.05006H1.22644Z" fill="black"/>
</svg>`;
var egoption2 = `<div class="eg-top-bar"><div class="eg-navwrap container">
<ul id="eg-nav" class="eg-nav">
<li>
<div class="select-styled"><img src="https://editor-assets.abtasty.com/50844/652451ac14c651696879020.svg
" alt="Jacket & Vests"> Jacket & Vests`+ egArrow + `</div>
<ul class="eg-dropdown eg-jackets">
<li><a href="/men/jackets-and-vests/">Shop Men</a></li>
<li><a href="/women/jackets-and-vests/">Shop Women</a></li>
</ul>
</li>
<li>
<div class="select-styled"><img src="https://editor-assets.abtasty.com/50844/650dc23938bde1695400505.svg" alt="Sleeping Bags">Insulated & Down`+ egArrow + `</div>
<ul class="eg-dropdown eg-sleeping-bags">
<li><a href="https://www.marmot.com/men/jackets-and-vests/insulated-and-down/">Shop Men</a></li>
<li><a href="https://www.marmot.com/women/jackets-and-vests/insulated-and-down/">Shop Women</a></li>
</ul>
</li>
<li>
<div class="select-styled"><img src="https://editor-assets.abtasty.com/50844/650dc3a14e94d1695400865.svg" alt="Tops">Snowsports`+ egArrow + `</div>
<ul class="eg-dropdown tops">
<li><a href="https://www.marmot.com/men/jackets-and-vests/ski-and-snowboard/">Shop Men</a></li>
<li><a href="https://www.marmot.com/women/jackets-and-vests/ski-and-snowboard/">Shop Women</a></li>
</ul>
</li>
<li>
<div class="select-styled"><img src="https://expogrowth.in/wp-content/uploads/2023/09/image-11.svg" alt="Rainwear"> Rainwear`+ egArrow + `</div>
<ul class="eg-dropdown eg-rainwear">
<li><a href="https://www.marmot.com/men/jackets-and-vests/rainwear/">Shop Men </a></li>
<li><a href="https://www.marmot.com/women/jackets-and-vests/rainwear/">Shop Women</a></li>
</ul>
</li>
<li>
<div class="select-styled"><img src="https://editor-assets.abtasty.com/50844/65244b2911c3c1696877353.svg
" alt="Bottoms">Fleece`+ egArrow + `</div>
<ul class="eg-dropdown bottoms">
<li><a href="https://www.marmot.com/men/jackets-and-vests/fleece/">Shop Men</a></li>
<li><a href="https://www.marmot.com/women/jackets-and-vests/fleece/">Shop Women</a></li>
</ul>
</li>
<li>
<div class="select-styled"><img src="https://expogrowth.in/wp-content/uploads/2023/09/image-14.svg" alt="Tents">Equipment`+ egArrow + `</div>
<ul class="eg-dropdown eg-tents">
<li><a href="https://www.marmot.com/equipment/tents/">Shop Tents</a></li>
<li><a href="https://www.marmot.com/equipment/sleeping-bags/">Shop Sleeping Bags</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div class="eg-mobile-bar">
<div class="eg-navwrap container">
<ul id="eg-nav" class="eg-nav">
<li>
<div class="select-styled"><img src="https://expogrowth.in/wp-content/uploads/2023/09/image-8.svg"
alt="Jacket & Vests">Jackets & Vests `+ egArrow + `</div>
<div class="eg-dropdown-outer">
<span>×</span>
<ul class="eg-dropdown eg-jackets">
<li>
<p class="eg-item-title">Jackets & Vests</p>
</li>
<li><a href="https://www.marmot.com/men/jackets-and-vests/">Shop Men</a></li>
<li><a href="https://www.marmot.com/women/jackets-and-vests/">Shop Women</a></li>
</ul>
</div>
</li>
<li>
<div class="select-styled"><img src="https://editor-assets.abtasty.com/50844/650dc23938bde1695400505.svg"
alt="Sleeping Bags">Insulated & Down`+ egArrow + `</div>
<div class="eg-dropdown-outer">
<span>×</span>
<ul class="eg-dropdown eg-sleeping-bags">
<li>
<p class="eg-item-title">Insulated & Down</p>
</li>
<li><a href="https://www.marmot.com/men/jackets-and-vests/insulated-and-down/">Shop Men</a></li>
<li><a href="https://www.marmot.com/women/jackets-and-vests/insulated-and-down/">Shop Women</a></li>
</ul>
</div>
</li>
<li>
<div class="select-styled"><img src="https://editor-assets.abtasty.com/50844/650dc3a14e94d1695400865.svg"
alt="Tops">Snowsports`+ egArrow + `</div>
<div class="eg-dropdown-outer">
<span>×</span>
<ul class="eg-dropdown tops">
<li>
<p class="eg-item-title">Snowsports</p>
</li>
<li><a href="https://www.marmot.com/men/jackets-and-vests/ski-and-snowboard/">Shop Men</a></li>
<li><a href="https://www.marmot.com/women/jackets-and-vests/ski-and-snowboard/">Shop Women</a></li>
</ul>
</div>
</li>
<li>
<div class="select-styled"><img src="https://expogrowth.in/wp-content/uploads/2023/09/image-11.svg"
alt="Rainwear">Rainwear`+ egArrow + `</div>
<div class="eg-dropdown-outer">
<span>×</span>
<ul class="eg-dropdown eg-rainwear">
<li>
<p class="eg-item-title">Rainwear</p>
</li>
<li><a href="https://www.marmot.com/men/jackets-and-vests/rainwear/">Shop Men</a></li>
<li><a href="https://www.marmot.com/women/jackets-and-vests/rainwear/">Shop Women</a></li>
</ul>
</div>
</li>
<li>
<div class="select-styled"><img src="https://expogrowth.in/wp-content/uploads/2023/09/image-9.svg"
alt="Bottoms">Fleece`+ egArrow + `</div>
<div class="eg-dropdown-outer">
<span>×</span>
<ul class="eg-dropdown bottoms">
<li>
<p class="eg-item-title">Fleece</p>
</li>
<li><a href="https://www.marmot.com/men/jackets-and-vests/fleece/">Shop Men</a></li>
<li><a href="https://www.marmot.com/women/jackets-and-vests/fleece/">Shop Women</a></li>
</ul>
</div>
</li>
<li>
<div class="select-styled"><img src="https://expogrowth.in/wp-content/uploads/2023/09/image-14.svg"
alt="Tents">Equipment`+ egArrow + `</div>
<div class="eg-dropdown-outer">
<span>×</span>
<ul class="eg-dropdown eg-tents">
<li>
<p class="eg-item-title">Tents</p>
</li>
<li><a href="https://www.marmot.com/equipment/tents/">Shop Tents</a></li>
<li><a href="https://www.marmot.com/equipment/sleeping-bags/">Shop Sleeping Bags</a></li>
</ul>
</div>
</li>
</ul>
</div>
</div>`;
function init() {
document.querySelector('.storepage .experience-commerce_layouts-masonrybrick:nth-child(2) .col-lg-3.layout-region .text-container').innerHTML = egHeroText;
window.addEventListener('scroll', () => {
if(window.pageYOffset >= document.querySelector('body header.hasStickyNav').clientHeight){
document.body.classList.add('eg-sticky-element');
}else{
document.body.classList.remove('eg-sticky-element');
}
})
document.querySelector('.storepage .experience-commerce_layouts-masonrybrick:nth-child(2)').insertAdjacentHTML('afterend', egoption2);
document.querySelectorAll('.eg-nav .select-styled').forEach(function (element) {
element.addEventListener('click', function () {
const activeDropdown = document.querySelector('.eg-nav .select-styled.eg-dropdown-active');
if (activeDropdown && activeDropdown !== this) {
activeDropdown.classList.remove('eg-dropdown-active');
document.querySelector('body').classList.remove('eg-popup-new');
}
this.classList.toggle('eg-dropdown-active');
document.querySelector('body').classList.add('eg-popup-new');
});
});
(function () {
// detect touch
if ("ontouchstart" in document.documentElement) {
document.documentElement.className += " touch-device";
}
const scroller = document.querySelector(".eg-mobile-bar .eg-navwrap");
const egdropdown = document.querySelectorAll("eg-mobile-bar .eg-dropdown-outer");
scroller.addEventListener("scroll", checkScroll);
function checkScroll() {
document.activeElement.blur();
scroller.classList.add("isScrolling");
for (let i = 0; i < egdropdown.length; i++) {
egdropdown[i].style.transform =
"translateX(-" + scroller.scrollLeft + "px)";
}
scroller.classList.remove("isScrolling");
}
})();
live('.eg-dropdown-outer span', 'click', function(){
document.querySelector('.eg-mobile-bar .select-styled.eg-dropdown-active').classList.remove('eg-dropdown-active');
document.querySelector('body').classList.remove('eg-popup-new');
})
live('.header-banner.header-row-brands button', 'click', function(){
document.body.classList.add('eg-no-banner');
});
}
function noBanner(){
document.body.classList.add('eg-no-banner');
}
/* Initialise variation */
waitForElement(".storepage .experience-commerce_layouts-masonrybrick:nth-child(2) .col-lg-3.layout-region .text-container", init, 100, 25000);
waitForElement('.header-banner.header-row-brands.d-none',noBanner,50,10000);
} catch (e) {
if (debug) console.log(e, "error in Test" + variation_name);
}
})();
.eg-button-container ~ .cta-container,
.eg-button-container ~ p,
.eg-button-container ~ h1 {
display: none !important;
}
@media screen and (min-width:991px) and (max-width:1200px){
.storepage .experience-commerce_layouts-masonrybrick:nth-child(2){
background-position: top right 50%!important;
}
}
@media screen and (min-width:991px){
body:not(.sticky-nav-min) .eg-mob-acc .eg-icon svg path,
body:not(.sticky-nav-min) .eg-cart-icon>div svg{
fill: #ffffff !important;
}
.storepage {
overflow-x: initial;
}
.storepage .experience-commerce_layouts-masonrybrick:nth-child(2){
padding-top: 63px;
}
html body div#maincontent {
padding-top: 59px !important;
}
.navbar.bg-inverse .navbar-nav .nav-link{
color: #000000 !important;
}
}
body:not(.sticky-nav-min) header.sticky-nav-desktop .main-menu.menu-toggleable-left.navbar-toggleable-lg{
border-radius: var(--radius-square, 0px);
background: linear-gradient(180deg, rgba(0, 0, 0, 0.40) 0%, rgba(0, 0, 0, 0.00) 100%) !important;
backdrop-filter: blur(2px);
}
body:not(.sticky-nav-min) header.hasStickyNav.sticky-nav-desktop{
background: transparent !important;
}
.storepage .experience-commerce_layouts-masonrybrick:nth-child(2) .layout-region-9 {
display: none;
}
.storepage .experience-commerce_layouts-masonrybrick:nth-child(2) {
height: 78vh;
background-position: top center;
background-size: cover !important;
background-repeat: no-repeat;
background: url('https://editor-assets.abtasty.com/50844/651e4129376fb1696481577.png');
position: relative;
}
.storepage .experience-commerce_layouts-masonrybrick:nth-child(2) .col-lg-3.layout-region .image-container {
opacity: 0;
visibility: hidden;
display: none;
}
.eg-button-container {
display: flex;
flex-direction: column;
gap: 10px;
}
html body .eg-button-container .eg-button{
background: #491040 !important;
width: 270px;
}
html body .eg-button-container .eg-button:hover {
background: #2a0024 !important;
}
@media screen and (max-width:767px) {
html body.sticky-nav-mobile #maincontent[role="main"]{
padding-top: 55px !important;
}
}
@media screen and (max-width:990px) {
.eg-button-container{
align-items: center;
}
html body .eg-heading{
font-size: 2.5rem !important;
}
body:not(.eg-sticky-element) header .navbar-header .logo img{
opacity: 0;
visibility: hidden;
}
body:not(.eg-sticky-element) header .navbar-header .logo{
background: url('https://editor-assets.abtasty.com/50844/64ff568b1e73d1694455435.svg');
background-position: center;
background-size: 128px 24px;
background-repeat: no-repeat;
}
.sticky-nav-mobile .header.container {
max-width: 100%;
margin-left: 0px;
margin-right: 0px;
padding-left: 3%;
padding-right: 3%;
}
.sticky-nav-mobile .header.container .header-inner-row {
max-width: 94%;
margin: 0 auto;
}
body:not(.eg-sticky-element) .sticky-nav-mobile .header.container{
background: linear-gradient(180deg, rgb(0 0 0 / 65%) 0%, rgba(0, 0, 0, 0.00) 100%)!important; }
body:not(.eg-sticky-element) .eg-mob-acc .eg-icon svg path,
body:not(.eg-sticky-element) .search-mobile .reset-button-mobile .icon.svg-icon.close-x,
body:not(.eg-sticky-element) .header .navbar-header .pull-right .minicart-link svg,
body:not(.eg-sticky-element) .search-button-mobile .svg-icon.search{
fill: #ffffff !important
}
body:not(.eg-sticky-element) .menu-icon:not(.open)::after{
color: #ffffff !important;
}
body:not(.eg-sticky-element) .header .navbar-header .pull-left .navbar-toggler .menu-icon:not(.open) span {
background: #ffffff !important;
}
body:not(.eg-sticky-element) header.hasStickyNav.sticky-nav-mobile:not(.header-navbar-open) {
background: transparent;
}
body.sticky-nav-mobile #maincontent {
padding-top: 70px !important;
}
html body .eg-heading,
html body .eg-para {
text-align: center;
color: #ffffff;
}
.storepage .experience-commerce_layouts-masonrybrick:nth-child(2) {
background: url('https://editor-assets.abtasty.com/50844/651e414b11ccf1696481611.png');
background-repeat: no-repeat !important;
background-position: top left !important;
}
.storepage .experience-commerce_layouts-masonrybrick:nth-child(2) .text-cta-container{
justify-content: end !important;
}
}
@media screen and (min-width: 991px) {
html body .page header .header.container {
background: #ffffff;
padding-bottom: 10px;
}
html body .page header .main-menu .menu-group>ul.navbar-nav {
justify-content: flex-start !important;
margin-left: 20px;
}
.storepage .experience-commerce_layouts-masonrybrick:nth-child(2) .layout-region.col-lg-3 {
-webkit-box-flex: 0;
-ms-flex: 0 0 650px;
flex: 0 0 650px;
max-width: 650px;
}
html body .eg-para {
text-align: left;
font-size: 20px !important;
margin-bottom: 20px !important;
color: #ffffff;
}
html body .eg-heading {
text-align: left;
font-size: 64px;
font-style: normal;
font-weight: 700;
line-height: 80px;
color: #ffffff;
}
.eg-bar-detail {
flex-wrap: nowrap;
width: 900px;
}
}
.storepage .experience-commerce_layouts-masonrybrick:nth-child(2) .masonry-brick {
height: 100%;
}
/*rohan's edits*/
#marmothomepage .experience-component .carousel-container {
display: none;
}
#marmothomepage .experience-component .editorialRichText-component-container {
display:none;
}
/* New CSS */
.eg-top-bar {
padding: 40px 0px 24px 0px;
}
.eg-navwrap.container {
margin: auto;
white-space: nowrap;
padding-bottom: 14px;
}
.eg-top-bar .eg-nav li {
display: inline-block;
text-align: left;
word-spacing: normal;
position: relative;
}
.eg-nav .select-styled img {
width: 26px;
margin: 2px 0px;
}
.select-styled svg {
display: inline-block;
min-width: 18px;
transform: rotate(180deg);
transition: transform 0.45s linear;
}
.select-styled.eg-dropdown-active svg{
transform: rotate(0deg);
transition: transform 0.45s linear;
}
.eg-nav .select-styled {
cursor: pointer;
display: flex;
padding: 4px 16px;
justify-content: center;
align-items: center;
gap: 4px;
border-radius: 80px;
background: #ECEDED;
color: #222 !important;
text-align: center;
font-family: Roboto, sans-serif;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 24px;
}
.eg-top-bar .eg-nav {
width: 100%;
text-align: center;
margin-bottom: 0px !important;
padding-left: 0px;
display: flex;
gap: 16px;
justify-content: center;
}
.eg-top-bar .eg-dropdown {
padding-left: 0px;
display: flex;
flex-direction: column;
text-align: center;
align-items: center;
gap: 8px;
margin-top: 8px;
max-height: 0px;
opacity: 0;
visibility: hidden;
position: absolute;
left: 50%;
transform: translateX(-49%);
top: 100%;
z-index: 99;
transition: max-height 0.45s linear, opacity 0.45s linear, visibility 0.45s linear;
}
.select-styled.eg-dropdown-active + .eg-dropdown {
max-height: 500px;
opacity: 1;
visibility: visible;
transition: all 0.45s linear;
}
.eg-top-bar .eg-dropdown li a:hover svg {
fill: #ffffff;
}
.eg-top-bar .eg-dropdown li {
width: 100%;
}
.eg-top-bar .eg-dropdown li a svg{
margin-left: 5px;
}
.eg-top-bar .eg-dropdown li a {
width: 100%;
display: flex;
height: 40px;
min-width: 156px;
padding: 4px 16px;
justify-content: center;
align-items: center;
gap: 4px;
align-self: stretch;
border-radius: 80px;
border: 1px solid #222;
background: #ffffff;
color: #222222;
text-align: center;
font-family: Roboto, sans-serif;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 24px; /* 150% */
cursor: pointer;
}
.eg-top-bar .eg-dropdown li a:hover {
background: #222222;
color: #ffffff;
text-decoration: none;
}
.eg-mobile-bar {
padding: 24px 0px;
}
.eg-dropdown-outer .eg-dropdown {
padding: 16px;
margin: 0px;
display: flex;
flex-direction: column;
gap: 24px;
}
.eg-dropdown-outer .eg-item-title {
color: #ffffff;
font-feature-settings: 'clig' off, 'liga' off;
font-family: 'Avance Offc', sans-serif;
font-size: 30px;
font-style: normal;
font-weight: 700;
line-height: 38px;
}
.eg-dropdown-outer .eg-dropdown li {
list-style: none;
}
.eg-dropdown-outer .eg-dropdown li a {
color: #ffffff;
font-family: Roboto, sans-serif;
font-size: 20px;
font-style: normal;
font-weight: 400;
line-height: 30px; /* 150% */
display: block;
cursor: pointer;
}
.eg-dropdown-outer {
background: #030303de;
position: fixed;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
display: none;
z-index: 9999;
}
.select-styled.eg-dropdown-active + .eg-dropdown-outer {
display: flex;
align-items: center;
}
.eg-dropdown-outer span {
color: #ffffff;
font-size: 38px;
line-height: 24px;
display: inline-block;
padding: 2px;
position: absolute;
top: 24px;
right: 24px;
}
.eg-mobile-bar .eg-nav {
display: table;
width: 100%;
text-align: center;
word-spacing: -9em;
margin-bottom: 0px !important;
padding-left: 0px;
}
.eg-mobile-bar .eg-nav li {
display: inline-block;
text-align: left;
word-spacing: normal;
}
.eg-mobile-bar .eg-nav > li:not(:last-child) {
margin-right: 15px;
}
.eg-mobile-bar .eg-navwrap.container{
margin: auto;
overflow-y: auto;
white-space: nowrap;
padding-bottom: 14px;
}
.eg-mobile-bar .eg-navwrap.container::-webkit-scrollbar {
display: none;
}
.eg-mobile-bar .eg-navwrap.container{
-ms-overflow-style: none;
scrollbar-width: none;
}
@media screen and (min-width:1024px) {
html body.eg-popup-new::before,
html body .eg-mobile-bar{
display: none;
}
}
@media screen and (max-width:1023px) {
html body.eg-popup-new{
overflow: hidden;
}
html body .eg-top-bar{
display: none;
}
}
html body:not(.sticky-nav-min) .page header .main-menu .menu-group>ul.navbar-nav>li.desktop>a,
html body .page header .main-menu .desktop.mega-nav-item.show > a,
html body .page header .main-menu .menu-group>ul.navbar-nav>li.desktop>a:hover {
color: #ffffff !important;
}
@media screen and (max-width:990px) and (min-width:768px){
html body.eg-no-banner #maincontent[role="main"] {
padding-top: 39px !important;
}
}
html body.eg-no-banner #maincontent[role="main"] {
padding-top: 24px !important;
}
@media screen and (min-width:768px){
html body .eg-cart-icon>div svg{
fill: #ffffff !important;
}
}
html body .eg-button-container .eg-button.btn {
background: #ffffff !important;
color: #000000 !important;
}
html body .eg-button-container .eg-button.btn:hover {
color: #ffffff !important;
background: linear-gradient(to bottom,#2a0024,#2a0024) !important;
}
body:not(.sticky-nav-min) .menu-group .eg-logo img{
opacity: 0;
visibility: hidden;
}
body:not(.sticky-nav-min) .menu-group .eg-logo{
background: url('https://editor-assets.abtasty.com/50844/64ff568b1e73d1694455435.svg');
background-position: center;
background-size: cover;
background-repeat: no-repeat;
}
.eg-scroll-arrow {
position: absolute;
bottom: 8%;
width: 20px;
height: 20px;
background: transparent;
transform: rotate(45deg) translateX(-50%);
left: 50%;
border: 4px solid #0000006b;
border-left: none;
border-top: none;
cursor: pointer;
}