//
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-01A
TN_Widget.AddCss('//s3.amazonaws.com/TNService/pl-widget/styles/tnpl-results-widget.css');
TN_Widget.CreateTable([['The Red Clay Strays','Murat Theatre at Old National Centre','Indianapolis, IN','Thursday','9/12/2024','7:30 PM','6464135','The-Red-Clay-Strays-9-12-2024'],['Born & Raised Festival: Cody Johnson, Hank Williams Jr. & Koe Wetzel - 3 Day Pass','Pryor Creek Festival Grounds','Pryor, OK','Friday','9/13/2024','TBD','6399205','Born---Raised-Festival--Cody-Johnson--Hank-Williams-Jr----Koe-Wetzel---3-Day-Pass-9-13-2024'],['The Red Clay Strays','Avondale Brewing Company','Birmingham, AL','Saturday','9/14/2024','7:00 PM','6464136','The-Red-Clay-Strays-9-14-2024'],['Born and Raised Music Festival: Cody Johnson, Dwight Yoakam & The Red Clay Strays - Sunday','Pryor Creek Country Music Festival','Pryor, OK','Sunday','9/15/2024','TBD','6594007','Born-and-Raised-Music-Festival--Cody-Johnson--Dwight-Yoakam---The-Red-Clay-Strays---Sunday-9-15-2024'],['The Red Clay Strays','The Fillmore Silver Spring','Silver Spring, MD','Wednesday','9/18/2024','7:30 PM','6464137','The-Red-Clay-Strays-9-18-2024'],['The Red Clay Strays','Stage AE','Pittsburgh, PA','Thursday','9/19/2024','7:00 PM','6465300','The-Red-Clay-Strays-9-19-2024'],['The Red Clay Strays','Brooklyn Paramount','Brooklyn, NY','Tuesday','10/1/2024','6:30 PM','6464138','The-Red-Clay-Strays-10-1-2024'],['The Red Clay Strays','The Fillmore - Philadelphia','Philadelphia, PA','Thursday','10/3/2024','7:30 PM','6464140','The-Red-Clay-Strays-10-3-2024'],['The Red Clay Strays','Roadrunner','Brighton, MA','Saturday','10/5/2024','8:00 PM','6465301','The-Red-Clay-Strays-10-5-2024'],['The Red Clay Strays','The Fillmore - New Orleans','New Orleans, LA','Thursday','10/10/2024','6:30 PM','6464141','The-Red-Clay-Strays-10-10-2024']],'"Red Clay Strays"','https://www.ticketnetwork.com');