//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "Tickets",
tixUrl : "https://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[3] +" "+"" +
row[4] + " "+"" +
row[5] + " | "+"" +
row[0] +" | " +
row[1] +" " +
row[2] +" | "+""+ this.linkText+ " |
";
},
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,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-04A
TN_Widget.CreateTable([['Spring Training: San Francisco Giants vs. Milwaukee Brewers','Scottsdale Stadium','Scottsdale, AZ','Friday','2/28/2025','1:05 PM','6635023','Spring-Training--San-Francisco-Giants-vs--Milwaukee-Brewers-2-28-2025'],['Spring Training: San Francisco Giants vs. Los Angeles Angels ','Scottsdale Stadium','Scottsdale, AZ','Sunday','3/2/2025','1:05 PM','6635024','Spring-Training--San-Francisco-Giants-vs--Los-Angeles-Angels--3-2-2025'],['Spring Training: San Francisco Giants vs. Chicago White Sox','Scottsdale Stadium','Scottsdale, AZ','Thursday','3/6/2025','1:05 PM','6635026','Spring-Training--San-Francisco-Giants-vs--Chicago-White-Sox-3-6-2025'],['Spring Training: San Francisco Giants vs. Kansas City Royals (SS)','Scottsdale Stadium','Scottsdale, AZ','Saturday','3/8/2025','1:05 PM','6635028','Spring-Training--San-Francisco-Giants-vs--Kansas-City-Royals--SS--3-8-2025'],['Spring Training: San Francisco Giants vs. San Diego Padres','Scottsdale Stadium','Scottsdale, AZ','Sunday','3/9/2025','1:05 PM','6635030','Spring-Training--San-Francisco-Giants-vs--San-Diego-Padres-3-9-2025'],['Spring Training: San Francisco Giants vs. The Athletics','Scottsdale Stadium','Scottsdale, AZ','Tuesday','3/11/2025','6:05 PM','6635032','Spring-Training--San-Francisco-Giants-vs--The-Athletics-3-11-2025'],['Spring Training: San Francisco Giants vs. Texas Rangers','Scottsdale Stadium','Scottsdale, AZ','Thursday','3/13/2025','1:05 PM','6635034','Spring-Training--San-Francisco-Giants-vs--Texas-Rangers-3-13-2025'],['Spring Training: San Francisco Giants vs. Seattle Mariners (SS) & Spring Breakout: San Francisco Giants vs. Texas Rangers','Scottsdale Stadium','Scottsdale, AZ','Saturday','3/15/2025','1:05 PM','6635036','Spring-Training--San-Francisco-Giants-vs--Seattle-Mariners--SS----Spring-Breakout--San-Francisco-Giants-vs--Texas-Rangers-3-15-2025'],['Spring Training: San Francisco Giants vs. The Athletics','Scottsdale Stadium','Scottsdale, AZ','Sunday','3/16/2025','1:05 PM','6635039','Spring-Training--San-Francisco-Giants-vs--The-Athletics-3-16-2025'],['Spring Training: San Francisco Giants vs. San Diego Padres','Scottsdale Stadium','Scottsdale, AZ','Tuesday','3/18/2025','6:05 PM','6635042','Spring-Training--San-Francisco-Giants-vs--San-Diego-Padres-3-18-2025'],['Spring Training: San Francisco Giants vs. Cleveland Guardians','Scottsdale Stadium','Scottsdale, AZ','Friday','3/21/2025','1:05 PM','6635045','Spring-Training--San-Francisco-Giants-vs--Cleveland-Guardians-3-21-2025'],['Spring Training: San Francisco Giants vs. Arizona Diamondbacks','Scottsdale Stadium','Scottsdale, AZ','Saturday','3/22/2025','1:05 PM','6635048','Spring-Training--San-Francisco-Giants-vs--Arizona-Diamondbacks-3-22-2025']],'Scottsdale Stadium','https://www.ticketnetwork.com/ticket/Scottsdale-Stadium-events.aspx');