Salahadeen Center of Nashville
Salahadeen Center of Nashville (SCN) was established in 1998 in Nashville, TN. SCN is a membership organization registered in the State of Tennessee as a non-profit, tax-exempt organization. SCN’s main objectives are the upbringing of Muslim children and serving the community. What was once a small community center, it is now one of the largest Muslim community centers in Nashville area, it serves South Nashville, and towns to the south of Nashville, such as Antioch, Smyrna, La Vergne, and Nolensville.
Since its establishment, the center members have grown significantly. The center now owns three buildings: the main prayer building is located in 364 Elysian Fields Court, and it serves as the main prayer and activity building. The second building is used for the Center’s Sunday School Program, Children Library and Youth Programs. The third building is rented out and is a grocery store. The Sunday school was established a few months after the opening of the Center with the purpose of building a strong Muslim character, strong faith and knowledge….MORE
– 12:00
– 01:00
var json = []; var montharr = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; var daysarr = ["31","28","31","30","31","30","31","31","30","31","30","31"];
var weekCalllastDate=[];
function weekCal(a=null,b=null){
var d = new Date();//2022,7,7); if(a!=null){ var splitPassedDate = a.split("-"); d = new Date(splitPassedDate[2],(splitPassedDate[1]-1),splitPassedDate[0]); if(b==1){ d.setDate(d.getDate() + 1); }else{ d.setDate(d.getDate() - 1); } } var dateArr = []; dateArr[d.getDay()]=d.getDate()+"-"+(d.getMonth()+1)+"-"+d.getFullYear();
var curdate = d.getDate(); var curm =d.getMonth(); var curfy= d.getFullYear();
var date = curdate; var m =curm; var fy= curfy;
//backward for(var i=d.getDay()-1;i>=0;--i){ date-=1;
if(date==0){ m-=1; if(m==-1){ fy-=1; m=11; } date=daysarr[m];
} dateArr[i]=date+"-"+(m+1)+"-"+fy; }
//forward for(var i=dateArr.length;i<7;i++){ curdate+=1; if(daysarr[m]
weekCalllastDate[0]=dateArr[0]; weekCalllastDate[1]=dateArr[dateArr.length-1];
var myweekDynamicTable = document.getElementById("myweekDynamicTable"); myweekDynamicTable.innerHTML="";
var table = document.createElement("TABLE"); table.setAttribute("class","table");
var tableHead =document.createElement("THEAD"); tableHead.id="theadcal1"; table.appendChild(tableHead);
var tr = document.createElement("TR");
tableHead.appendChild(tr);
var warr = ["S","M","T","W","T","F","S"];
for(var i=0;i
}else{ div.setAttribute("class","todaysdate"); div.setAttribute("style","margin:auto;margin-top:8px;"); if(attrjs["accentcolor_1"]!=""){ div.style.backgroundColor=attrjs["accentcolor_1"]; }
} temp=1; } } } if(!temp){ if(eventsarr.length>0){ div =eventsOnCal(dates[0],0,td.style.backgroundColor,eventsarr); div.style.backgroundColor=td.style.backgroundColor; td.style.padding="0px"; td.style.fontSize="unset"; //td.appendChild(div);
}else{ div.setAttribute("class","circledDate"); if(screen.width>780) div.setAttribute("style","margin:auto;margin-top:8px;"); else div.setAttribute("style","margin:auto;margin-top:8px;"); div.style.fontSize="13px"; } }
td.appendChild(div);//document.createTextNode(k));
if(dates[0]==1){ var divNewMonth = document.createElement("DIV"); divNewMonth.innerHTML=montharr[dates[1]-1]; divNewMonth.setAttribute("style","font-size:13px;text-align:center;"); td.appendChild(divNewMonth); }
tr.appendChild(td);
if(attrjs["accentcolor_2"]!=""){ if(j%2==0) td.style.backgroundColor=attrjs["accentcolor_2"]; }
}
tableBody.appendChild(tr);
myweekDynamicTable.appendChild(table);
onloadCalmob(1000);
var splitPassedDate = weekCalllastDate[0].split("-"); var splitedPassedDate = new Date(splitPassedDate[2],splitPassedDate[1]-1,splitPassedDate[0]);
document.getElementById("curmonthyear").innerHTML = montharr[splitedPassedDate.getMonth()]+", "+splitedPassedDate.getFullYear(); document.getElementById("curmonthyear-768").innerHTML = montharr[splitedPassedDate.getMonth()]+", "+splitedPassedDate.getFullYear();
}
var whichSelectemw=1; function changeCal(){ if(document.getElementById("myweekDynamicTable").style.display=="none"){ document.getElementById("myweekDynamicTable").style.display="block"; document.getElementById("myDynamicTable").style.display="none"; weekCal(); whichSelectemw=0; }else{ document.getElementById("myweekDynamicTable").style.display="none"; document.getElementById("myDynamicTable").style.display="block"; whichSelectemw=1; } }
function showOverlay(a,eventsarr,am,b){ document.getElementById("trailOverlay").style.display=a;
if(a=="block"){ document.getElementById("modaltitle").innerHTML=json[b].title;
var kl = json[b].start.split(" ")[1].split(":"); var kl1 = json[b].end.split(" ")[1].split(":");
document.getElementById("startTime").innerHTML=kl[0]+":"+kl[1]; document.getElementById("endTime").innerHTML=kl1[0]+":"+kl1[1]; document.getElementById("modeldiscription").innerHTML =json[b].description; document.getElementById("modelimage").src = (json[b].eventBannerImage!=null) ? json[b].eventBannerImage : "";
if(attrjs["fontfamily"]!=""){ document.getElementById("trailOverlay").style.fontFamily=attrjs["fontfamily"]; document.getElementById("timingDiv").style.fontFamily=attrjs["fontfamily"]; document.getElementById("maintrailoverlay").style.fontFamily=attrjs["fontfamily"]; document.getElementById("startTime").style.fontFamily=attrjs["fontfamily"]; document.getElementById("endTime").style.fontFamily=attrjs["fontfamily"];
}
if(attrjs["accentcolor_1"]!=""){ document.getElementById("trailOverlayClose").style.backgroundColor=attrjs["accentcolor_1"];
document.getElementById("modaltitle").style.color=attrjs["accentcolor_1"];
document.getElementById("modaldatetitle").style.color=attrjs["accentcolor_1"]; //}
// if(attrjs["accentcolor_2"]!=""){
document.getElementById("maintrailoverlay").style.color=attrjs["accentcolor_1"]; }
} }
function showOverlayMob(a,b,eventsarr,c){
document.getElementById("trailOverlaymob").style.display=a; document.getElementById("maintrailoverlaymob").innerHTML="";
if(c==1){ document.getElementById("maintrailoverlaymob").style.maxHeight="400px"; //document.getElementById("maintrailoverlaymob").style.marginTop="100px"; }
if(a=="block"){
var array = eventsarr.split(",");
document.getElementById("modaldatetitlemob").innerHTML=b+" "+document.getElementById("curmonthyear-768").innerHTML;
if(attrjs["accentcolor_1"]!=""){ document.getElementById("modaldatetitlemob").style.color=attrjs["accentcolor_1"]; document.getElementById("trailOverlaymobClose").style.backgroundColor=attrjs["accentcolor_1"];
}
for(var i=0;i
}
var date = new Date(); var myTableDiv = document.getElementById("myDynamicTable"); document.getElementById("curmonthyear").innerHTML = montharr[date.getMonth()]+", "+date.getFullYear(); document.getElementById("curmonthyear-768").innerHTML = montharr[date.getMonth()]+", "+date.getFullYear();
function addTable(d) { myTableDiv.innerHTML="";
var daysarr = ["31","28","31","30","31","30","31","31","30","31","30","31"]; var days= (d.getMonth()==1) ? (d.getFullYear()%4==0) ? String(parseInt(daysarr[1])+1)-1 : daysarr[1]-1 : daysarr[d.getMonth()]-1;
var table = document.createElement("TABLE"); table.setAttribute("class","table");
var tableHead =document.createElement("THEAD"); tableHead.id="theadcal"; table.appendChild(tableHead);
var tr = document.createElement("TR");
tableHead.appendChild(tr);
var warr = ["S","M","T","W","T","F","S"];
for(var i=0;i
var div =eventsOnCal(k,1,td.style.backgroundColor,eventsarr); div.style.backgroundColor=td.style.backgroundColor; td.style.padding="0px"; td.style.fontSize="unset"; td.appendChild(div);
}else{ var div = document.createElement("DIV"); div.setAttribute("class","todaysdate"); if(screen.width>780) div.setAttribute("style","margin:8px;"); else div.setAttribute("style","margin:auto;margin-top:8px;");
if(attrjs["accentcolor_1"]!=""){ div.style.backgroundColor=attrjs["accentcolor_1"]; } div.innerHTML=k; c td.appendChild(div); } temp=1; } } } if(!temp){
if(anyevents>0){
var div =eventsOnCal(k,0,td.style.backgroundColor,eventsarr); div.style.backgroundColor=td.style.backgroundColor;
td.style.padding="0px"; td.style.fontSize="unset"; td.appendChild(div);
}else{
var div = document.createElement("DIV"); div.innerHTML=k; div.setAttribute("class","circledDate");
if(screen.width>780) div.setAttribute("style","margin:8px;"); else div.setAttribute("style","margin-top:8px;"); td.appendChild(div);//document.createTextNode(k)); div.style.fontSize="13px";
} td.setAttribute("class","normaldate"); fdayDone=1;
} }
}else if(fdayDone==1 ){ if(days>=k){
k++;
var andate = new Date(fdate.getFullYear(),fdate.getMonth(),k); var anyevents =0; var eventsarr=[];
for(var ab=0;ab
sameDateTest=1 var div =eventsOnCal(k,1,td.style.backgroundColor,eventsarr,anyevents);
td.style.padding="0px"; td.style.fontSize="unset"; td.appendChild(div);
} } } if(sameDateTest==0){
var div = document.createElement("DIV"); div.setAttribute("class","todaysdate"); if(screen.width>780) div.setAttribute("style","margin:8px;"); else div.setAttribute("style","margin:auto;margin-top:8px;");
if(attrjs["accentcolor_1"]!=""){ div.style.backgroundColor=attrjs["accentcolor_1"]; } div.innerHTML=k; td.appendChild(div); } } else{ //var div =eventsOnCal(k,0);td.style.padding="0px"; if(anyevents>0){ //andate.getDate()==amdate.getDate() && andate.getMonth()==amdate.getMonth() && andate.getFullYear()==amdate.getFullYear()){
var div =eventsOnCal(k,0,td.style.backgroundColor,eventsarr,anyevents); div.style.backgroundColor=td.style.backgroundColor;
td.style.padding="0px"; td.style.fontSize="unset"; td.appendChild(div);
}else{ var div = document.createElement("DIV"); div.innerHTML=k; div.setAttribute("class","circledDate");
if(screen.width>780)div.setAttribute("style","margin:8px;"); else div.setAttribute("style","margin-top:8px;"); div.style.fontSize="13px";
td.appendChild(div);//document.createTextNode(k)); td.setAttribute("class","normaldate"); } } }
}
if(attrjs["accentcolor_2"]!=""){ if(i%2==0){ if(j%2==0) td.style.backgroundColor=attrjs["accentcolor_2"]; } else{ if(j%2!=0) td.style.backgroundColor=attrjs["accentcolor_2"]; } }
if(attrjs["fontfamily"]!=""){ td.style.fontFamily=attrjs["fontfamily"]; }
tr.appendChild(td); }
if(rows-1==i && k
function eventsOnCal(k,t,bgcolor,eventsarr,anyevents){
var div = document.createElement("DIV");
div.style.padding="0px !important"; div.style.border="0px solid black"; div.style.position="relative"; div.style.fontSize="unset";
var divvv = document.createElement("DIV"); divvv.id="maindiv"+k; divvv.setAttribute("class","maincondiv"); divvv.setAttribute("style","position:absolute;z-index:0;font-size:unset;");
var contopdiv = document.createElement("Div"); // contopdiv.setAttribute("class","flinecalbox");
var contop = document.createElement("DIV");// contop.setAttribute("style","margin:8px;"); // if(screen.width>780) contop.setAttribute("style","margin:8px;");
if(t==1){ contop.setAttribute("class","todaysdate"); if(screen.width>780)contop.setAttribute("style","todaysdate_exmrg"); if(attrjs["accentcolor_1"]!=""){ contop.style.backgroundColor=attrjs["accentcolor_1"]; } }else{ // if(screen.width>780) div.setAttribute("style","margin-top:8px;");
contop.setAttribute("class","circledDate"); contop.style.fontSize="13px"; }
contop.innerHTML=k; contopdiv.appendChild(contop);
var contoptime = document.createElement("DIV"); contoptime.setAttribute("class","datetimetxt"); contoptime.setAttribute("style","font-size:11px;"); var kl = json[eventsarr[0]].start.split(" ")[1].split(":"); var kl1 = json[eventsarr[0]].end.split(" ")[1].split(":");
// var startdate = kl[0]+":"+kl[1];
var startdate=dateAmPm(kl); var enddate=dateAmPm(kl1);
contoptime.innerHTML=startdate+"-"+enddate;//kl[0]+":"+kl[1]+" - "+kl1[0]+":"+kl1[1];//"12:00PM - 12:30PM";
contopdiv.appendChild(contoptime);
divvv.appendChild(contopdiv); for(var am=0;am
evetsdivhead.innerHTML=kl[0]+":"+kl[1]+" - "+kl1[0]+":"+kl1[1];
eventsdiv.appendChild(evetsdivhead);
}
var evetsdivhead = document.createElement("Div"); evetsdivhead.setAttribute("style","font-size:10px;font-weight:bold;line-height:12px;/*height:25px;*/overflow:hidden;");
evetsdivhead.innerHTML=json[eventsarr[am]].title; eventsdiv.appendChild(evetsdivhead);
var arrab=eventsarr.join();
var eventsreadmore = document.createElement("Button"); eventsreadmore.setAttribute("style","font-size:10px;color:#fff;background-color:#e6b800;padding:3px;padding-left:10px;padding-right:10px;border-radius:10px;border:0px;/*margin-top:3px;*/cursor:pointer;"); eventsreadmore.innerHTML="Show More"; eventsreadmore.setAttribute("onclick","showOverlayMob('block',"+k+",'"+arrab+"',1)");//showOverlay('block',"+k+","+eventsarr[am]+")"); if(attrjs["accentcolor_1"]!=""){ eventsreadmore.style.backgroundColor=attrjs["accentcolor_1"]; } eventsdiv.appendChild(eventsreadmore);
if(am<1){ if(eventsarr.length>1){ var eventsreadmore = document.createElement("DIV"); var colortxt2="#760a04"; if(attrjs["accentcolor_1"]!=""){ colortxt2=attrjs["accentcolor_1"]; }
eventsreadmore.setAttribute("style","font-size:10px;color:"+colortxt2+";text-decoration:underline;cursor:pointer;/*margin-top:8px;*/"); eventsreadmore.innerHTML=(eventsarr.length-1)+" events more"; eventsreadmore.id="moreevents"+k; eventsreadmore.setAttribute("onclick","moreevents("+eventsarr.length+","+am+","+k+","+bgcolor+")");
eventsdiv.appendChild(eventsreadmore); } }
divvv.appendChild(eventsdiv);
}
if(eventsarr.length>0){ var eventsreadmore = document.createElement("DIV"); eventsreadmore.setAttribute("class","show-768"); eventsreadmore.setAttribute("style","background:blue;height:12px;width:12px;border-radius:6px;margin:auto;margin-top:5px;");//"font-size:9.5px;color:#760a04;text-decoration:underline;line-height:10;cursor:pointer;margin-top:8px;"); eventsreadmore.id="moreevents"+k; if(attrjs["accentcolor_1"]!=""){ eventsreadmore.style.backgroundColor=attrjs["accentcolor_1"]; } //eventsreadmore.setAttribute("onclick","moreevents("+eventsarr.length+","+am+","+k+","+bgcolor+")"); divvv.appendChild(eventsreadmore);
if(screen.width<=780){ div.setAttribute("onclick","showOverlayMob('block',"+k+",'"+arrab+"')"); } } div.appendChild(divvv); return div;} function onloadCal(a){ //if(document.getElementById("et-core-unified-2326-cached-inline-styles").innerHTML!=""){ setTimeout(function(){ var tb = document.getElementById("tbodycal"); for(var ol=0;ol