//
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 = "";
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-03A
TN_Widget.AddCss('//s3.amazonaws.com/TNService/pl-widget/styles/tnpl-results-widget.css');
TN_Widget.CreateTable([['West Point Ballet: The Nutcracker','Mid-Valley Performing Arts Center','Taylorsville, UT','Friday','11/13/2026','7:00 PM','8351039','West-Point-Ballet--The-Nutcracker-11-13-2026'],['A Drunk Christmas Carol','The Rose Theatre - Phoenix','Phoenix, AZ','Friday','11/13/2026','7:00 PM','8288959','A-Drunk-Christmas-Carol-11-13-2026'],['Central Utah Ballet: The Nutcracker','Covey Center For The Arts','Provo, UT','Friday','11/13/2026','7:00 PM','8287556','Central-Utah-Ballet--The-Nutcracker-11-13-2026'],['How The Grinch Stole Christmas - ASL Interpreted','Donald and Darlene Shiley Stage - The Old Globe','San Diego, CA','Friday','11/13/2026','7:00 PM','8346855','How-The-Grinch-Stole-Christmas---ASL-Interpreted-11-13-2026'],['Nutcracker! Magical Christmas Ballet','The Historic Bakersfield Fox Theater','Bakersfield, CA','Friday','11/13/2026','7:00 PM','7859752','Nutcracker--Magical-Christmas-Ballet-11-13-2026'],['A Christmas Carol','Wurtele Thrust Stage - Guthrie Theater','Minneapolis, MN','Friday','11/13/2026','7:30 PM','8255850','A-Christmas-Carol-11-13-2026'],['A Christmas Carol','Albert Ivar Goodman Theatre','Chicago, IL','Friday','11/13/2026','7:30 PM','8144462','A-Christmas-Carol-11-13-2026'],['A Taste Of Ireland: A Celtic Christmas','The Mother Lode Theatre At Butte Center for the Performing Arts','Butte, MT','Friday','11/13/2026','7:30 PM','8106782','A-Taste-Of-Ireland--A-Celtic-Christmas-11-13-2026'],['On The Farce Day of Christmas','Cobblestone Theatre','Volcano, CA','Friday','11/13/2026','7:30 PM','7944541','On-The-Farce-Day-of-Christmas-11-13-2026'],['Presley's Country Christmas','Presleys' Country Jubilee','Branson, MO','Friday','11/13/2026','8:00 PM','7769531','Presley-s-Country-Christmas-11-13-2026']],'"Christmas"','https://www.ticketnetwork.com');