//
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-04A
TN_Widget.AddCss('//s3.amazonaws.com/TNService/pl-widget/styles/tnpl-results-widget.css');
TN_Widget.CreateTable([['2026 Formula 1: Austrian Grand Prix - 3 Day Pass','Red Bull Ring','Lind, Austria','Friday','6/26/2026','TBD','7205083','2026-Formula-1--Austrian-Grand-Prix---3-Day-Pass-6-26-2026'],['2026 Formula 1: Austrian Grand Prix - Friday','Red Bull Ring','Lind, Austria','Friday','6/26/2026','1:30 PM','7209395','2026-Formula-1--Austrian-Grand-Prix---Friday-6-26-2026'],['2026 Formula 1: British Grand Prix - 3 Day Pass','Silverstone Circuit','Silverstone, United Kingdom','Friday','7/3/2026','TBD','7205084','2026-Formula-1--British-Grand-Prix---3-Day-Pass-7-3-2026'],['2026 Formula 1: British Grand Prix - Friday','Silverstone Circuit','Silverstone, United Kingdom','Friday','7/3/2026','12:30 PM','7209400','2026-Formula-1--British-Grand-Prix---Friday-7-3-2026'],['2026 Formula 1: British Grand Prix - Saturday','Silverstone Circuit','Silverstone, United Kingdom','Saturday','7/4/2026','11:30 AM','7209401','2026-Formula-1--British-Grand-Prix---Saturday-7-4-2026'],['2026 Formula 1: British Grand Prix - Sunday','Silverstone Circuit','Silverstone, United Kingdom','Sunday','7/5/2026','3:00 PM','7209402','2026-Formula-1--British-Grand-Prix---Sunday-7-5-2026'],['2026 Formula 1: Belgian Grand Prix - 3 Day Pass','Circuit De Spa-francorchamps','Francorchamps, Belgium','Friday','7/17/2026','TBD','7205087','2026-Formula-1--Belgian-Grand-Prix---3-Day-Pass-7-17-2026'],['2026 Formula 1: Belgian Grand Prix - Friday','Circuit De Spa-francorchamps','Francorchamps, Belgium','Friday','7/17/2026','1:30 PM','7209423','2026-Formula-1--Belgian-Grand-Prix---Friday-7-17-2026'],['2026 Formula 1: Belgian Grand Prix - 2 Day Pass','Circuit De Spa-francorchamps','Francorchamps, Belgium','Saturday','7/18/2026','TBD','7209439','2026-Formula-1--Belgian-Grand-Prix---2-Day-Pass-7-18-2026'],['IndyCar Series: Music City Grand Prix - Saturday','Nashville Superspeedway','Lebanon, TN','Saturday','7/18/2026','8:00 AM','7415224','IndyCar-Series--Music-City-Grand-Prix---Saturday-7-18-2026']],'Grand Prix','https://www.ticketnetwork.com');