Free Shipping & Exclusive Coupons - Limited Time Offer
<div style="display: flex;justify-content: space-between;line-height:10px;border: 2px solid #FFFFFF;padding: 10px 10px;background: #FDF6F6;border-radius: 10px;">
<div>
<b>♥FREE Shipping Over $29♥</b>
<p>♥30 Days Money-back Guarantee♥</p>
</div>
<div>
<style>
.coupon-code {
display: block;
text-align: center;
font-family: 'Montserrat', sans-serif;
font-size: 14px;
color: #000000;
letter-spacing: 1px;
text-transform: uppercase;
}
<pre><code> .coupon-code .label {
font-family: 'Montserrat', sans-serif;
font-size: 12px;
color: #000000;
font-weight: bold;
letter-spacing: 1px;
}
.coupon-code .code {
display: flex;
justify-content: center;
margin-top: 5px;
font-family: 'Montserrat', sans-serif;
font-size: 20px;
font-weight: bold;
letter-spacing: 1px;
}
.coupon-code .code-item {
display: flex;
justify-content: center;
align-items: center;
margin: 0 10px;
background-color: #fff;
color: #FF6D6D;
padding: 8px 12px;
border-radius: 25px;
box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.coupon-extra {
text-align:center;
margin-bottom: 5px;
color: #000000;
font-family: 'Montserrat', sans-serif;
font-size: 12px;
letter-spacing: 1px;
font-weight: bold;
}
.coupon-extra span {
font-weight:bold;
color: #FF6D6D;
}
</style>
<div class="shipping-info">
<p class="coupon-code">
<span class="label">COUPON CODE:</span>
<span class="code">
<span class="code-item">SALE20</span>
<span class="code-item">SALE30</span>
</span>
</p>
<p class="coupon-extra">Use <span> SALE20 </span>Over $110 - $20. </p>
<p class="coupon-extra">Use <span>SALE30</span> Over $130 - $30. </p>
</div>
</div>
</code></pre>
</div>
<script>
function countdown() {
const countdownElement = document.getElementById("countdown");
const endDate = new Date("2023-01-01 00:00:00");
<pre><code> setInterval(() => {
const currentDate = new Date();
const timeDifference = endDate - currentDate;
const days = Math.floor(timeDifference / (1000 * 60 * 60 * 24));
const hours = Math.floor((timeDifference % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
const minutes = Math.floor((timeDifference % (1000 * 60 * 60)) / (1000 * 60));
const seconds = Math.floor((timeDifference % (1000 * 60)) / 1000);
countdownElement.innerHTML = `${days} days ${hours} hours ${minutes} minutes ${seconds} seconds`;
}, 1000);
}
countdown();
</code></pre>
</script>
<div id="countdown"></div>
原文地址: https://www.cveoy.top/t/topic/qnF3 著作权归作者所有。请勿转载和采集!