if ((window.location.pathname).indexOf('/cart') > -1) { let cartForm = document.querySelectorAll('form[action^="/cart"]')[0]; let cartDiv = document.createElement('div'); let htmlCode = '
' + '
' + ' ' + '
' + ' Product shipping is a fast rising source of carbon emissions. ' + '
Be part of the solution! Learn More
' + '
' + '
' + '
' + ' ' + '
Balance Your
CO2 Footprint' + '
' + '
' + ' ' + '
Support Green
Projects' + '
' + '
' + ' ' + '
Carbon Neutral
Shipping' + '
' + '
' + '
' + '
' + ' Click to
Reduce CO2' + '
' + ' adds $0.75' + '
' + '
' + '
' + '
' + '
Take Action and Join the Fight Against Climate Change!
' + '
- Reduce your climate impact and help our planet
' + '
- Each $1.00 reduces 220 lbs (100kg) worth of CO2
' + '
- Your funds support renewable energy and forest conservation
' + '
- All projects and CO2 reductions are independently verified
' + '
1PLANET Carbon Offset is powered by blockchain
technology for instant verification of your climate action.
' + '
' + '
' + '
    ' + '
  • ' + '
  • ' + '
  • ' + '
  • ' + '
  • ' + '
  • ' + '
' + '
' + '' + '
' + '
Join 686 people that have offset 747,169 lbs of CO2 and counting!
' + '
'; var head = document.getElementsByTagName('head')[0]; var link = document.createElement('link'); link.id = '1planet'; link.rel = 'stylesheet'; link.type = 'text/css'; link.href = 'https://www.1planet.network/css/1planet1.css'; link.media = 'all'; head.appendChild(link); cartDiv.innerHTML = htmlCode ; let position = "1" ; if(position==1) { cartForm.insertBefore(cartDiv.firstChild,cartForm.firstChild); } else { cartForm.insertBefore(cartDiv.firstChild,cartForm.lastChild); var nForm = document.getElementsByClassName('nContainer')[0]; nForm.style.marginTop='15px'; } var button = document.getElementById("nLearnLink"); button.addEventListener("click",function(e){ document.getElementById("nContent").classList.toggle("nHide"); document.getElementById("nPowered").classList.toggle("nHide"); },false); var slides = document.querySelectorAll('#nSlides .nSlide'); var currentSlide = 0; var slideInterval = setInterval(nextSlide,3500); function nextSlide() { slides[currentSlide].className = 'nSlide'; currentSlide = (currentSlide+1)%slides.length; slides[currentSlide].className = 'nSlide showing'; } function addCart() { var formData = new FormData(); formData.append("quantity", 1); formData.append("id", 39283103957144); var xmlHttp = new XMLHttpRequest(); xmlHttp.onreadystatechange = function () { if (xmlHttp.readyState == 4 && xmlHttp.status == 200) { console.log(xmlHttp.responseText); location.reload(); } } xmlHttp.open("post", "/cart/add.js"); xmlHttp.send(formData); } } else { console.log('cart-page'); }