`
month++
}
function dayLabels()
{
let html = "";
let y = 0;
for(i = 0; i < 7; i++)
{
y = i * 14;
html += `${dayNames[i].substr(0,1)}`
}
return html;
}
function populateMonth(month)
{
html = "";
monthLength = new Date(year, month+1, 0).getDate();
let date = 0;
let x = 0;
let y = 0;
while(date < monthLength)
{
x += 14;
let week = 0
while(week < 7 && date != monthLength)
{
y = week * 14;
let day = new Date(year, month, date);
console.log(day);
console.log(new Date().getMonth());
if(day.getDay() != week)
{
style = "null";
date--
}
else if(day == new Date())
{
style = "today";
}
else
{
style = "day";
}
html += ``
week++
date++
count++
}
}
return html;
}
}