//
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([['Stoney 10th Anniversary: Post Malone','Hollywood Palladium','Los Angeles, CA','Wednesday','12/9/2026','8:00 PM','8383341','Stoney-10th-Anniversary--Post-Malone-12-9-2026'],['New Year's Eve Festival: Post Malone & Alesso','Delta Center','Salt Lake City, UT','Thursday','12/31/2026','10:00 PM','8347901','New-Year-s-Eve-Festival--Post-Malone---Alesso-12-31-2026'],['Pilgrimage Music & Cultural Festival: Post Malone & Megan Moroney - 2 Day Pass','The Park at Harlinsdale Farm','Franklin, TN','Saturday','4/10/2027','TBD','8376464','Pilgrimage-Music---Cultural-Festival--Post-Malone---Megan-Moroney---2-Day-Pass-4-10-2027'],['Pilgrimage Music & Cultural Festival: Post Malone, Mt. Joy & Dexter and The Moonrocks (Time: TBD) - Sunday','The Park at Harlinsdale Farm','Franklin, TN','Sunday','4/11/2027','12:00 PM','8376466','Pilgrimage-Music---Cultural-Festival--Post-Malone--Mt--Joy---Dexter-and-The-Moonrocks--Time--TBD----Sunday-4-11-2027']],'Post Malone','https://www.ticketnetwork.com');