//
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([['Princeton Tigers vs. Harvard Crimson','Class of 1952 Stadium','Princeton, NJ','Saturday','3/22/2025','12:00 PM','6968162','Princeton-Tigers-vs--Harvard-Crimson-3-22-2025'],['Premier Lacrosse League: California Redwoods vs. Boston Cannons & Carolina Chaos vs. Utah Archers','Harvard Stadium','Allston, MA','Friday','8/8/2025','6:30 PM','6961749','Premier-Lacrosse-League--California-Redwoods-vs--Boston-Cannons---Carolina-Chaos-vs--Utah-Archers-8-8-2025'],['Premier Lacrosse League: Philadelphia Waterdogs vs. New York Atlas','Harvard Stadium','Allston, MA','Saturday','8/9/2025','1:00 PM','6961750','Premier-Lacrosse-League--Philadelphia-Waterdogs-vs--New-York-Atlas-8-9-2025'],['Premier Lacrosse League: Maryland Whipsnakes vs. Boston Cannons','Harvard Stadium','Allston, MA','Saturday','8/9/2025','7:00 PM','6961751','Premier-Lacrosse-League--Maryland-Whipsnakes-vs--Boston-Cannons-8-9-2025'],['Harvard Crimson vs. Brown Bears','Harvard Stadium','Allston, MA','Saturday','9/27/2025','TBD','6911007','Harvard-Crimson-vs--Brown-Bears-9-27-2025'],['Holy Cross Crusaders vs. Harvard Crimson ','Fitton Football Stadium','Worcester, MA','Saturday','10/4/2025','TBD','6938284','Holy-Cross-Crusaders--vs--Harvard-Crimson--10-4-2025'],['Harvard Crimson vs. Cornell Big Red','Harvard Stadium','Allston, MA','Saturday','10/11/2025','TBD','6911010','Harvard-Crimson-vs--Cornell-Big-Red-10-11-2025'],['Princeton Tigers vs. Harvard Crimson','Princeton Stadium','Princeton, NJ','Saturday','10/25/2025','TBD','6911064','Princeton-Tigers-vs--Harvard-Crimson-10-25-2025'],['Harvard Crimson vs. Dartmouth Big Green','Harvard Stadium','Allston, MA','Saturday','11/1/2025','TBD','6911013','Harvard-Crimson-vs--Dartmouth-Big-Green-11-1-2025'],['Columbia Lions vs. Harvard Crimson','Wien Stadium','New York, NY','Saturday','11/8/2025','TBD','6863684','Columbia-Lions-vs--Harvard-Crimson-11-8-2025'],['Harvard Crimson vs. Pennsylvania Quakers','Harvard Stadium','Allston, MA','Saturday','11/15/2025','TBD','6911016','Harvard-Crimson-vs--Pennsylvania-Quakers-11-15-2025']],'Harvard Stadium','https://www.ticketnetwork.com/ticket/Harvard-Stadium-events.aspx');