//
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([['Dallas Cowboys Preseason Game #1 (Date: TBD)','AT&T Stadium','Arlington, TX','Friday','8/1/2025','TBD','6977874','Dallas-Cowboys-Preseason-Game--1--Date--TBD--8-1-2025'],['Dallas Cowboys Preseason Game #2 (Date: TBD)','AT&T Stadium','Arlington, TX','Saturday','8/2/2025','TBD','6977875','Dallas-Cowboys-Preseason-Game--2--Date--TBD--8-2-2025'],['Philadelphia Eagles vs. Dallas Cowboys (Date: TBD)','Lincoln Financial Field','Philadelphia, PA','Sunday','8/3/2025','TBD','6977852','Philadelphia-Eagles-vs--Dallas-Cowboys--Date--TBD--8-3-2025'],['Dallas Cowboys vs. New York Giants (Date: TBD)','AT&T Stadium','Arlington, TX','Sunday','8/3/2025','TBD','6977876','Dallas-Cowboys-vs--New-York-Giants--Date--TBD--8-3-2025'],['Washington Commanders vs. Dallas Cowboys (Date: TBD)','Northwest Stadium','Landover, MD','Monday','8/4/2025','TBD','6977865','Washington-Commanders-vs--Dallas-Cowboys--Date--TBD--8-4-2025'],['Dallas Cowboys vs. Philadelphia Eagles (Date: TBD)','AT&T Stadium','Arlington, TX','Monday','8/4/2025','TBD','6977878','Dallas-Cowboys-vs--Philadelphia-Eagles--Date--TBD--8-4-2025'],['Dallas Cowboys vs. Washington Commanders (Date: TBD)','AT&T Stadium','Arlington, TX','Tuesday','8/5/2025','TBD','6977879','Dallas-Cowboys-vs--Washington-Commanders--Date--TBD--8-5-2025'],['Denver Broncos vs. Dallas Cowboys (Date: TBD)','Empower Field At Mile High','Denver, CO','Tuesday','8/5/2025','TBD','6977830','Denver-Broncos-vs--Dallas-Cowboys--Date--TBD--8-5-2025'],['Las Vegas Raiders vs. Dallas Cowboys (Date: TBD)','Allegiant Stadium','Las Vegas, NV','Tuesday','8/5/2025','TBD','6977842','Las-Vegas-Raiders-vs--Dallas-Cowboys--Date--TBD--8-5-2025'],['Dallas Cowboys vs. Green Bay Packers (Date: TBD)','AT&T Stadium','Arlington, TX','Wednesday','8/6/2025','TBD','6977880','Dallas-Cowboys-vs--Green-Bay-Packers--Date--TBD--8-6-2025']],'Dallas Cowboys','https://www.ticketnetwork.com');