//
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-02B
TN_Widget.AddCss('//s3.amazonaws.com/TNService/pl-widget/styles/tnpl-results-widget.css');
TN_Widget.CreateTable([['The Country Fest: Lainey Wilson, Cody Johnson & Thomas Rhett - 4 Day Pass','Clay's Park Resort','North Lawrence, OH','Wednesday','6/12/2024','TBD','5948391','The-Country-Fest--Lainey-Wilson--Cody-Johnson---Thomas-Rhett---4-Day-Pass-6-12-2024'],['The Country Fest: Chris Janson & Chase Matthew - Wednesday','Clay's Park Resort','North Lawrence, OH','Wednesday','6/12/2024','11:00 AM','5948392','The-Country-Fest--Chris-Janson---Chase-Matthew---Wednesday-6-12-2024'],['Chase Matthew','Dr. Pepper Park','Roanoke, VA','Friday','6/14/2024','6:00 PM','6308475','Chase-Matthew-6-14-2024'],['Chase Matthew','Fox Theatre - Hays','Hays, KS','Saturday','6/22/2024','6:30 PM','6303337','Chase-Matthew-6-22-2024'],['Luke Bryan, Alana Springsteen & Chase Matthew','Pine Knob Music Theatre','Clarkston, MI','Friday','6/28/2024','3:00 PM','6247604','Luke-Bryan--Alana-Springsteen---Chase-Matthew-6-28-2024'],['Luke Bryan, Ella Langley & Chase Matthew','Pine Knob Music Theatre','Clarkston, MI','Saturday','6/29/2024','3:00 PM','6286971','Luke-Bryan--Ella-Langley---Chase-Matthew-6-29-2024'],['Chase Matthew & Muscadine Bloodline','Adams County Fairgrounds - NE','Hastings, NE','Thursday','7/18/2024','7:30 PM','6308771','Chase-Matthew---Muscadine-Bloodline-7-18-2024'],['Chase Matthew','The Hat','Manhattan, KS','Friday','7/19/2024','8:30 PM','6383215','Chase-Matthew-7-19-2024'],['Frontier Nights: Jason Aldean & Chase Matthew','Cheyenne Frontier Days','Cheyenne, WY','Saturday','7/20/2024','8:00 PM','5871125','Frontier-Nights--Jason-Aldean---Chase-Matthew-7-20-2024'],['Chase Matthew','Cedar County Fairgrounds - NE','Hartington, NE','Sunday','7/21/2024','7:30 PM','6305500','Chase-Matthew-7-21-2024']],'"Chase Matthew"','https://www.ticketnetwork.com');