//
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([['Formula 1: Azerbaijan Grand Prix - 3 Day Pass','Baku City Circuit - Baku','Baku, Azerbaijan','Friday','9/13/2024','TBD','5800155','Formula-1--Azerbaijan-Grand-Prix---3-Day-Pass-9-13-2024'],['IndyCar Series: Music City Grand Prix','Nashville Superspeedway','Lebanon, TN','Saturday','9/14/2024','10:00 AM','6346625','IndyCar-Series--Music-City-Grand-Prix-9-14-2024'],['IndyCar Series: Music City Grand Prix','Nashville Superspeedway','Lebanon, TN','Sunday','9/15/2024','3:00 PM','5956216','IndyCar-Series--Music-City-Grand-Prix-9-15-2024'],['Formula 1: Singapore Grand Prix - 3 Day Pass','Marina Bay Street Circuit','Singapore','Friday','9/20/2024','TBD','5800156','Formula-1--Singapore-Grand-Prix---3-Day-Pass-9-20-2024'],['Formula 1: Singapore Grand Prix - Friday','Marina Bay Street Circuit','Singapore','Friday','9/20/2024','TBD','6156894','Formula-1--Singapore-Grand-Prix---Friday-9-20-2024'],['Formula 1: Singapore Grand Prix - Saturday','Marina Bay Street Circuit','Singapore','Saturday','9/21/2024','TBD','6156895','Formula-1--Singapore-Grand-Prix---Saturday-9-21-2024'],['Formula 1: Singapore Grand Prix - Sunday','Marina Bay Street Circuit','Singapore','Sunday','9/22/2024','8:00 PM','6156896','Formula-1--Singapore-Grand-Prix---Sunday-9-22-2024'],['Formula 1: US Grand Prix - 3 Day Pass','Circuit of The Americas','Austin, TX','Friday','10/18/2024','TBD','5800210','Formula-1--US-Grand-Prix---3-Day-Pass-10-18-2024'],['Formula 1: US Grand Prix - Friday','Circuit of The Americas','Austin, TX','Friday','10/18/2024','2:00 PM','5800314','Formula-1--US-Grand-Prix---Friday-10-18-2024'],['Formula 1: US Grand Prix - 2 Day Pass','Circuit of The Americas','Austin, TX','Saturday','10/19/2024','TBD','5800320','Formula-1--US-Grand-Prix---2-Day-Pass-10-19-2024']],'"Grand Prix"','https://www.ticketnetwork.com');