Advertisement
orenchuck

laline all html

Jul 29th, 2022
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.30 KB | None | 0 0
  1. "<div tabindex=\"0\" style=\"position: relative; outline: none; width: 320px; height: 206.452px; border-radius: 0px; transform-origin: center top; box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 21px 0px; top: 0px; left: 0px; background-color: rgb(255, 255, 255); max-height: 480px;\" data-shadow-distance=\"0\" id=\"adoric_smartbox_abfc2acd271cd\" role=\"alert\" aria-live=\"assertive\"><div class=\"adoric_element element-shape closeLightboxButton\" style=\"left: 10.3226px; top: 10.3226px; position: absolute; display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; -webkit-box-orient: column; -webkit-box-direction: column; -webkit-flex-direction: column; -moz-box-orient: column; -moz-box-direction: column; -ms-flex-direction: column; flex-direction: column; width: 13px; height: 13px; line-height: normal; opacity: 1; cursor: pointer; z-index: 2147483646; \" data-width=\"7\" data-height=\"7\" data-left=\"11\" data-top=\"11\" data-radius=\"0.00\"><!--?xml version=\"1.0\" encoding=\"utf-8\"?--> <svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" viewBox=\"0 0 16 16\" style=\"width: 100%; height: 100%; opacity: 1; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; -webkit-border-radius: 0px; -moz-border-radius: 0px; border-radius: 0px; font-size: 7px; \" xml:space=\"preserve\" class=\"inner-element\" width=\"100%\" height=\"100%\" preserveAspectRatio=\"none\" data-event-name=\"Conversion\" data-shadow-distance=\"0\" data-base-bg-color=\"rgb(94, 94, 94)\" onmouseover=\"var e=this.getAttribute(&quot;data-hover-bg-color&quot;),t=&quot;path, polygon, circle&quot;,n=this.querySelectorAll(&quot;path, polygon, circle, line&quot;)[0];this.setAttribute(&quot;data-base-bg-color&quot;,n.getAttribute(&quot;fill&quot;)||n.getAttribute(&quot;stroke&quot;)||n.style.fill),Array.prototype.forEach.call(this.querySelectorAll(t),function(t){t.setAttribute(&quot;fill&quot;,e)})\" onmouseout=\"var e=this.getAttribute(&quot;data-base-bg-color&quot;),t=&quot;path, polygon, circle&quot;;Array.prototype.forEach.call(this.querySelectorAll(t),function(t){t.setAttribute(&quot;fill&quot;,e)})\" data-hover-bg-color=\"rgb(137, 137, 137)\" data-width=\"NaN\" data-height=\"NaN\" data-left=\"NaN\" data-top=\"NaN\"> <polygon style=\"\" points=\"15.778,2.343 13.657,0.222 8,5.879 2.343,0.222 0.222,2.343 5.879,8 0.222,13.657 \t2.343,15.778 8,10.121 13.657,15.778 15.778,13.657 10.121,8 \" fill=\"rgb(94, 94, 94)\" data-init-color=\"rgb(94, 94, 94)\"></polygon> </svg> </div><div class=\"adoric_element element-text\" style=\"left: 48.8828px; top: 15.0625px; width: 223px; height: auto; position: absolute; cursor: auto; text-align: right; font-size: 0px; opacity: 1; min-height: 0px; z-index: 59; direction: unset; \" data-width=\"118\" data-height=\"37\" data-left=\"670\" data-top=\"53\"><span class=\"inner-element\" data-gramm=\"false\" data-event-name=\"Conversion\" data-shadow-distance=\"0\" style=\"color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: 1; font-family: AlmoniTzarAAA-Bold, sans-serif, Assistant; white-space: unset; overflow-wrap: break-word; display: block; opacity: 1; vertical-align: top; letter-spacing: 0em; margin-right: 0em; text-shadow: none; direction: rtl; \" data-width=\"NaN\" data-height=\"NaN\" data-left=\"NaN\" data-top=\"NaN\">It looks like you have left items in your shopping cart</span></div><div class=\"adoric_element element-shape\" data-radius=\"0.00\" style=\"left: 13.6774px; top: 35.6129px; width: 261.677px; position: absolute; height: 0.516129px; line-height: 0; opacity: 1; z-index: 70; \" data-width=\"508\" data-height=\"5\" data-left=\"25\" data-top=\"98\"><!--?xml version=\"1.0\" encoding=\"utf-8\"?--> <!-- Generated by IcoMoon.io --> <svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"100%\" height=\"100%\" viewBox=\"0 0 500 500\" class=\"inner-element\" preserveAspectRatio=\"none\" style=\"width: 100%; height: 100%; opacity: 1; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; -webkit-border-radius: 0px; -moz-border-radius: 0px; border-radius: 0px; font-size: 7px; \" data-event-name=\"Conversion\" data-shadow-distance=\"0\" data-base-bg-color=\"rgb(243, 243, 243)\" data-width=\"NaN\" data-height=\"NaN\" data-left=\"NaN\" data-top=\"NaN\"> <g id=\"icomoon-ignore\"> </g> <path d=\"M0 0h500v500h-500v-500z\" fill=\"rgb(243, 243, 243)\" style=\"\" data-init-color=\"rgb(243, 243, 243)\"></path> </svg> </div><div class=\"adoric_element element-image element-is-cropped\" style=\"left: -302px; top: 31.9844px; width: 260px; height: 133px; line-height: 0; position: absolute; opacity: 1; z-index: 73; overflow: hidden; -webkit-border-radius: 0px; -moz-border-radius: 0px; border-radius: 0px; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; \" data-radius=\"0.00\" data-width=\"260\" data-height=\"133\" data-left=\"19\" data-top=\"32\"><picture><source srcset=\"https://storage.googleapis.com/adoric-user-images/bbd4310e-4331-46b1-967f-4b40cb28bce7.png.webp\" type=\"image/webp\"><img class=\"inner-element\" src=\"https://storage.googleapis.com/adoric-user-images/bbd4310e-4331-46b1-967f-4b40cb28bce7.png\" style=\"width: 258.908px; height: 221px; -o-object-fit: cover; object-fit: cover; opacity: 1; -webkit-border-radius: 0px; -moz-border-radius: 0px; border-radius: 0px; position: absolute; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; left: 0px; top: -91px; \" data-event-name=\"Conversion\" data-width=\"258.9075630252101\" data-height=\"221\" data-left=\"0\" data-top=\"-91\"></picture></div><div class=\"adoric_element element-group\" data-items=\"2\" style=\"left: 100.844px; top: 171px; position: absolute; width: 119px; height: 27px; opacity: 1; z-index: 74; \"><div class=\"element-image adoric-inner-group\" data-radius=\"0.00\" style=\"left: 0.0029375px; top: 0px; width: 119px; height: 27px; line-height: 0; position: absolute; opacity: 1; z-index: 58;\" data-width=\"148\" data-height=\"34\" data-left=\"146\" data-top=\"344\"><img class=\"inner-element\" src=\"https://static.adoric.com/1550672680829_7hlztca9ku/Asset_1.png\" data-event-name=\"Conversion\" data-shadow-distance=\"0\" style=\"width: 100%; height: 100%; opacity: 1; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; -webkit-border-radius: 0px; -moz-border-radius: 0px; border-radius: 0px; font-size: 7px; \" data-width=\"NaN\" data-height=\"NaN\" data-left=\"NaN\" data-top=\"NaN\"></div><div class=\"element-text adoric-inner-group\" style=\"left: 10.3359px; top: 8px; width: 99px; height: auto; position: absolute; cursor: auto; text-align: center; font-size: 0px; opacity: 1; min-height: 0px; z-index: 64; direction: unset;\" data-width=\"99\" data-height=\"12\" data-left=\"121\" data-top=\"176\"><span class=\"inner-element\" data-gramm=\"false\" data-event-name=\"Conversion\" data-shadow-distance=\"0\" style=\"color: rgb(255, 255, 255); font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: 1; font-family: AlmoniTzarAAA-ExtraLight, sans-serif; white-space: unset; overflow-wrap: break-word; display: block; opacity: 1; vertical-align: top; letter-spacing: 0em; margin-right: 0em; text-shadow: none; direction: rtl; \" data-height=\"203\" data-left=\"NaN\" data-top=\"-83\">Go to Cart</span></div></div><div class=\"adoric_element element-group\" data-items=\"3\" style=\"left: 285px; top: 8.5625px; position: absolute; width: 27px; height: 23px; opacity: 1; z-index: 76; \" data-width=\"27\" data-height=\"23\" data-left=\"279\" data-top=\"12\"><div class=\"element-image adoric-inner-group\" data-radius=\"0.00\" style=\"left: 0px; top: 0px; width: 27px; height: 23.8235px; line-height: 0; position: absolute; opacity: 1; z-index: 61;\" data-width=\"31\" data-height=\"28\" data-left=\"533\" data-top=\"46\"><img class=\"inner-element\" src=\"https://static.adoric.com/1550673075979_2y4kidq4fyy/bag.png\" data-event-name=\"Conversion\" data-shadow-distance=\"0\" style=\"width: 100%; height: 100%; opacity: 1; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; -webkit-border-radius: 0px; -moz-border-radius: 0px; border-radius: 0px; \" data-left=\"NaN\" data-top=\"NaN\"></div><div class=\"element-shape adoric-inner-group\" data-radius=\"0.00\" style=\"left: 6.75px; top: 7.94118px; width: 13.5px; position: absolute; height: 12.7059px; line-height: 0; opacity: 1; z-index: 62;\" data-width=\"21\" data-height=\"20\" data-left=\"538\" data-top=\"53\"><!--?xml version=\"1.0\" encoding=\"utf-8\"?--> <!-- Generator: Adobe Illustrator 15.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" width=\"100%\" height=\"100%\" viewBox=\"0 0 500 500\" enable-background=\"new 0 0 500 500\" xml:space=\"preserve\" class=\"inner-element\" preserveAspectRatio=\"none\" style=\"width: 100%; height: 100%; opacity: 1; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; -webkit-border-radius: 0px; -moz-border-radius: 0px; border-radius: 0px; \" data-event-name=\"Conversion\" data-shadow-distance=\"0\" data-base-bg-color=\"rgb(0, 0, 0)\" data-left=\"NaN\" data-top=\"NaN\"> <path fill=\"rgb(0, 0, 0)\" d=\"M250-1c138.066,0,250,111.929,250,250c0,138.066-111.934,250-250,250C111.929,499,0,387.066,0,249 \tC0,110.929,111.929-1,250-1z\" style=\"\" data-init-color=\"rgb(0, 0, 0)\"></path> </svg> </div><div class=\"element-text adoric-inner-group\" style=\"left: 4.89812px; top: 10.3235px; width: 17.2059px; height: auto; position: absolute; cursor: auto; text-align: center; font-size: 0px; opacity: 1; min-height: 0px; z-index: 63;\" data-width=\"15\" data-height=\"10\" data-left=\"623\" data-top=\"84\"><span class=\"inner-element\" id=\"adoricProductsQttItem\" data-gramm=\"false\" data-event-name=\"Conversion\" data-shadow-distance=\"0\" style=\"color: rgb(255, 255, 255); font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.94118px; line-height: 1; font-family: Arial, Helvetica, sans-serif; white-space: unset; overflow-wrap: break-word; display: block; opacity: 1; vertical-align: top; letter-spacing: 0em; margin-right: 0em; text-shadow: none; \" data-left=\"NaN\" data-top=\"NaN\">1</span></div></div><div class=\"adoric_element element-embed\" style=\"width: 275px; height: 119px; position: absolute; left: 23.5px; top: 39.4844px; opacity: 1; z-index: 78; \" data-width=\"275\" data-height=\"119\" data-left=\"24\" data-top=\"35\"><div class=\"inner-element\" style=\"\" data-event-name=\"Conversion\" data-left=\"NaN\" data-top=\"NaN\"><style>#adoric_smartbox_abfc2acd271cd #adoricCartWrapper .adoricCartTitle { text-align: center; color: rgb(0, 0, 0); font-size: 18px; font-family: \"Almoni Neue DL 4.0 AAA Light\", sans-serif; } #adoric_smartbox_abfc2acd271cd #adoricCartWrapper .productsListWrapper { max-height: 200px; overflow: auto; direction: ltr; margin-top: 5px; } #adoric_smartbox_abfc2acd271cd #adoricCartWrapper { height: 250px; overflow: hidden; } #adoric_smartbox_abfc2acd271cd #adoricCartWrapper .itemWrapper { display: flex; } #adoric_smartbox_abfc2acd271cd #adoricCartWrapper .imageItemWrapper { max-width: 70px; } #adoric_smartbox_abfc2acd271cd #adoricCartWrapper .imageItemWrapper a { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; } #adoric_smartbox_abfc2acd271cd #adoricCartWrapper .imageItemWrapper a img { width: 100%; } #adoric_smartbox_abfc2acd271cd #adoricCartWrapper .productsDescItem { display: inline-block; } #adoric_smartbox_abfc2acd271cd #adoricCartWrapper .productsDescItem input { border: 1px solid #e6e6e6; height: 30px; width: 45px; text-align: center; margin-top: 35px; } #adoric_smartbox_abfc2acd271cd #adoricCartWrapper .productsQt { min-width: 65px; } #adoric_smartbox_abfc2acd271cd #adoricCartWrapper .productsDesc { min-width: 120px; max-width: 120px; } #adoric_smartbox_abfc2acd271cd #adoricCartWrapper ul.productsDescItem { padding-bottom: 25px; padding-left: 5px; text-align: left; font-size: 12px; } #adoric_smartbox_abfc2acd271cd #adoricCartWrapper .oldPrice { text-decoration: line-through; color: rgb(192, 192, 192); } #adoric_smartbox_abfc2acd271cd #adoricCartWrapper .actualPrice { font-weight: 900; } #adoric_smartbox_abfc2acd271cd #adoricCartWrapper .block-content.padding { padding: 10px 20px; font-size: 11px; font-weight: 100; text-align: center; color: rgb(0, 0, 0); font-family: \"Almoni Neue DL 4.0 AAA Light\", sans-serif; background: #f6f6f6; } </style> <div id=\"adoricCartWrapper\"> </div> <script> (function() { var cartHtml = document.getElementById('header-cart').innerHTML; var d = document.createElement('div'); d.innerHTML = cartHtml; var cartPageURL = 'https://www.laline.com/checkout/cart'; var parser = new DOMParser(); var doc = ''; var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function() { if (this.readyState === 4) { doc = parser.parseFromString(this.responseText, 'text/html'); var products = doc.querySelectorAll('.cart_item'); var totalPrice = d.querySelector('.block-content.padding'); var productsTitle = '<div class=\"adoricCartTitle\">My Cart</div>'; var productsList = ''; var productsTotalPrice = d.querySelector('.block-content.padding') ? d.querySelector('.block-content.padding').outerHTML : ''; var itemsQtt = document.querySelector('.w_badge .badge').innerText; var adoricProductsQttItem = document.getElementById('adoricProductsQttItem'); console.log('adoricProductsQttItem', adoricProductsQttItem); adoricProductsQttItem.innerText = itemsQtt; products.forEach(function(elem) { var itemImage = elem.querySelector('a img') ? elem.querySelector('a img').src : ''; var itemLink = elem.querySelector('a') ? elem.querySelector('a').href : ''; var productName = elem.querySelector('.product-cart-info a') ? elem.querySelector('.product-cart-info a').innerText : ''; var itemColor = elem.querySelector('.product-cart-info .color') ? elem.querySelector('.product-cart-info .color').outerHTML : ''; var actualPrice = elem.querySelector('strong .price') ? elem.querySelector('strong .price').innerText : elem.querySelector('.price .price').innerText; var oldPrice = elem.querySelector('.old-price .price .price') ? elem.querySelector('.old-price .price .price').innerText : ''; var qt = elem.querySelector('select') ? elem.querySelector('select').value : ''; productsList += '<li class=\"itemWrapper\">' + '<div class=\"productsDescItem imageItemWrapper\">' + '<a href=\"' + itemLink + '\">' + '<img src=\"' + itemImage + '\">' + '</a>' + '</div>' + '<ul class=\"productsDescItem productsDesc\">' + '<li class=\"productName\"><a href=\"' + itemLink + '\">' + productName + '</li>' + '<li class=\"colorWrapper\">' + itemColor + '</li>' + '<li><span class=\"oldPrice\">' + oldPrice + '&nbsp;</span>' + '<span class=\"actualPrice\">' + actualPrice + '</span></li>' + '</ul>' + '<div class=\"productsDescItem productsQt\"> <input type=\"number\" disabled value=\"' + qt + '\"> </div>' + '</li>'; }); var productsTemp = '<ul class=\"productsListWrapper\">' + productsList + '</ul>' + productsTotalPrice; var adoricCartWrapper = document.getElementById('adoricCartWrapper'); adoricCartWrapper.innerHTML = productsTemp; } }); xhr.open('GET', cartPageURL); xhr.setRequestHeader('cache-control', 'no-cache'); xhr.send(data); })(); </script></div></div></div>"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement