//
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-03B
TN_Widget.AddCss('//s3.amazonaws.com/TNService/pl-widget/styles/tnpl-results-widget.css');
TN_Widget.CreateTable([['Funny Girl','Sarofim Hall - Hobby Center','Houston, TX','Tuesday','8/20/2024','7:30 PM','5580997','Funny-Girl-8-20-2024'],['Funny Girl','Sarofim Hall - Hobby Center','Houston, TX','Wednesday','8/21/2024','7:30 PM','5580998','Funny-Girl-8-21-2024'],['Funny Girl','Sarofim Hall - Hobby Center','Houston, TX','Thursday','8/22/2024','7:30 PM','5580999','Funny-Girl-8-22-2024'],['Funny Girl','Sarofim Hall - Hobby Center','Houston, TX','Friday','8/23/2024','8:00 PM','5581000','Funny-Girl-8-23-2024'],['Funny Girl','Sarofim Hall - Hobby Center','Houston, TX','Saturday','8/24/2024','2:00 PM','5581001','Funny-Girl-8-24-2024'],['Funny Girl','Sarofim Hall - Hobby Center','Houston, TX','Saturday','8/24/2024','8:00 PM','5581002','Funny-Girl-8-24-2024'],['Funny Girl','Sarofim Hall - Hobby Center','Houston, TX','Sunday','8/25/2024','1:30 PM','5581003','Funny-Girl-8-25-2024'],['Funny Girl','Sarofim Hall - Hobby Center','Houston, TX','Sunday','8/25/2024','7:00 PM','5581004','Funny-Girl-8-25-2024']],'funny girl','https://www.ticketnetwork.com');