-1) { try { var siteRoot = document.querySelector(‘meta[name=”siteRoot”]’).content, store = document.querySelector(‘meta[name=”storeID”]’).content, navBar = { /* ———— Variables ———— */ ulNavigation: “”, activeTab: “”, navCreated: null, track: null, arrow: ‘ ‘, newlocation: function() { var lpath = location.href.split(“promocoes”)[1].split(“?”)[0]; if (lpath[lpath.length – 1] === “/”) { var nlpath = lpath.replace(“/”, “”); return nlpath; } else { return lpath; } }, tabs: [ { title: ‘Melhores Promoções’, img: ‘//static.lenovo.com/na/landing-pages/weekly-sale/nav/v2/lenovo-campaign-icon.svg’, img_hover: ‘//static.lenovo.com/na/landing-pages/weekly-sale/nav/v2/lenovo-campaign-icon-hover.svg’, link: siteRoot + ‘/d/promocoes’ }, { title: ‘Notebooks Para Casa’, img: ‘//static.lenovo.com/we/images/icons/dlp-tab-icons/home-laptop-black.svg’, img_hover: ‘//static.lenovo.com/we/images/icons/dlp-tab-icons/home-laptop-black.svg’, link: siteRoot + ‘/d/promocoes/casa’ }, { title: ‘Notebooks para Negócios’, img: ‘//static.lenovo.com/na/landing-pages/weekly-sale/nav/v2/lenovo-thinkpad-icon.svg’, img_hover: ‘//static.lenovo.com/na/landing-pages/weekly-sale/nav/v2/lenovo-thinkpad-icon.svg’, link: siteRoot + ‘/d/promocoes/empresas’ }, { title: ‘Notebooks Gamer & Acessórios’, img: ‘//static.lenovo.com/we/images/icons/dlp-tab-icons/gaming-laptop-black.svg’, img_hover: ‘//static.lenovo.com/we/images/icons/dlp-tab-icons/gaming-laptop-black.svg’, link: siteRoot + ‘/d/promocoes/gamer’ }, { title: ‘Desktops’, img: ‘//static.lenovo.com/na/landing-pages/weekly-sale/nav/v2/lenovo-desktop-icon.svg’, img_hover: ‘//static.lenovo.com/na/landing-pages/weekly-sale/nav/v2/lenovo-desktop-icon-hover.svg’, link: siteRoot + ‘/d/promocoes/desktops’ }, { title: ‘Workstations’, img: ‘//static.lenovo.com/we/merch-images/DLP/tab-icons/workstation-icon-black.svg’, img_hover: ‘//static.lenovo.com/we/merch-images/DLP/tab-icons/workstation-icon-hover.svg’, link: siteRoot + ‘/d/promocoes/workstations’ }, { title: ‘Monitores’, img: ‘//static.lenovo.com/na/landing-pages/weekly-sale/nav/v2/lenovo-monitor-icon.svg?asd’, img_hover: ‘//static.lenovo.com/na/landing-pages/weekly-sale/nav/v2/lenovo-monitor-icon.svg?asd’, link: siteRoot + ‘/d/promocoes/monitores’ }, { title: ‘Acessórios’, img: ‘//static.lenovo.com/na/landing-pages/weekly-sale/nav/v2/lenovo-pc-accessory-icon.svg’, img_hover: ‘//static.lenovo.com/na/landing-pages/weekly-sale/nav/v2/lenovo-pc-accessory-icon.svg’, link: siteRoot + ‘/d/promocoes/acessorios’ } ], /* ————- Methods——- forSMB: function () { if (store === ‘smbpro’) { this.tabs.splice(1, 0, { title: ‘Business Deals’, img: ‘//static.lenovo.com/na/landing-pages/weekly-sale/nav/v2/lenovo-business-icon.svg’, img_hover: ‘//static.lenovo.com/na/landing-pages/weekly-sale/nav/v2/lenovo-business-icon-hover.svg’, link: siteRoot + ‘/d/deals/business’ }, { title: ‘ThinkPad Deals’, img: ‘//static.lenovo.com/na/landing-pages/weekly-sale/nav/v2/lenovo-thinkpad-icon.svg’, img_hover: ‘//static.lenovo.com/na/landing-pages/weekly-sale/nav/v2/lenovo-thinkpad-icon-hover.svg’, link: siteRoot + ‘/d/deals/thinkpad-laptops’ }); this.tabs.pop(); } }, */ /* create style tag */ createStyle: function() { var style = this.cElement(‘style’); style.innerHTML = “#hero+.rich-text{padding:0}.searchResultContainer .searchTab .facetFilter .facetFilter-wrapper .facetFilter-item:first-of-type{border-top:none}.navigation-container{font – size:0;border-bottom:solid 1px #E3E3E3;max-width:100%}.left-arrow,.right-arrow{display:none}.nav-img{min-height:50px; max-width:50px;margin:0 auto 6px}.nav-img img:last-of-type{display:none}.ul-navigation{list-style:none;display:-webkit-box;display:flex;flex-wrap:nowrap;overflow-x:auto;margin:0;padding:12px 0 0 10px;position:relative}.track-bar{position:absolute;width:96px;height:8px;bottom:0;left:0;opacity:0;background:#1976A1}.track-bar.show{opacity:1}.track-bar.active{-webkit – transition:-webkit-transform .3s ease-in-out;transition:transform .3s ease-in-out;opacity:1}.nav-box{min-width:120px;max-width:150px;padding-bottom:15px;position:relative}.nav-box:hover .button-text,.nav-box.active .button-text{color:#1976A1}.nav-box:hover .nav-img img:last-of-type,.nav-box.active .nav-img img:last-of-type{display:block}.nav-box:hover .nav-img img:first-of-type,.nav-box.active .nav-img img:first-of-type{display:none}.button-text{font-size:13px;line-height:1.2;text-align:center;color:#000}.nav-box.active,.nav-box:hover img,.nav-box:hover{opacity:1;}.nav-box,.nav-box img{opacity:.7; transition:.2s;}@media(hover:none){.ul-navigation::-webkit-scrollbar{display:none}.ul-navigation{scrollbar – width:none}}@media(min-width:750px){.nav-box{min-width:150px;max-width:150px;padding-bottom:20px}.button-text{max – width:85%;margin:auto;font-size:14px}.ul-navigation{padding-top:20px}.track-bar{width:120px}}@media(min-width:1180px){.navigation-container{margin:auto;width:calc(100% – 40px)}.left-arrow,.right-arrow,.navigation-inner-container{display:inline-block}.left-arrow,.right-arrow{width:50px;position:relative;height:127px}.left-arrow svg,.right-arrow svg{width:15px;display:inline-block;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);fill:#CECFCE}.left-arrow::after,.right-arrow::after{content:”;position:absolute;width:30px;height:128px;right:-25px;background:-webkit-gradient(linear,left top,right top,color-stop(5%,rgba(255,255,255)),to(transparent));background:linear-gradient(to right,rgba(255,255,255) 5%,transparent);z-index:999}.right-arrow::after{background:-webkit-gradient(linear,right top,left top,color-stop(5%,rgba(255,255,255)),to(transparent));background:linear-gradient(to left,rgba(255,255,255) 5%,transparent);right:auto;left:-15px;width:30px}.left-arrow.enabled svg,.right-arrow.enabled svg{fill:#1976A1;cursor:pointer}.right-arrow svg{right:0;-webkit-transform:translateY(-50%) rotate(180deg);transform:translateY(-50%) rotate(180deg)}.navigation-inner-container{width:calc(100% – 100px);vertical-align:top;overflow:hidden}.ul-navigation{overflow:hidden;width:200%;-webkit-box-pack:justify;justify-content:space-between;padding-left:0;-webkit-transition:all .5s ease;transition:all .5s ease}.ul-navigation.slide{-webkit – transform:translateX(-50%);transform:translateX(-50%)}}@media(min-width:1920px){.navigation – container{padding:0;max-width:1730px}.ul-navigation{width:” + 150 * this.tabs.length + “px}.ul-navigation.slide{transform:translateX(-” + 150 * (this.tabs.length – 11) + “px)}}” + this.disableArrows() + this.hideScrollBarTouchDevices(); document.head.appendChild(style); this.createNavBar(document.querySelector(‘#hero’).nextElementSibling); }, /* styles when there are not arrows */ disableArrows: function() { var additionalCss = “”; if (this.tabs.length < 12) { additionalCss =…
Continue lendo em https://www.lenovo.com/br/pt/ofertas/black-friday