'; // add week number\n\n if (this.showWeekNumbers) html += '' + calendar[row][0].week() + ' | ';else if (this.showISOWeekNumbers) html += '' + calendar[row][0].isoWeek() + ' | ';\n\n for (var col = 0; col < 7; col++) {\n var classes = []; //highlight today's date\n\n if (calendar[row][col].isSame(new Date(), \"day\")) classes.push('today'); //highlight weekends\n\n if (calendar[row][col].isoWeekday() > 5) classes.push('weekend'); //grey out the dates in other months displayed at beginning and end of this calendar\n\n if (calendar[row][col].month() != calendar[1][1].month()) classes.push('off', 'ends'); //don't allow selection of dates before the minimum date\n\n if (this.minDate && calendar[row][col].isBefore(this.minDate, 'day')) classes.push('off', 'disabled'); //don't allow selection of dates after the maximum date\n\n if (maxDate && calendar[row][col].isAfter(maxDate, 'day')) classes.push('off', 'disabled'); //don't allow selection of date if a custom function decides it's invalid\n\n if (this.isInvalidDate(calendar[row][col])) classes.push('off', 'disabled'); //highlight the currently selected start date\n\n if (calendar[row][col].format('YYYY-MM-DD') == this.startDate.format('YYYY-MM-DD')) classes.push('active', 'start-date'); //highlight the currently selected end date\n\n if (this.endDate != null && calendar[row][col].format('YYYY-MM-DD') == this.endDate.format('YYYY-MM-DD')) classes.push('active', 'end-date'); //highlight dates in-between the selected dates\n\n if (this.endDate != null && calendar[row][col] > this.startDate && calendar[row][col] < this.endDate) classes.push('in-range'); //apply custom classes for this date\n\n var isCustom = this.isCustomDate(calendar[row][col]);\n\n if (isCustom !== false) {\n if (typeof isCustom === 'string') classes.push(isCustom);else Array.prototype.push.apply(classes, isCustom);\n }\n\n var cname = '',\n disabled = false;\n\n for (var i = 0; i < classes.length; i++) {\n cname += classes[i] + ' ';\n if (classes[i] == 'disabled') disabled = true;\n }\n\n if (!disabled) cname += 'available';\n html += '' + calendar[row][col].date() + ' | ';\n }\n\n html += '
';\n }\n\n html += '