Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var priceWidths = document.querySelectorAll(".flex-left");
- for (var i = 0; i < priceWidths.length; i++) {
- if (typeof priceWidths[i].querySelectorAll(".first-price .big")[0] !== "undefined") {
- var priceWidth = priceWidths[i].querySelectorAll(".first-price .small-price")[0].offsetWidth;
- }
- var popupIcon = priceWidths[i].querySelectorAll(".slider-ln-popup")[0];
- if (typeof popupIcon !== "undefined") {
- popupIcon.style.width = "20px";
- popupIcon.style.right = 0;
- popupIcon.style.transform = "translate(-" + (priceWidth - 20) + "px, 15px)";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement