//
var TN_Widget = function() {
var months = ["", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
return {
newWindow : true,
CreateEventRow : function(row, isAlt) {
var t = row[4].split("/");
t[0] = months[t[0]];
t[2] = ", " + t[2];
return "
" +
t[0] + " " + "" + t[1] + "" +
t[2] + " " +
row[3].substring(0,3) + " " +
row[5] + " | " +
row[0] + " " +
row[1] + " - " +
row[2] + " | " + this.btnText + "" +
" |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kwds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
var footerLink = "";
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else if(document.querySelector(".tnpl_results_container") != null) {
document.querySelector(".tnpl_results_container").innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else
document.write("" + newTable.join('') + "" + footerLink + "
");
}
};
}();
//BPW-TNSERV-02A
TN_Widget.AddCss('//s3.amazonaws.com/TNService/pl-widget/styles/tnpl-results-widget.css');
TN_Widget.CreateTable([['American Ballet Theatre: Innovation Past and Present','David H. Koch Theater','New York, NY','Friday','10/18/2024','7:30 PM','6614296','American-Ballet-Theatre--Innovation-Past-and-Present-10-18-2024'],['American Ballet Theatre: Innovation Past and Present','David H. Koch Theater','New York, NY','Saturday','10/19/2024','2:00 PM','6614297','American-Ballet-Theatre--Innovation-Past-and-Present-10-19-2024'],['American Ballet Theatre: Crime and Punishment','David H. Koch Theater','New York, NY','Saturday','10/19/2024','7:30 PM','6614317','American-Ballet-Theatre--Crime-and-Punishment-10-19-2024'],['American Ballet Theatre: Family Friendly Matinee','David H. Koch Theater','New York, NY','Sunday','10/20/2024','12:30 PM','6614318','American-Ballet-Theatre--Family-Friendly-Matinee-10-20-2024'],['American Ballet Theatre: Crime and Punishment','David H. Koch Theater','New York, NY','Sunday','10/20/2024','5:30 PM','6614321','American-Ballet-Theatre--Crime-and-Punishment-10-20-2024'],['American Ballet Theatre: Fall Gala','David H. Koch Theater','New York, NY','Wednesday','10/23/2024','6:30 PM','6614273','American-Ballet-Theatre--Fall-Gala-10-23-2024'],['American Ballet Theatre: Innovation Past and Present','David H. Koch Theater','New York, NY','Thursday','10/24/2024','7:30 PM','6614298','American-Ballet-Theatre--Innovation-Past-and-Present-10-24-2024'],['American Ballet Theatre: Crime and Punishment','David H. Koch Theater','New York, NY','Friday','10/25/2024','7:30 PM','6614322','American-Ballet-Theatre--Crime-and-Punishment-10-25-2024'],['American Ballet Theatre: Signature Works','David H. Koch Theater','New York, NY','Saturday','10/26/2024','2:00 PM','6614373','American-Ballet-Theatre--Signature-Works-10-26-2024'],['American Ballet Theatre: Signature Works','David H. Koch Theater','New York, NY','Saturday','10/26/2024','7:30 PM','6614328','American-Ballet-Theatre--Signature-Works-10-26-2024'],['American Ballet Theatre: Family Friendly Matinee','David H. Koch Theater','New York, NY','Sunday','10/27/2024','12:30 PM','6614324','American-Ballet-Theatre--Family-Friendly-Matinee-10-27-2024'],['American Ballet Theatre: Signature Works','David H. Koch Theater','New York, NY','Sunday','10/27/2024','5:30 PM','6614326','American-Ballet-Theatre--Signature-Works-10-27-2024'],['American Ballet Theatre: Crime and Punishment','David H. Koch Theater','New York, NY','Wednesday','10/30/2024','7:30 PM','6614277','American-Ballet-Theatre--Crime-and-Punishment-10-30-2024'],['American Ballet Theatre: Crime and Punishment','David H. Koch Theater','New York, NY','Thursday','10/31/2024','7:30 PM','6614278','American-Ballet-Theatre--Crime-and-Punishment-10-31-2024'],['American Ballet Theatre: Crime and Punishment','David H. Koch Theater','New York, NY','Friday','11/1/2024','7:30 PM','6614279','American-Ballet-Theatre--Crime-and-Punishment-11-1-2024'],['American Ballet Theatre: Crime and Punishment','David H. Koch Theater','New York, NY','Saturday','11/2/2024','2:00 PM','6614282','American-Ballet-Theatre--Crime-and-Punishment-11-2-2024'],['American Ballet Theatre: Crime and Punishment','David H. Koch Theater','New York, NY','Saturday','11/2/2024','7:30 PM','6614283','American-Ballet-Theatre--Crime-and-Punishment-11-2-2024'],['American Ballet Theatre: Crime and Punishment','David H. Koch Theater','New York, NY','Sunday','11/3/2024','2:00 PM','6614285','American-Ballet-Theatre--Crime-and-Punishment-11-3-2024']],'american ballet','https://www.ticketnetwork.com');