//
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([['Mason Ramsey','Heartwood Soundstage','Gainesville, FL','Saturday','9/28/2024','8:00 PM','6499993','Mason-Ramsey-9-28-2024'],['Mason Ramsey','The Broadberry','Richmond, VA','Thursday','10/3/2024','8:00 PM','6499996','Mason-Ramsey-10-3-2024'],['Mason Ramsey','Elevation 27','Virginia Beach, VA','Friday','10/4/2024','8:00 PM','6499997','Mason-Ramsey-10-4-2024'],['Mason Ramsey','The Senate at Tin Roof','Columbia, SC','Saturday','10/5/2024','8:00 PM','6499998','Mason-Ramsey-10-5-2024'],['Mason Ramsey','Thunderbird Cafe','Pittsburgh, PA','Thursday','10/10/2024','8:00 PM','6499999','Mason-Ramsey-10-10-2024'],['Mason Ramsey','Adelaide Hall - Toronto','Toronto, Canada','Friday','10/11/2024','8:00 PM','6551498','Mason-Ramsey-10-11-2024'],['Mason Ramsey','The Loving Touch','Ferndale, MI','Saturday','10/12/2024','7:00 PM','6500000','Mason-Ramsey-10-12-2024'],['Mason Ramsey','A and R Music Bar','Columbus, OH','Thursday','10/17/2024','7:00 PM','6500001','Mason-Ramsey-10-17-2024'],['Mason Ramsey','The Loud - WV','Huntington, WV','Friday','10/18/2024','9:00 PM','6500002','Mason-Ramsey-10-18-2024'],['Mason Ramsey','Madison Live - Covington','Covington, KY','Saturday','10/19/2024','7:30 PM','6500005','Mason-Ramsey-10-19-2024']],'"Mason Ramsey"','https://www.ticketnetwork.com');