// 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 t = row[4].split("/"); t[0] = months[t[0]]; t[2] = ", " + t[2]; return "

" + t[0] + " " + "" + t[1] + "" + t[2] + "

" + row[3].substring(0,3) + " " + row[5] + "

" + row[0] + "

" + row[1] + " - " + row[2] + "

" + this.btnText + "" + ""; }, 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 newTable = []; for(var cntr = 0; cntr < eventData.length; cntr++) newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1)); var objToAddTo; var footerLink = "" + this.footerText + ""; if(objToAddTo = document.getElementById("tn_results_container")) { objToAddTo.innerHTML = "" + newTable.join('') + "" + footerLink + "
"; } else if(document.querySelector(".tnpl_results_container") != null) { document.querySelector(".tnpl_results_container").innerHTML = "" + newTable.join('') + "" + footerLink + "
"; } else document.write("
" + newTable.join('') + "" + footerLink + "
"); } }; }(); //BPW-TNSERV-04A TN_Widget.AddCss('//s3.amazonaws.com/TNService/pl-widget/styles/tnpl-results-widget.css'); TN_Widget.CreateTable([['NASCAR Xfinity Series: Ambetter Health 302','Las Vegas Motor Speedway','Las Vegas, NV','Saturday','10/19/2024','12:30 PM','5984041','NASCAR-Xfinity-Series--Ambetter-Health-302-10-19-2024'],['Columbus Blue Jackets vs. Minnesota Wild','Nationwide Arena','Columbus, OH','Saturday','10/19/2024','7:00 PM','6545515','Columbus-Blue-Jackets-vs--Minnesota-Wild-10-19-2024'],['Columbus Blue Jackets vs. Toronto Maple Leafs','Nationwide Arena','Columbus, OH','Tuesday','10/22/2024','7:30 PM','6545540','Columbus-Blue-Jackets-vs--Toronto-Maple-Leafs-10-22-2024'],['Justin Timberlake','Nationwide Arena','Columbus, OH','Wednesday','10/23/2024','7:30 PM','6251681','Justin-Timberlake-10-23-2024'],['Floyd Nation','Motorcity Casino Hotel','Detroit, MI','Thursday','10/24/2024','7:30 PM','5575270','Floyd-Nation-10-24-2024'],['Floyd Nation','The Palladium - Center For The Performing Arts','Carmel, IN','Friday','10/25/2024','8:00 PM','6531372','Floyd-Nation-10-25-2024'],['Blake Nation - Blake Shelton Tribute','Lava Cantina The Colony','The Colony, TX','Friday','10/25/2024','8:00 PM','6744089','Blake-Nation---Blake-Shelton-Tribute-10-25-2024'],['Little Big Town & Sugarland','Nationwide Arena','Columbus, OH','Saturday','10/26/2024','7:00 PM','6369170','Little-Big-Town---Sugarland-10-26-2024'],['Taylor Nation','Events Center at Pala Casino Spa and Resort','Pala, CA','Saturday','10/26/2024','8:00 PM','6694188','Taylor-Nation-10-26-2024'],['Billy Nation - Billy Joel Tribute','Belly Up Tavern','Solana Beach, CA','Saturday','10/26/2024','8:00 PM','6587799','Billy-Nation---Billy-Joel-Tribute-10-26-2024']],'"Live Nation"','https://www.ticketnetwork.com');