//
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([['Bay FC vs. Racing Louisville FC','PayPal Park','San Jose, CA','Saturday','9/7/2024','7:00 PM','6235470','Bay-FC-vs--Racing-Louisville-FC-9-7-2024'],['Ringling Bros. and Barnum & Bailey Circus','SAP Center','San Jose, CA','Saturday','9/7/2024','7:00 PM','6262308','Ringling-Bros--and-Barnum---Bailey-Circus-9-7-2024'],['Concrete','San Jose Improv','San Jose, CA','Saturday','9/7/2024','9:30 PM','6210890','Concrete-9-7-2024'],['Ringling Bros. and Barnum & Bailey Circus','SAP Center','San Jose, CA','Sunday','9/8/2024','12:00 PM','6262311','Ringling-Bros--and-Barnum---Bailey-Circus-9-8-2024'],['Fresno Grizzlies vs. San Jose Giants','Chukchansi Park','Fresno, CA','Sunday','9/8/2024','12:05 PM','5964535','Fresno-Grizzlies-vs--San-Jose-Giants-9-8-2024'],['Los Dos Carnales','La Cantina Del Rio','San Jose, CA','Sunday','9/8/2024','2:00 PM','6676304','Los-Dos-Carnales-9-8-2024'],['Ringling Bros. and Barnum & Bailey Circus','SAP Center','San Jose, CA','Sunday','9/8/2024','4:00 PM','6262312','Ringling-Bros--and-Barnum---Bailey-Circus-9-8-2024'],['Concrete','San Jose Improv','San Jose, CA','Sunday','9/8/2024','7:00 PM','6210803','Concrete-9-8-2024'],['When Chai Met Toast','The Ritz - San Jose','San Jose, CA','Wednesday','9/11/2024','7:00 PM','6588024','When-Chai-Met-Toast-9-11-2024'],['Open Mic Night','San Jose Improv','San Jose, CA','Wednesday','9/11/2024','8:00 PM','6536561','Open-Mic-Night-9-11-2024']],'"San Jose Ca"','https://www.ticketnetwork.com');