//
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-03A
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([['Spring Training: San Francisco Giants vs. Chicago White Sox','Scottsdale Stadium','Scottsdale, AZ','Sunday','3/7/2027','TBD','8253390','Spring-Training--San-Francisco-Giants-vs--Chicago-White-Sox-3-7-2027'],['Spring Training: Chicago White Sox vs. San Francisco Giants (SS)','Camelback Ranch Stadium','Phoenix, AZ','Thursday','3/18/2027','TBD','8253659','Spring-Training--Chicago-White-Sox-vs--San-Francisco-Giants--SS--3-18-2027'],['Chicago White Sox vs. San Francisco Giants','Rate Field','Chicago, IL','Friday','4/16/2027','TBD','8140184','Chicago-White-Sox-vs--San-Francisco-Giants-4-16-2027'],['Chicago White Sox vs. San Francisco Giants','Rate Field','Chicago, IL','Saturday','4/17/2027','TBD','8140185','Chicago-White-Sox-vs--San-Francisco-Giants-4-17-2027'],['Chicago White Sox vs. San Francisco Giants','Rate Field','Chicago, IL','Sunday','4/18/2027','TBD','8140186','Chicago-White-Sox-vs--San-Francisco-Giants-4-18-2027']],'Chicago White Sox San Francisco Giants','http://www.ticketnetwork.com/en/search/?text=Chicago%20White%20Sox%20San%20Francisco%20Giants');