Professional Documents
Culture Documents
<script>
function convertDate(e) {
var t, o = new Date(e);
return [(t = o.getDate(), t < 10 ? "0" + t : t)].join("/")
}
function getMesExtenso(e) {
var t = new Array(12);
return t[0] = "janeiro", t[1] = "fevereiro", t[2] = "março", t[3] = "abril",
t[4] = "maio", t[5] = "junho", t[6] = "julho", t[7] = "agosto", t[8] = "setembro",
t[9] = "outubro", t[10] = "novembro", t[11] = "dezembro", t[e]
}
jQuery(document).ready(function(e) {
var t = new Date,
o = t.setDate(t.getDate() + 20),
n = t.setDate(t.getDate() - 7),
r = getMesExtenso(t.getMonth());
if (convertDate(o) > convertDate(n)) var a = "<strong>" + convertDate(n) +
"</strong> e <strong>" + convertDate(o) + " de " + r + "</strong>";
else {
if (null == (s = getMesExtenso(t.getMonth() + 1))) var s =
getMesExtenso(t.getMonth() - 11);
a = "<strong>" + convertDate(n) + " de " + r + "</strong> e <strong>" +
convertDate(o) + " de " + s + "</strong>"
}
e.getJSON("https://wtfismyip.com/json", function(t) {
var o = (t = t.YourFuckingLocation).replace(", Brazil", "");
e(".custom-address").html("<font color='#636363'><b>Frete Grátis essa
semana</b></font> para <strong><font color='#636363'>" + o + " e
Região</font></strong>"), e(".shipping-estimated").html("Entrega estimada entre " +
a + "."), e(".shipping-preview-loading").hide()
})
});
</script>