", {
"class": "contrib-column contrib-column-first table-column"
, html: `
", {
"class": "contrib-column table-column"
, html: `
Longest streak
${printDayCount(parsed.longest_streak)}
${longestStreakInfo}`
})
, thirdCol = $("
", {
"class": "contrib-column table-column"
, html: `Current streak
${printDayCount(parsed.current_streak)}
${currentStreakInfo}`
})
cal.appendChild(firstCol)
cal.appendChild(secondCol)
cal.appendChild(thirdCol)
}
container.innerHTML = cal.innerHTML
// If options includes tooltips, add tooltips listeners to SVG
if (options.tooltips === true) {
addTooltips(container)
}
}
}).catch(e => console.error(e))
return fetchCalendar()
}