//
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 dateArray = row[4].split('/');
var date = months[dateArray[0]] + " " + dateArray[1];
var parking = row[0].split(':')[0]
if (parking !== "PARKING") {
return "
";
}
},
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 newResults = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newResults.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newResults.join('') + '
';
} else
document.write('' + newResults.join('') + '
');
if(eventData.length >= 101 && kwds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
}
};
}();
//BPW-TNSERV-01A
TN_Widget.AddCss('//tn-widget.seatics.com/widget2Css/results-style-1.css');
TN_Widget.AddCss('//s3.amazonaws.com/ticketnetwork/fonts/TTNorms/TTNorms.css');
TN_Widget.CreateTable([['New York Mets vs. Cincinnati Reds','Citi Field','Flushing, NY','Sunday','9/8/2024','1:40 PM','5814330','New-York-Mets-vs--Cincinnati-Reds-9-8-2024'],['New York Mets vs. Washington Nationals','Citi Field','Flushing, NY','Monday','9/16/2024','7:10 PM','5814338','New-York-Mets-vs--Washington-Nationals-9-16-2024'],['New York Mets vs. Washington Nationals','Citi Field','Flushing, NY','Tuesday','9/17/2024','7:10 PM','5814341','New-York-Mets-vs--Washington-Nationals-9-17-2024'],['New York Mets vs. Washington Nationals','Citi Field','Flushing, NY','Wednesday','9/18/2024','7:10 PM','5814342','New-York-Mets-vs--Washington-Nationals-9-18-2024'],['New York Mets vs. Philadelphia Phillies','Citi Field','Flushing, NY','Thursday','9/19/2024','7:10 PM','5814347','New-York-Mets-vs--Philadelphia-Phillies-9-19-2024']],'new york mets baseball citi field','http://www.ticketnetwork.com/en/search/?text=new%20york%20mets%20baseball%20citi%20field');