//
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([['Vanderbilt Commodores vs. Alcorn State Braves','FirstBank Stadium','Nashville, TN','Saturday','9/7/2024','6:30 PM','6117822','Vanderbilt-Commodores-vs--Alcorn-State-Braves-9-7-2024'],['Nashville Sounds vs. Gwinnett Stripers','First Horizon Park','Nashville, TN','Saturday','9/7/2024','6:35 PM','5890400','Nashville-Sounds-vs--Gwinnett-Stripers-9-7-2024'],['Dierks Bentley, Chase Rice & Bella White','Bridgestone Arena','Nashville, TN','Saturday','9/7/2024','7:00 PM','6261850','Dierks-Bentley--Chase-Rice---Bella-White-9-7-2024'],['Grand Ole Opry: Carrie Underwood, Kassi Ashton, Gary Mule Deer, Vincent Mason & Ashley McBryde','Grand Ole Opry House','Nashville, TN','Saturday','9/7/2024','7:00 PM','6332597','Grand-Ole-Opry--Carrie-Underwood--Kassi-Ashton--Gary-Mule-Deer--Vincent-Mason---Ashley-McBryde-9-7-2024'],['Ziggy Alberts','Exit In','Nashville, TN','Saturday','9/7/2024','7:15 PM','6262507','Ziggy-Alberts-9-7-2024'],['T.K. Kirkland','Marathon Music Works','Nashville, TN','Saturday','9/7/2024','7:30 PM','6307119','T-K--Kirkland-9-7-2024'],['Hot In Herre: 2000s Dance Party','Brooklyn Bowl - Nashville','Nashville, TN','Saturday','9/7/2024','8:00 PM','6598130','Hot-In-Herre--2000s-Dance-Party-9-7-2024'],['Samuel J. Comroe','Zanies Comedy Night Club - Nashville','Nashville, TN','Sunday','9/8/2024','6:00 PM','6326892','Samuel-J--Comroe-9-8-2024'],['Nashville Sounds vs. Gwinnett Stripers','First Horizon Park','Nashville, TN','Sunday','9/8/2024','6:05 PM','5890401','Nashville-Sounds-vs--Gwinnett-Stripers-9-8-2024'],['Colony House','The Basement East - Nashville','Nashville, TN','Sunday','9/8/2024','7:00 PM','6322063','Colony-House-9-8-2024']],'"Nashville Tn"','https://www.ticketnetwork.com');