//
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-02A
TN_Widget.AddCss('//s3.amazonaws.com/TNService/pl-widget/styles/tnpl-results-widget.css');
TN_Widget.CreateTable([['Country Jam USA: Sam Hunt, Cole Swindell & Bailey Zimmerman - 3 Day Pass','Country Jam USA - WI','Eau Claire, WI','Thursday','7/17/2025','TBD','6717625','Country-Jam-USA--Sam-Hunt--Cole-Swindell---Bailey-Zimmerman---3-Day-Pass-7-17-2025'],['Dylan Scott','Fond du Lac County Fairgrounds','Fond Du Lac, WI','Thursday','7/17/2025','8:00 PM','7018919','Dylan-Scott-7-17-2025'],['Pierz Freedom Fest: If Nothing Else, Dylan Scott & Sara Evans - 2 Day Pass','Morrison County Fairgrounds','Little Falls, MN','Friday','7/18/2025','TBD','6902884','Pierz-Freedom-Fest--If-Nothing-Else--Dylan-Scott---Sara-Evans---2-Day-Pass-7-18-2025'],['Country Jam USA: Cole Swindell, Dylan Scott & Sara Evans - Friday','Country Jam USA - WI','Eau Claire, WI','Friday','7/18/2025','1:00 PM','6717623','Country-Jam-USA--Cole-Swindell--Dylan-Scott---Sara-Evans---Friday-7-18-2025'],['Pierz Freedom Fest: The Fabulous Armadillos, Sara Evans & Dylan Scott','Morrison County Fairgrounds','Little Falls, MN','Saturday','7/19/2025','6:00 PM','6901373','Pierz-Freedom-Fest--The-Fabulous-Armadillos--Sara-Evans---Dylan-Scott-7-19-2025'],['Dylan Scott','Hancock County Fairgrounds - IA','Britt, IA','Thursday','7/24/2025','7:30 PM','7162078','Dylan-Scott-7-24-2025'],['Dylan Scott','Lucas County Fairgrounds','Maumee, OH','Friday','7/25/2025','8:00 PM','7066601','Dylan-Scott-7-25-2025'],['Rock The Clock 2025: Dylan Scott','Rock The Clock','Plain City, OH','Saturday','7/26/2025','1:00 PM','6901459','Rock-The-Clock-2025--Dylan-Scott-7-26-2025'],['Dylan Scott','Effingham County Fair','Altamont, IL','Friday','8/1/2025','7:30 PM','7045331','Dylan-Scott-8-1-2025'],['Dylan Scott','McHenry County Fairgrounds','Woodstock, IL','Saturday','8/2/2025','7:45 PM','7215785','Dylan-Scott-8-2-2025']],'"Dylan Scott"','https://www.ticketnetwork.com');