var d = new Date();
var deliveryDate = new Date();
deliveryDate.setDate(d.getDate() + 14);
document.getElementById("demo").innerHTML = deliveryDate;
$(document).ready(function(){
var months = ['January','February','March','April','May','June','July','August','September','October','November','December'];
var days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
var d = new Date();
var z = new Date();
z.setDate(d.getDate() + 14);
var day = z.getDay();
var month = z.getMonth();
var dd = days[day];
var mm = months[month];
var num = z.getDate();
var ntxt = num.toString();
var full = "FREE DELIVERY by " + dd + ", " + mm + " " + ntxt;
if ($("div:contains('FREE DELIVERY within 2 weeks')").length) {
$(".d-product-display-text").each(function() {
var text = $(this).text();
text = text.replace("FREE DELIVERY within 2 weeks", full);
$(this).text(text);
});
};
});
$(".d-product-tags-element").each(function() {
if ($(this).attr("href") == "/shop/tags/canon-promo") {
$(this).hide();
}});