// 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([['Frogtown Craft Beer Festival','The Rust Belt','East Moline, IL','Saturday','11/29/2025','12:00 PM','7498674','Frogtown-Craft-Beer-Festival-11-29-2025'],['Give Thanks: Illenium & Dabin - Saturday (Time: TBD)','San Jose McEnery Convention Center','San Jose, CA','Saturday','11/29/2025','12:00 PM','7396691','Give-Thanks--Illenium---Dabin---Saturday--Time--TBD--11-29-2025'],['Annie','Stratford Festival Theatre','Stratford, Canada','Saturday','11/29/2025','2:00 PM','7520273','Annie-11-29-2025'],['Apocalypse Zombie Land - Saturday','Harry Bridges Memorial Park','Long Beach, CA','Saturday','11/29/2025','2:00 PM','7295965','Apocalypse-Zombie-Land---Saturday-11-29-2025'],['Welcome To The West: YG, Too Short, Mack 10 & Mozzy','Toyota Arena - Ontario','Ontario, CA','Saturday','11/29/2025','6:00 PM','7465789','Welcome-To-The-West--YG--Too-Short--Mack-10---Mozzy-11-29-2025'],['Irving Berlin's White Christmas','Shaw Festival Theatre','Niagara On The Lake, Canada','Saturday','11/29/2025','7:00 PM','6850137','Irving-Berlin-s-White-Christmas-11-29-2025'],['Foul Play Fest','The Ship','Kansas City, MO','Sunday','11/30/2025','12:00 PM','7560976','Foul-Play-Fest-11-30-2025'],['Irving Berlin's White Christmas','Shaw Festival Theatre','Niagara On The Lake, Canada','Sunday','11/30/2025','1:00 PM','6850125','Irving-Berlin-s-White-Christmas-11-30-2025'],['Annie','Stratford Festival Theatre','Stratford, Canada','Sunday','11/30/2025','2:00 PM','7520274','Annie-11-30-2025'],['Pedal Steel Festival','Granada - Lawrence','Lawrence, KS','Sunday','11/30/2025','2:00 PM','7529675','Pedal-Steel-Festival-11-30-2025']],'"Festival"','https://www.ticketnetwork.com');