//
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-02A
TN_Widget.CreateTable([['Morgan Wallen, Ella Langley & Miranda Lambert','Camp Randall Stadium','Madison, WI','Saturday','6/28/2025','5:30 PM','6952287','Morgan-Wallen--Ella-Langley---Miranda-Lambert-6-28-2025'],['Morgan Wallen, Ella Langley & Miranda Lambert','Camp Randall Stadium','Madison, WI','Sunday','6/29/2025','5:30 PM','6962609','Morgan-Wallen--Ella-Langley---Miranda-Lambert-6-29-2025'],['Coldplay','Camp Randall Stadium','Madison, WI','Saturday','7/19/2025','6:00 PM','6752037','Coldplay-7-19-2025'],['2025 Wisconsin Badgers Football Season Tickets (Includes Tickets To All Regular Season Home Games)','Camp Randall Stadium','Madison, WI','Friday','8/29/2025','TBD','6830687','2025-Wisconsin-Badgers-Football-Season-Tickets--Includes-Tickets-To-All-Regular-Season-Home-Games--8-29-2025'],['Wisconsin Badgers vs. Miami (OH) RedHawks','Camp Randall Stadium','Madison, WI','Saturday','8/30/2025','TBD','6876516','Wisconsin-Badgers-vs--Miami--OH--RedHawks-8-30-2025'],['Wisconsin Badgers vs. Middle Tennessee State Blue Raiders','Camp Randall Stadium','Madison, WI','Saturday','9/6/2025','TBD','6876522','Wisconsin-Badgers-vs--Middle-Tennessee-State-Blue-Raiders-9-6-2025'],['Wisconsin Badgers vs. Maryland Terrapins','Camp Randall Stadium','Madison, WI','Saturday','9/20/2025','TBD','6877374','Wisconsin-Badgers-vs--Maryland-Terrapins-9-20-2025'],['Wisconsin Badgers vs. Iowa Hawkeyes','Camp Randall Stadium','Madison, WI','Saturday','10/11/2025','TBD','6877379','Wisconsin-Badgers-vs--Iowa-Hawkeyes-10-11-2025'],['Wisconsin Badgers vs. Ohio State Buckeyes','Camp Randall Stadium','Madison, WI','Saturday','10/18/2025','TBD','6877380','Wisconsin-Badgers-vs--Ohio-State-Buckeyes-10-18-2025'],['Wisconsin Badgers vs. Washington Huskies','Camp Randall Stadium','Madison, WI','Saturday','11/8/2025','TBD','6877383','Wisconsin-Badgers-vs--Washington-Huskies-11-8-2025'],['Wisconsin Badgers vs. Illinois Fighting Illini','Camp Randall Stadium','Madison, WI','Saturday','11/22/2025','TBD','6877384','Wisconsin-Badgers-vs--Illinois-Fighting-Illini-11-22-2025']],'Camp Randall Stadium','https://www.ticketnetwork.com/ticket/Camp-Randall-Stadium-events.aspx');