text: var AttendanceCalendar=function(){function t(t,a,e,n,i){this.divContainer=t,this.attendanceList=i,this.month=a,this.year=e,this.month_index=n}return t.prototype.Create=function(){var t=document.createElement("table");t.className="attendance-calendar",this.divContainer.append(t);var a=document.createElement("tr");a.innerHTML="<td colspan='7' class='calender-for-month'>"+this.month+"&nbsp;"+this.year+"</td>",t.append(a);var e=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],n="";e.forEach(function(t){n+="<th class='week-days'>"+t+"</th>"});var i=document.createElement("tr");i.innerHTML=n,t.append(i);var d=0,s=new Date,r=s.getDate()+""+s.getMonth()+s.getFullYear();s=null;for(var c=0;c<6;c++){for(var h=document.createElement("tr"),l=0;l<7;l++){this.day=this.attendanceList[d];var o=document.createElement("td");if(o.classList.add("day"),null!=this.day){var v=!1;if(this.day.weekDay==e[l]){var y=document.createElement("div");y.classList.add("details");var m="";m+="<div class='date'>"+this.day.monthDay+"</div><div class='tag'>"+this.day.tag+"</div>","00.00"!=this.day.inTime?m+="<div class='in'>&gt; "+this.day.inTime+"</div>":m+="<div class='in'>&nbsp;</div>","00.00"!=this.day.outTime?m+="<div class='out'>&lt; "+this.day.outTime+"</div>":m+="<div class='out' colspan='2'>&nbsp;</div>",r==this.day.monthDay+""+this.month_index+parseInt(this.year)&&o.classList.add("today"),y.innerHTML=m,o.append(y),d++,v=!0}("Sun"==e[l]&&!v||"WOFF"==this.day.tag||"H"==this.day.tag)&&o.classList.add("holiday")}else"Sun"==e[l]&&o.classList.add("holiday");h.append(o)}t.append(h)}},t}(),Day=function(){};