test

//‘; var whatsappShareButton = document.createElement(“a”); whatsappShareButton.classList.add(“whatsapp-share-button”); whatsappShareButton.innerHTML = ‘‘; var twitterShareButton = document.createElement(“a”); twitterShareButton.classList.add(“twitter-share-button”); twitterShareButton.innerHTML = ‘‘; var copyButton = document.createElement(“a”); copyButton.classList.add(“copy-button”); copyButton.textContent = “Copy”; shareButtonsContainer.prepend(document.createTextNode(“Share:”)); shareButtonsContainer.append(facebookShareButton, whatsappShareButton, twitterShareButton, copyButton); blockquote.appendChild(shareButtonsContainer); facebookShareButton.addEventListener(“click”, function() { window.open(“https://www.facebook.com/sharer/sharer.php?u=” + encodeURIComponent(window.location.href) + “&quote=” + encodeURIComponent(encodeURIComponent(quote)) + “&hashtag=%23quotes”, “facebook-share-dialog”, “width=626,height=436”); return false; }); whatsappShareButton.addEventListener(“click”, function() { window.open(“https://wa.me/?text=” + encodeURIComponent(quote), “_blank”); return false; }); twitterShareButton.addEventListener(“click”, function() { window.open(“https://twitter.com/intent/tweet?text=” + encodeURIComponent(quote) + “&hashtags=quotes”, “twitter-share-dialog”, “width=626,height=436”); return false; }); copyButton.addEventListener(“click”, function() { var copyTextarea = document.createElement(“textarea”); document.body.appendChild(copyTextarea); copyTextarea.value = quote; copyTextarea.select(); document.execCommand(“copy”); copyTextarea.remove(); this.textContent = “Copied”; this.style.backgroundColor = “green”; setTimeout((function() { this.textContent = “Copy”; this.style.backgroundColor = “”; }).bind(this), 1000); }); }); }); //]]>

Shopping Cart