//
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 + "" +
"![](//s3.amazonaws.com/TNService/pl-widget/images/arrow.png) |
";
},
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([['49 Winchester','Brooklyn Bowl - Philadelphia','Philadelphia, PA','Saturday','9/7/2024','8:00 PM','6373507','49-Winchester-9-7-2024'],['Joe Matarese','Punch Line Comedy Club - Philadelphia','Philadelphia, PA','Saturday','9/7/2024','9:15 PM','6493877','Joe-Matarese-9-7-2024'],['Jantsen','The Ave Live','Philadelphia, PA','Saturday','9/7/2024','9:30 PM','6580702','Jantsen-9-7-2024'],['The Day Players','Punch Line Comedy Club - Philadelphia','Philadelphia, PA','Sunday','9/8/2024','1:30 PM','6258317','The-Day-Players-9-8-2024'],['Tom Shillue','Helium Comedy Club - Philadelphia','Philadelphia, PA','Sunday','9/8/2024','4:30 PM','6577176','Tom-Shillue-9-8-2024'],['Reading Fightin Phils vs. Erie Seawolves','FirstEnergy Stadium - Reading','Reading, PA','Sunday','9/8/2024','5:15 PM','5896537','Reading-Fightin-Phils-vs--Erie-Seawolves-9-8-2024'],['Gabriel Rutledge','Helium Comedy Club - Philadelphia','Philadelphia, PA','Sunday','9/8/2024','7:00 PM','6457362','Gabriel-Rutledge-9-8-2024'],['Waxahatchee','The Fillmore - Philadelphia','Philadelphia, PA','Sunday','9/8/2024','7:00 PM','6206020','Waxahatchee-9-8-2024'],['beabadoobee','The Met - Philadelphia','Philadelphia, PA','Sunday','9/8/2024','7:30 PM','6479004','beabadoobee-9-8-2024'],['John Hill','City Winery - Philadelphia ','Philadelphia, PA','Sunday','9/8/2024','7:30 PM','6570403','John-Hill-9-8-2024']],'"Philadelphia Pa"','https://www.ticketnetwork.com');