Dakshina
var d2 = new Date();
var d1 = new Date(“10/24/” + d2.getFullYear());
var x;
if (d1 > d2) {
d1 = new Date(“10/24/” + (d2.getFullYear()-1));
}
var x= d2.getTime() – d1.getTime();
var date= Math.trunc( x / (1000 * 60 * 60 * 24) );
if (date > 183) {
date = date-182;
document.getElementById(‘ayan’).innerHTML = ‘Uttarayan’;
document.getElementById(“dak-img”).style.filter = “brightness(30)”; // rotate 85 if want green
}
document.getElementById(‘date’).innerHTML = date;
Showing the single result
Showing the single result