//
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-03A
TN_Widget.AddCss('//s3.amazonaws.com/TNService/pl-widget/styles/tnpl-results-widget.css');
TN_Widget.CreateTable([['Washington Capitals vs. Utah Hockey Club','Capital One Arena','Washington, DC','Sunday','2/9/2025','12:30 PM','6545831','Washington-Capitals-vs--Utah-Hockey-Club-2-9-2025'],['Washington Capitals vs. Edmonton Oilers','Capital One Arena','Washington, DC','Sunday','2/23/2025','1:00 PM','6545835','Washington-Capitals-vs--Edmonton-Oilers-2-23-2025'],['Washington Capitals vs. Calgary Flames','Capital One Arena','Washington, DC','Tuesday','2/25/2025','7:00 PM','6545838','Washington-Capitals-vs--Calgary-Flames-2-25-2025'],['Washington Capitals vs. St. Louis Blues','Capital One Arena','Washington, DC','Thursday','2/27/2025','7:00 PM','6545843','Washington-Capitals-vs--St--Louis-Blues-2-27-2025'],['Washington Capitals vs. Tampa Bay Lightning','Capital One Arena','Washington, DC','Saturday','3/1/2025','12:30 PM','6545850','Washington-Capitals-vs--Tampa-Bay-Lightning-3-1-2025'],['Washington Capitals vs. Ottawa Senators','Capital One Arena','Washington, DC','Monday','3/3/2025','6:30 PM','6545959','Washington-Capitals-vs--Ottawa-Senators-3-3-2025'],['Washington Capitals vs. Detroit Red Wings','Capital One Arena','Washington, DC','Friday','3/7/2025','7:00 PM','6545966','Washington-Capitals-vs--Detroit-Red-Wings-3-7-2025'],['Washington Capitals vs. Seattle Kraken','Capital One Arena','Washington, DC','Sunday','3/9/2025','3:30 PM','6545971','Washington-Capitals-vs--Seattle-Kraken-3-9-2025'],['Washington Capitals vs. Detroit Red Wings','Capital One Arena','Washington, DC','Tuesday','3/18/2025','7:00 PM','6545979','Washington-Capitals-vs--Detroit-Red-Wings-3-18-2025'],['Washington Capitals vs. Philadelphia Flyers','Capital One Arena','Washington, DC','Thursday','3/20/2025','7:00 PM','6545985','Washington-Capitals-vs--Philadelphia-Flyers-3-20-2025'],['Washington Capitals vs. Florida Panthers','Capital One Arena','Washington, DC','Saturday','3/22/2025','5:00 PM','6545992','Washington-Capitals-vs--Florida-Panthers-3-22-2025'],['Washington Capitals vs. Buffalo Sabres','Capital One Arena','Washington, DC','Sunday','3/30/2025','3:00 PM','6545998','Washington-Capitals-vs--Buffalo-Sabres-3-30-2025'],['Washington Capitals vs. Chicago Blackhawks','Capital One Arena','Washington, DC','Friday','4/4/2025','7:00 PM','6546004','Washington-Capitals-vs--Chicago-Blackhawks-4-4-2025'],['Washington Capitals vs. Carolina Hurricanes','Capital One Arena','Washington, DC','Thursday','4/10/2025','7:00 PM','6546009','Washington-Capitals-vs--Carolina-Hurricanes-4-10-2025'],['Washington Capitals vs. Columbus Blue Jackets','Capital One Arena','Washington, DC','Sunday','4/13/2025','6:00 PM','6546014','Washington-Capitals-vs--Columbus-Blue-Jackets-4-13-2025']],'washington capitals','https://www.ticketnetwork.com');