JWU (Denver)

Southwestern (Tex.)

Fri, Apr. 3, 2020
7:00 PM CDT

Live statistics will be available at the start of the event in:


Overview

JWU (Denver)

Team Record Conf. Record Last Game
0-4 0-0 L, 28-2 at Oglethorpe

Southwestern (Tex.)

Team Record Conf. Record Last Game
4-0 0-0 W, 27-1 at Centenary (LA)

Team Comparison

JWU (Denver)

Man-up Percetange

7.7

Faceoff Percentage

10.2

Southwestern (Tex.)

Man-up Percetange

23.1

Faceoff Percentage

78.8

1.25GPG17.50
25.50GAA7.00
JWU (Denver) (based on 4 games)
Southwestern (Tex.) (based on 4 games)

Key Contributors


Points

Nick Botnick
223
Zac Asbury
Jack Towsley
213
Nick Doxey

Goals

Nick Botnick
212
Zac Asbury
Jack Towsley
29
Jacob Hamilton

Assists

Cole Hearn
111
Zac Asbury
Dylan Karl
16
Jack Carolan

GAA

There was a problem with a Velocity script
Pagestatcrew-lcxml-template
ErrorError invoking method 'get(java.lang.Integer)' in java.util.ArrayList at statcrew-lcxml-template[line 431, column 86]
Page source:
1: #if ($stats.view == 'pt')
2:     ## CONFIGURATION
3:     $website.include("options")
4:     #set ($options = $request.getAttribute("options"))
5: 
6:     #set ($sportCode =  $document.getRootElement().valueOf("network/@sportCode"))
7:     #set ($menLacrosseSportCode = 6)
8:     #set ($womenLacrosseSportCode = 10)
9: 
10:     #set ($pregame = $stats.pregame)
11:     #set ($startTime = $document.getRootElement().valueOf("network/@startTime"))
12:     #if ($document.getRootElement().valueOf("network/@tba") == 'Y')
13:         #set ($tba = true)
14:     #else
15:         #set ($tba = false)
16:     #end
17:     #set ($location = $document.getRootElement().valueOf("network/@location"))
18:     #set ($localDate = $document.getRootElement().valueOf("network/@localDate"))
19:     #set ($localTime = $document.getRootElement().valueOf("network/@localTime"))
20:     #set ($hasVideo = false)
21:     #if ($document.getRootElement().valueOf("primetime/@videoProvider").length() > 0 && $document.getRootElement().valueOf("primetime/@videoProvider") != "none")
22:         #set ($hasVideo = true)
23:     #end
24:     #if ($location != '')
25:         #set ($neutral = true)
26:     #else
27:         #set ($neutral = false)
28:     #end
29:     #if ($request.getParameter("paused") == 'y')
30:         #set ($paused = true)
31:     #else
32:         #set ($paused = false)
33:     #end
34: 
35:     #if ($pregame)
36:         #set ($visitorTeamId = $document.getRootElement().valueOf("team[@vh='V']/@teamId"))
37:         #set ($homeTeamId = $document.getRootElement().valueOf("team[@vh='H']/@teamId"))
38: 
39:         #if ($!options.get("primetime_preview_hide").equalsIgnoreCase("hide"))
40:             #set ($shouldStatsShow = false)
41:         #else
42:             #set ($shouldStatsShow = $preview.shouldStatsShow($homeTeamId,$visitorTeamId))
43:         #end
44:     #end
45: 
46:     <head>
47:         <script type="text/javascript" src='$website.cdn("/info/jquery-2.1.1.js")'></script>
48:         <script type="text/javascript" src='$website.cdn("/info/notifications/jquery.noty.packaged.min.js")'></script>
49:         <script type="text/javascript" src='$website.cdn("/info/dataTables/js/jquery.dataTables.js")'></script>
50:         <script type="text/javascript" src='$website.cdn("/info/momentjs/moment.js")'></script>
51:         <script type="text/javascript" src='$website.cdn("/info/primetime3/js/full_screen_api.js")'></script>
52:         <script type="text/javascript" src='$website.cdn("/info/primetime3/js/flipclock.min.js")'></script>
53: 
54:         $website.addCss($website.cdn("/info/dataTables/css/jquery.dataTables.css"))
55:         $website.addCss($website.cdn("/info/primetime3/css/flipclock.css"))
56: 
57:         <script type="text/javascript" src="/info/primetime3/js/pt3-embed.js"></script>
58: 
59:         <script type="text/javascript">var jQuery_2_1 = $.noConflict(true);</script>
60:         <script type="text/javascript" src="/info/primetime3/js/add-ons.js"></script>
61:         <script type="text/javascript" src="/info/primetime3/js/pt3-util.js"></script>
62: 
63:         <script src="/info/primetime3/js/highcharts.js"></script>
64:         <script src="/info/primetime3/js/highcharts-more.js"></script>
65:         <script src="/info/primetime3/js/solid-gauge.js"></script>
66: 
67:         <script type="text/javascript" src="/info/primetime3/js/pt3-preview-charts.js"></script>
68: 
69:         $website.addCss("/info/dataTables/css/jquery.dataTables.css")
70: 
71:         $website.addCss("/info/primetime3/css/pt3-styles.css")
72:         $website.addCss("/info/primetime3/css/pt3-responsive.css")
73:         $website.addCss("/info/primetime3/css/pt3-lacrosse-icons.css")
74: 
75:         <script type="text/javascript" src="/info/primetime3/js/restive.js"></script>
76:         <script type="text/javascript" src="/info/primetime3/js/pt3-restive.js"></script>
77: 
78:         <script type="text/javascript">
79:             var conf = new Object();
80:             conf.locale = '${locale}';
81:             conf.videoProvider = '${videoProvider}';
82:             conf.videoId = '${videoId}';
83:             conf.eventId = '$document.getRootElement().valueOf("network/@eventId")';
84:             conf.eventIdHashCode = '$eventIdHashCode';
85:             conf.visitorTeamLogo = '$stats.visitorTeamLogo';
86:             conf.homeTeamLogo = '$stats.homeTeamLogo';
87:             conf.visitorTeamColor = '#121212';
88:             conf.homeTeamColor = '#6D6D6D';
89:             conf.startTime = '$startTime';
90:             conf.pregame = $pregame;
91:             conf.tba = $tba;
92:             conf.localDate = '$localDate';
93:             conf.localTime = '$localTime';
94:             conf.visitor = '${tool.esc.javascript($document.getRootElement().valueOf("team[@vh='V']/@name"))}';
95:             conf.home = '${tool.esc.javascript($document.getRootElement().valueOf("team[@vh='H']/@name"))}';
96:             conf.currentDate = new Date();
97:             conf.statusFinal = $stats.final;
98:             conf.neutral = $neutral;
99:             conf.paused = $paused;
100: 
101:             conf.visitorTeamLighterColor = $.fn.increase_brightness(conf.visitorTeamColor, 30);
102:             conf.homeTeamLighterColor = $.fn.increase_brightness(conf.homeTeamColor, 30);
103:         </script>
104: 
105:         <script type="text/javascript" src="/info/primetime3/js/pt3-boxscore-client.js"></script>
106:         <script type="text/javascript" src="/info/primetime3/js/pt3-lacrosse-template.js"></script>
107:     </head>
108: 
109:     #if ($pregame && !$shouldStatsShow)
110:         <div id="primetime-wrapper" class="primetime-pre-game primetime-lacrosse clearfix">
111:             <div class="primetime-overflow clearfix">
112:                 <div id="primetime-header" class="grid-row">
113:                     <div class="grid-col grid-col-hdr">
114: 
115:                         <div class="pt-header clearfix">
116:                             <div class="pt-team pt-team-away visitor-team-color" style="background: $document.getRootElement().valueOf("team[@vh='V']/@color")">
117:                                 <img src="$stats.visitorTeamLogo" alt="" class="team-logo visitor-team-logo" />
118:                                 <h3 class="team-name visitor-team-name">$document.getRootElement().valueOf("team[@vh='V']/@name")</h3>
119:                             </div>
120: 
121:                             <div class="pt-team pt-team-home home-team-color" style="background: $document.getRootElement().valueOf("team[@vh='H']/@color")">
122:                                 <img src="$stats.homeTeamLogo" alt="" class="team-logo home-team-logo" />
123:                                 <h3 class="team-name home-team-name">$document.getRootElement().valueOf("team[@vh='H']/@name")</h3>
124:                             </div>
125: 
126:                             <div class="pt-match-scoreboard clearfix">
127:                                 <div class="pt-mtach-info pt-pregame">
128:                                     <center>
129:                                         <div>
130:                                             $localDate <br>
131:                                             #if ($tba)
132:                                                 TBA
133:                                             #else
134:                                                 $localTime
135:                                             #end
136:                                         </div>
137:                                     </center>
138:                                 </div>
139:                             </div>
140:                         </div>
141:                     </div>
142:                 </div>
143:                 <div class="grid-row-container clearfix">
144:                     <div class="grid-row preview">
145:                         <div class="content">
146:                             <div class="pt-last-play clearfix" style="display: none">
147:                                     <span class="pt-label clearfix" style="text-align: center !important; width: 100% ">
148:                                         This event doesn't have a set start time, but PrimeTime will be available once the event begins.
149:                                     </span>
150:                             </div>
151:                             <div class="text">
152:                                 <h3>
153:                                     Live statistics will be available at the start of the event in:
154:                                 </h3>
155:                                 <center>
156:                                     <div class="clock"></div><br/>
157:                                     #if ($tba)
158:                                         Days
159:                                     #end
160:                                 </center>
161:                             </div>
162:                         </div>
163:                     </div>
164:                     <div class="pt-game-info grid-row clearfix">
165:                         <div class="pt-tabs-panes clearfix">
166:                             <div id="stats-tabs" class="pt-tabs-pane clearfix">
167:                                 <div id="divGameInformation" class="grid-row">
168:                                     <div class="grid-col grid-col-gi grid-col1">
169:                                         <h2 class="grid-title">
170:                                             Game Information
171:                                         </h2>
172:                                         <div class="grid-content clearfix">
173:                                             <div class="pt-game-information clearfix">
174:                                                 <div class="pt-row clearfix">
175:                                                     <center>
176:                                                         <div class="game-location pt-col">
177:                                                             <span class="date">
178:                                                                 $localDate<br />
179:                                                                 #if ($tba)
180:                                                                     TBA
181:                                                                 #else
182:                                                                     $localTime
183:                                                                 #end
184:                                                             </span>
185:                                                             <h3>Date & Time</h3>
186:                                                         </div>
187:                                                         #if ($location != '')
188:                                                             <div class="game-venue pt-col">
189:                                                             <span class="venue">
190:                                                                 $location<br />
191:                                                                 (Neutral)
192:                                                             </span>
193:                                                                 <h3>Location</h3>
194:                                                             </div>
195:                                                         #end
196:                                                     </center>
197:                                                 </div>
198:                                             </div>
199:                                         </div>
200:                                     </div>
201:                                 </div>
202:                             </div>
203:                         </div>
204:                     </div>
205:                 </div>
206: 
207:                 <div id="primetime-footer" class="grid-row">
208:                     <div class="grid-col grid-col-ftr">
209:                         <a href="/"><img src="/info/primetime3/images/presto-logo.png" alt="prestosports website" /></a>
210:                     </div>
211:                 </div>
212:             </div>
213:         ## GENERAL INFORMATION
214:         </div>
215:     #elseif ($pregame && $shouldStatsShow)
216:         #set ($visitorTeamId = $document.getRootElement().valueOf("team[@vh='V']/@teamId"))
217:         #set ($homeTeamId = $document.getRootElement().valueOf("team[@vh='H']/@teamId"))
218: 
219:         #if ($sportCode == $menLacrosseSportCode)
220:             #set ($teamDonutChartsCount = 2)
221:             #set ($teamBarChartsCount = 2)
222:             #set ($teamBarRanges = {"gfa": 15.0, "gaa": 15.0})
223:             #set ($teamStats = ["pppt", "fopt", "pppt100", "fopt100", "gfa", "gaa"])
224:             #set ($teamStatsLabels = {"pppt": "Man-up Percetange", "fopt": "Faceoff Percentage", "gfa": "GPG", "gaa": "GAA"})
225:         #else
226:             #set ($teamDonutChartsCount = 1)
227:             #set ($teamBarChartsCount = 3)
228:             #set ($teamBarRanges = {"gfa": 20.0, "gaa": 20.0, "dcpg": 20.0})
229:             #set ($teamStats = ["fppt", "fppt100", "gfa", "gaa", "dcpg"])
230:             #set ($teamStatsLabels = {"fppt": "Free position percentage", "gfa": "GPG", "gaa": "GAA", "dcpg": "DCPG"})
231:         #end
232:         #set ($topStats = ["p", "g", "a", "gaa"])
233: 
234:         #set ($visitorStats = $preview.getTeam($visitorTeamId).setTeamStats($teamStats).setTopStats($topStats).calculate())
235:         #set ($homeStats = $preview.getTeam($homeTeamId).setTeamStats($teamStats).setTopStats($topStats).calculate())
236: 
237:     <div id="primetime-wrapper" class="primetime-pre-game primetime-lacrosse clearfix">
238:         <div class="primetime-overflow clearfix">
239:             <div id="primetime-header" class="grid-row">
240:                 <div class="grid-col grid-col-hdr">
241:                     <div class="pt-header clearfix">
242:                         <div class="pt-team pt-team-away visitor-team-color" style="background: $document.getRootElement().valueOf("team[@vh='V']/@color")">
243:                             <img src="$stats.visitorTeamLogo" alt="" class="team-logo visitor-team-logo" />
244:                             <h3 class="team-name visitor-team-name">$document.getRootElement().valueOf("team[@vh='V']/@name")</h3>
245:                         </div>
246: 
247:                         <div class="pt-team pt-team-home home-team-color" style="background: $document.getRootElement().valueOf("team[@vh='H']/@color")">
248:                             <img src="$stats.homeTeamLogo" alt="" class="team-logo home-team-logo" />
249:                             <h3 class="team-name home-team-name">$document.getRootElement().valueOf("team[@vh='H']/@name")</h3>
250:                         </div>
251: 
252:                         <div class="pt-match-scoreboard clearfix">
253:                             <div class="pt-mtach-info pt-pregame">
254:                                 <center>
255:                                     <div>
256:                                         $localDate <br>
257:                                         #if ($tba)
258:                                             TBA
259:                                         #else
260:                                             $localTime
261:                                         #end
262:                                     </div>
263:                                 </center>
264:                             </div>
265:                         </div>
266:                     </div>
267:                 </div>
268:             </div>
269:             <div class="grid-row-container clearfix">
270:                 <div class="grid-row preview">
271:                     <div class="content">
272:                         <div class="pt-last-play clearfix" style="display: none">
273:                             <span class="pt-label clearfix" style="text-align: center !important; width: 100% ">
274:                                 This event doesn't have a set start time, but PrimeTime will be available once the event begins.
275:                             </span>
276:                         </div>
277:                         <div class="text">
278:                             <h3>
279:                                 Live statistics will be available at the start of the event in:
280:                             </h3>
281:                             <center>
282:                                 <div class="clock"></div><br/>
283:                                 #if ($tba)
284:                                     Days
285:                                 #end
286:                             </center>
287:                         </div>
288:                     </div>
289:                 </div>
290: 
291:                 <!-- Team Overview -->
292:                 <div class="grid-row pt-overview">
293:                     <h2>Overview</h2>
294:                     <div class="grid-col grid-col-e grid-col2 background-black">
295:                         <h3>$document.getRootElement().valueOf("team[@vh='V']/@name")</h3>
296:                         <div class="container clearfix pt-live-action">
297:                             <table>
298:                                 <thead>
299:                                 <tr>
300:                                     <th>Team Record</th>
301:                                     <th>Conf. Record</th>
302:                                     <th>Last Game</th>
303:                                 </tr>
304:                                 </thead>
305:                                 <tbody>
306:                                 <tr>
307:                                     <td>${visitorStats.overallRecord}</td>
308:                                     <td>${visitorStats.conferenceRecord}</td>
309:                                     <td style="text-align: center">
310:                                         ${visitorStats.lastGame.APResult}
311:                                         <span>
312:                                             #if ($visitorStats.lastGame.neutralSite.length() > 0 || $visitorStats.lastGame.home)
313:                                                 vs.
314:                                             #else
315:                                                 at
316:                                             #end
317:                                             ${visitorStats.lastGame.opponent.name}
318:                                         </span>
319:                                     </td>
320:                                 </tr>
321:                                 </tbody>
322:                             </table>
323:                         </div>
324:                         <br />
325:                     </div>
326:                     <div class="grid-col grid-col-e grid-col2 background-gray">
327:                         <h3>$document.getRootElement().valueOf("team[@vh='H']/@name")</h3>
328:                         <div class="pt-live-action">
329:                             <table>
330:                                 <thead>
331:                                 <tr>
332:                                     <th>Team Record</th>
333:                                     <th>Conf. Record</th>
334:                                     <th>Last Game</th>
335:                                 </tr>
336:                                 </thead>
337:                                 <tbody>
338:                                 <tr>
339:                                     <td>${homeStats.overallRecord}</td>
340:                                     <td>${homeStats.conferenceRecord}</td>
341:                                     <td style="text-align: center">
342:                                         ${homeStats.lastGame.APResult}
343:                                         <span>
344:                                             #if ($homeStats.lastGame.neutralSite.length() > 0 || $homeStats.lastGame.home)
345:                                                 vs.
346:                                             #else
347:                                                 at
348:                                             #end
349:                                             ${homeStats.lastGame.opponent.name}
350:                                         </span>
351:                                     </td>
352:                                 </tr>
353:                                 </tbody>
354:                             </table>
355:                         </div>
356:                         <br />
357:                     </div>
358:                 </div>
359: 
360:                 <!-- Team Comaprison -->
361:                 <div class="grid-row">
362:                     <div class="grid-col team-compare">
363:                         <h2>Team Comparison</h2>
364:                         <div class="grid-col clearfix">
365:                             #set ($teamDonutQuantity = $teamDonutChartsCount - 1)
366:                             <div class="grid-col-e left">
367:                                 <h3>$document.getRootElement().valueOf("team[@vh='V']/@name")</h3>
368:                                 #foreach ($i in [0..$teamDonutQuantity])
369:                                     #set ($statsKey = $teamStats[$i])
370:                                     #if ($visitorStats.teamStats[$statsKey])
371:                                         <div class="chart-container">
372:                                             <h3>${teamStatsLabels[$statsKey]}</h3>
373:                                             <h3 class="stat-total-value">${formatter.formatNumber($visitorStats.teamStats[$statsKey], $formats.get($statsKey))}</h3>
374:                                             <div class="stats-chart ts-${statsKey} visitor"></div>
375:                                         </div>
376:                                     #end
377:                                 #end
378:                             </div>
379:                             <div class="grid-col-e right">
380:                                 <h3>$document.getRootElement().valueOf("team[@vh='H']/@name")</h3>
381:                                 #foreach ($i in [0..$teamDonutQuantity])
382:                                     #set ($statsKey = $teamStats[$i])
383:                                     #if ($homeStats.teamStats[$statsKey])
384:                                         <div class="chart-container">
385:                                             <h3>${teamStatsLabels[$statsKey]}</h3>
386:                                             <h3 class="stat-total-value">${formatter.formatNumber($homeStats.teamStats[$statsKey], $formats.get($statsKey))}</h3>
387:                                             <div class="stats-chart ts-${statsKey} home"></div>
388:                                         </div>
389:                                     #end
390:                                 #end
391:                             </div>
392:                         </div>
393: 
394:                         <div class="game-leaders team-game-leaders">
395:                             <div class="top">
396:                                 <div class="charts">
397:                                     ## Multiplied by 2 because we need to skip the stats100
398:                                     #set ($teamBarChartsStart = $teamDonutChartsCount * 2)
399:                                     #set ($teamBarQuantity = $teamBarChartsStart + $teamBarChartsCount - 1)
400:                                     #foreach ($i in [$teamBarChartsStart..$teamBarQuantity])
401:                                         #set ($statsKey = $teamStats[$i])
402:                                         <div class="chart">
403:                                             <div class="stats-chart visitor ts-$statsKey"></div>
404:                                             <div class="label"><span>${formatter.formatNumber($visitorStats.teamStats[$statsKey], $formats.get($statsKey))}</span><span class="title">${teamStatsLabels[$statsKey]}</span><span>${formatter.formatNumber($homeStats.teamStats[$statsKey], $formats.get($statsKey))}</span></div>
405:                                             <div class="stats-chart home ts-$statsKey"></div>
406:                                         </div>
407:                                     #end
408:                                 </div>
409:                             </div>
410:                         </div>
411: 
412:                         <div class="legend grid-col clearfix">
413:                             <div class="stats-value visitor">$document.getRootElement().valueOf("team[@vh='V']/@name") (based on ${visitorStats.gamesPlayed} games)</div>
414:                             <div class="stats-value home">$document.getRootElement().valueOf("team[@vh='H']/@name") (based on ${homeStats.gamesPlayed} games)</div>
415:                         </div>
416:                     </div>
417:                 </div>
418: 
419:                 <!-- Key Contributors -->
420:                 <div class="grid-row">
421:                     <div class="grid-col grid-col1 game-leaders grid-col">
422:                         <h2>Key Contributors</h2>
423:                         #macro (gameLeaders $category $label $visitorPlayers $homePlayers $quantityPlayers)
424:                             #set ($quantityPlayers = $quantityPlayers - 1)
425:                             <div class="game-leaders player-game-leaders">
426:                                 <br/>
427:                                 <h3>$label</h3>
428:                                 <div class="grid-col top1">
429:                                     <div class="grid-col charts">
430:                                         #foreach ($i in [0..$quantityPlayers])
431:                                             #set ($visitorTopPlayer = $visitorPlayers[$i])
432:                                             #set ($homeTopPlayer = $homePlayers[$i])
433:                                             ## Using the format '#' directly since the stats has set 0.0 as format on the stats metadata object
434:                                             #set ($format = '#')
435:                                             #if ($category == "gaa") ## Except for gaa we want decimals
436:                                                 #set ($format = $formats.get($category))
437:                                             #end
438:                                             <div class="grid-col chart">
439:                                                 <div class="stats-player visitor">
440:                                                     <div class="player-name">${visitorTopPlayer.firstName} ${visitorTopPlayer.lastName}</div>
441:                                                     <div class="stats-chart visitor ${category}-top${i}"></div>
442:                                                 </div>
443:                                                 <div class="label"><span>${formatter.formatNumber($visitorTopPlayer.stats[$category], $format)}</span><span class="title"></span><span>${formatter.formatNumber($homeTopPlayer.stats[$category], $format)}</span></div>
444:                                                 <div class="stats-player home">
445:                                                     <div class="player-name">${homeTopPlayer.firstName} ${homeTopPlayer.lastName}</div>
446:                                                     <div class="stats-chart home ${category}-top${i}"></div>
447:                                                 </div>
448:                                             </div>
449:                                         #end
450:                                     </div>
451:                                 </div>
452:                             </div>
453:                         #end
454: 
455:                         #gameLeaders('p' 'Points' $visitorStats.topStats['p'] $homeStats.topStats['p'] 2)
456:                         #gameLeaders('g' 'Goals' $visitorStats.topStats['g'] $homeStats.topStats['g'] 2)
457:                         #gameLeaders('a' 'Assists' $visitorStats.topStats['a'] $homeStats.topStats['a'] 2)
458:                         #gameLeaders('gaa' 'GAA' $visitorStats.topStats['gaa'] $homeStats.topStats['gaa'] 1)
459: 
460:                         <div class="legend grid-col clearfix">
461:                             <div class="stats-value visitor">$document.getRootElement().valueOf("team[@vh='V']/@name") (based on ${visitorStats.gamesPlayed} games)</div>
462:                             <div class="stats-value home">$document.getRootElement().valueOf("team[@vh='H']/@name") (based on ${homeStats.gamesPlayed} games)</div>
463:                         </div>
464:                     </div>
465:                 </div>
466: 
467:                 <div class="pt-game-info grid-row clearfix">
468:                     <div class="pt-tabs-panes clearfix">
469:                         <div id="stats-tabs" class="pt-tabs-pane clearfix">
470:                             <div id="divGameInformation" class="grid-row">
471:                                 <div class="grid-col grid-col-gi grid-col1">
472:                                     <h2 class="grid-title">
473:                                         Game Information
474:                                     </h2>
475:                                     <div class="grid-content clearfix">
476:                                         <div class="pt-game-information clearfix">
477:                                             <div class="pt-row clearfix">
478:                                                 <center>
479:                                                     <div class="game-location pt-col">
480:                                                             <span class="date">
481:                                                                 $localDate<br />
482:                                                                 #if ($tba)
483:                                                                     TBA
484:                                                                 #else
485:                                                                     $localTime
486:                                                                 #end
487:                                                             </span>
488:                                                         <h3>Date & Time</h3>
489:                                                     </div>
490:                                                     #if ($location != '')
491:                                                         <div class="game-venue pt-col">
492:                                                             <span class="venue">
493:                                                                 $location<br />
494:                                                                 (Neutral)
495:                                                             </span>
496:                                                             <h3>Location</h3>
497:                                                         </div>
498:                                                     #end
499:                                                 </center>
500:                                             </div>
501:                                         </div>
502:                                     </div>
503:                                 </div>
504:                             </div>
505:                         </div>
506:                     </div>
507:                 </div>
508:             </div>
509: 
510:             <div id="primetime-footer" class="grid-row">
511:                 <div class="grid-col grid-col-ftr">
512:                     <a href="/"><img src="/info/primetime3/images/presto-logo.png" alt="prestosports website" /></a>
513:                 </div>
514:             </div>
515:         </div>
516: 
517:         <script type="text/javascript">
518:         (function($) {
519:             $(document).ready(function() {
520:                 // Team Comparison
521:                 Highcharts.setOptions({
522:                     colors: [conf.visitorTeamColor, null]
523:                 });
524: 
525:                 #foreach ($i in [0..$teamDonutQuantity])
526:                     #set ($statsKey = $teamStats[$i])
527:                     #set ($stats100Key = $statsKey + '100')
528:                     $.fn.buildDonutChart('.stats-chart.ts-${statsKey}.visitor', ${visitorStats.teamStats[$stats100Key]}, ${visitorStats.teamStats[$statsKey]}, conf.visitorTeamLighterColor);
529:                 #end
530: 
531:                 Highcharts.setOptions({
532:                     colors: [conf.homeTeamColor, null]
533:                 });
534: 
535:                 #foreach ($i in [0..$teamDonutQuantity])
536:                     #set ($statsKey = $teamStats[$i])
537:                     #set ($stats100Key = $statsKey + '100')
538:                     $.fn.buildDonutChart('.stats-chart.ts-${statsKey}.home', ${homeStats.teamStats[$stats100Key]}, ${homeStats.teamStats[$statsKey]}, conf.homeTeamLighterColor);
539:                 #end
540: 
541:                 // Radialize the colors
542:                 Highcharts.setOptions({
543:                     colors: [conf.homeTeamColor, conf.visitorTeamColor]
544:                 });
545: 
546:                 #set ($barTeamKeys = ["gfa", "gaa", "dcpg"])
547:                 #foreach ($visitorStats in $visitorStats.teamStats.entrySet())
548:                     #if ($visitorStats.value && $homeStats.teamStats[$visitorStats.key])
549:                         #if ($barTeamKeys.contains($visitorStats.key))
550:                             $.fn.buildVisitorBarChart('.team-game-leaders .visitor.ts-${visitorStats.key}', ${visitorStats.value}, $teamBarRanges[$visitorStats.key], conf.visitorTeamLighterColor);
551:                             $.fn.buildHomeBarChart('.team-game-leaders .home.ts-${visitorStats.key}', ${homeStats.teamStats[$visitorStats.key]}, $teamBarRanges[$visitorStats.key], conf.homeTeamLighterColor);
552:                         #end
553:                     #end
554:                 #end
555: 
556:                 // Key Contributors
557:                 #macro (playerStatsScript $category $visitorPlayers $homePlayers $visitorLimit $homeLimit $playersLimit)
558:                     #set ($playersLimit = $playersLimit - 1)
559:                     #foreach ($i in [0..$playersLimit])
560:                         #set ($visitorTopPlayer = $visitorPlayers[$i])
561:                         #set ($homeTopPlayer = $homePlayers[$i])
562:                         $.fn.buildVisitorBarChart('.${category}-top${i}.visitor', ${visitorTopPlayer.stats[$category]}, $visitorLimit, conf.visitorTeamLighterColor);
563:                         $.fn.buildHomeBarChart('.${category}-top${i}.home', ${homeTopPlayer.stats[$category]}, $homeLimit, conf.homeTeamLighterColor);
564:                     #end
565:                 #end
566: 
567:                 #playerStatsScript('p' $visitorStats.topStats['p'] $homeStats.topStats['p'] 100 100 2)
568:                 #playerStatsScript('g' $visitorStats.topStats['g'] $homeStats.topStats['g'] 100 100 2)
569:                 #playerStatsScript('a' $visitorStats.topStats['a'] $homeStats.topStats['a'] 100 100 2)
570:                 #playerStatsScript('gaa' $visitorStats.topStats['gaa'] $homeStats.topStats['gaa'] $teamBarRanges['gaa'] $teamBarRanges['gaa'] 1)
571: 
572:                 $('.stats-value.visitor').css("background-color", conf.visitorTeamColor);
573:                 $('.stats-value.visitor.light').css("background-color", conf.visitorTeamLighterColor);
574:                 $('.stats-value.home').css("background-color", conf.homeTeamColor);
575:                 $('.stats-value.home.light').css("background-color", conf.homeTeamLighterColor);
576:             });
577:         })(jQuery);
578:         </script>
579: 
580:     ## GENERAL INFORMATION
581:     </div>
582: 
583:     #else
584:         <div id="primetime-wrapper" class="primetime-lacrosse primetime-wrapper clearfix">
585: 
586:             <div class="primetime-overflow clearfix">
587:                 ## HEADER
588:                 <div id="primetime-header" class="grid-row">
589:                     <div class="grid-col grid-col-hdr">
590: 
591:                         <div class="primetime-screen-controls clearfix">
592:                             <a href="#" class="full-screen-button pt-icon-resize-full"><span class="text">Switch</span></a>
593:                             <a href="#" class="normal-screen-button pt-icon-resize-small"><span class="text">Switch</span></a>
594:                             <a href="#" class="expand-button pt-icon-link-ext"><span class="text">Switch</span></a>
595:                         </div>
596: 
597:                         <div class="pt-header clearfix">
598: 
599:                             <div class="pt-team pt-team-away visitor-team-color"><img src="$stats.visitorTeamLogo" alt="" class="team-logo visitor-team-logo" /><span
600:                                     class="team-record visitor-team-record"></span>
601:                                 <h3 class="team-name visitor-team-name"></h3>
602:                             </div>
603: 
604:                             <div class="pt-team pt-team-home home-team-color">
605:                                 <span class="team-record home-team-record"></span>
606:                                 <img src="$stats.homeTeamLogo" alt="" class="team-logo home-team-logo" />
607:                                 <h3 class="team-name home-team-name"></h3>
608:                             </div>
609: 
610:                             <div class="pt-match-scoreboard clearfix">
611:                                 <p class="team-score visitor-team-score"></p>
612:                                 <p class="team-score home-team-score"></p>
613: 
614:                                 <div class="pt-mtach-info">
615:                                     <span class="time scoreboard-time"></span><br />
616:                                     <span class="period scoreboard-period" style="width: 100%"></span>
617:                                 </div>
618: 
619:                             </div>
620: 
621:                             <div id="pt-page-nav" class="pt-page-nav">
622:                                 <a href="#" class="pt-menu">Menu</a>
623:                                 <ul class="clearfix">
624:                                     <li><a href="#live-action-title" data-stroke="1" data-id="#live-action-title">Live Action</a></li>
625:                                     <li><a href="#line-score-title" data-stroke="2" data-id="#line-score-title">Line Score</a></li>
626:                                     <li><a href="#scoring-plays-title" data-stroke="3" data-id="#scoring-plays-title" data-tab-id="#stats-tabs">Scoring Plays</a></li>
627:                                     <li><a href="#team-comparison-title" data-stroke="4" data-id="#team-comparison-title" data-tab-id="#stats-tabs">Team Comparison</a></li>
628:                                     <li><a href="#individual-stats-title" data-stroke="5" data-id="#individual-stats-title" data-tab-id="#stats-tabs">Individual Stats</a></li>
629:                                     <li><a href="#game-info-title" data-stroke="6" data-id="#game-info-title" data-tab-id="#stats-tabs">Game Information</a></li>
630:                                     <li><a href="#play-by-play-title" data-stroke="7" data-id="#play-by-play-title" data-tab-id="#pbp-tabs">Play by Play</a></li>
631:                                 </ul>
632:                             </div>
633: 
634:                         </div>
635: 
636:                     </div>
637:                 </div>
638:                 ## PRIMETIME HEADER
639: 
640:                 ## GRID ROW CONTAINER
641:                 <div class="grid-row-container clearfix">
642:                     ## GRID ROW
643:                     #set ($gridRowClass = "grid-row no-video")
644:                     #if ($hasVideo)
645:                         #set ($gridRowClass = "grid-row")
646:                     #end
647: 
648:                     <div id="firstPanelRow" class="$gridRowClass">
649: 
650:                         #set ($gridCounter = 0)
651: 
652:                         #if ($hasVideo)
653:                             #set ($gridCounter = $gridCounter + 1)
654:                             <div class="grid-col grid-col-v grid-col${gridCounter}">
655:                                 <h3 id="video-field-title" class="grid-title">Broadcast<span class="close">x</span></h3>
656:                                 <div class="grid-content clearfix">
657:                                     <div class='embed-container'>
658: 
659:                                     </div>
660:                                 </div>
661:                             ## GRID CONTENT
662:                             </div>
663:                         ## VIDEO COL
664:                         #end
665: 
666:                         #set ($gridCounter = $gridCounter + 1)
667:                         <div class="grid-col grid-col-cd grid-col${gridCounter}">
668:                             <h3 id="live-action-title" class="grid-title">
669:                                 Live Action<span class="close">x</span>
670:                             </h3>
671:                             <div class="grid-content clearfix">
672:                                 <div class="clearfix">
673:                                     <div class="container clearfix pt-live-action">
674:                                         <table>
675:                                             <thead>
676:                                             <tr>
677:                                                 <th>Time</th>
678:                                                 <th>Action</th>
679:                                                 <th>Plays</th>
680:                                             </tr>
681:                                             </thead>
682:                                             <tbody>
683:                                             </tbody>
684:                                         </table>
685:                                     </div>
686:                                 </div>
687:                             </div>
688:                         </div>
689:                     </div>
690: 
691:                     <div class="grid-row">
692:                         #set ($gridCounter = $gridCounter + 1)
693:                         <div class="grid-col grid-col${gridCounter}">
694:                             <h3 id="line-score-title" class="grid-title">
695:                                 Line Score<span class="close">x</span>
696:                             </h3>
697:                             <div class="grid-content clearfix">
698:                                 <div class="pt-line-score clearfix">
699:                                     <table id="scoreByPeriod">
700:                                         <thead>
701:                                         <tr>
702:                                             <th>&nbsp;</th>
703:                                         </tr>
704:                                         </thead>
705:                                         <tbody>
706:                                         <tr class="visitor">
707:                                             <td><img src="" alt=""
708:                                                      class="team-logo visitor-team-logo" />
709:                                                 <span class="team-name visitor-team-name"></span></td>
710:                                         </tr>
711:                                         <tr class="home">
712:                                             <td><img src="" alt=""
713:                                                      class="team-logo home-team-logo" />
714:                                                 <span class="team-name home-team-name"></span></td>
715:                                         </tr>
716:                                         </tbody>
717:                                     </table>
718: 
719:                                 </div>
720:                             </div>
721:                         ## GRID CONTENT
722:                         </div>
723:                     ## LINE SCORE
724:                     </div>
725: 
726:                     ## GRID ROW ## TABS
727:                     <div class="pt-game-info clearfix">
728: 
729:                         <ul class="pt-tabs clearfix">
730:                             <li class="current"><a href="#stats-tabs">Statistics</a></li>
731:                             <li><a href="#pbp-tabs">Play By Play</a></li>
732:                         </ul>
733: 
734:                         <div class="pt-tabs-panes clearfix">
735:                             <div id="stats-tabs" class="pt-tabs-pane clearfix">
736: 
737:                                 ## GRID ROW
738:                                 <div class="grid-row">
739:                                     #set ($gridCounter = $gridCounter + 1)
740:                                     <div class="grid-col grid-col-sp grid-col${gridCounter}">
741:                                         <h3 id="scoring-plays-title" class="grid-title">
742:                                             Scoring Plays<span class="close">x</span>
743:                                         </h3>
744:                                         <div class="grid-content clearfix">
745:                                             <div id="scoringPlayList" class="pt-scoring-plays clearfix">
746:                                             </div>
747:                                         </div>
748:                                     ## GRID CONTENT
749: 
750:                                     </div>
751:                                     ## SCRING PLAY
752:                                 </div>
753: 
754:                                 ## GRID ROW ##GRID ROW
755:                                 <div class="grid-row">
756:                                     #set ($gridCounter = $gridCounter + 1)
757:                                     <div class="grid-col grid-col-tc grid-col${gridCounter}">
758:                                         <h3 id="team-comparison-title" class="grid-title">
759:                                             Team Comparison<span class="close">x</span>
760:                                         </h3>
761:                                         <div class="grid-content clearfix">
762:                                             <div class="pt-team-compare clearfix">
763:                                                 <table id="teamCompare">
764:                                                     <thead>
765:                                                     <tr>
766:                                                         <th><img src="" alt="" class="team-logo visitor-team-logo" /><br />
767:                                                             <span class="team-name visitor-team-name"></span></th>
768:                                                         <th> <span></span></th>
769:                                                         <th><img src="" alt="" class="team-logo home-team-logo" /><br />
770:                                                             <span class="team-name home-team-name"></span></th>
771:                                                     </tr>
772:                                                     </thead>
773: 
774:                                                     <tbody>
775:                                                     <tr class="stats-shots">
776:                                                         <td></td>
777:                                                         <td class="stats-cat">Shots</td>
778:                                                         <td></td>
779:                                                     </tr>
780: 
781:                                                     <tr class="stats-shots-goal">
782:                                                         <td></td>
783:                                                         <td class="stats-cat">Shots on goal</td>
784:                                                         <td></td>
785:                                                     </tr>
786: 
787:                                                     <tr class="stats-free-shots">
788:                                                         <td></td>
789:                                                         <td class="stats-cat">Free position shots</td>
790:                                                         <td></td>
791:                                                     </tr>
792: 
793: 
794:                                                     <tr class="stats-saves">
795:                                                         <td></td>
796:                                                         <td class="stats-cat">Saves</td>
797:                                                         <td></td>
798:                                                     </tr>
799: 
800:                                                     <tr class="stats-face-won">
801:                                                         <td></td>
802:                                                         <td class="stats-cat">Face offs won</td>
803:                                                         <td></td>
804:                                                     </tr>
805: 
806:                                                     <tr class="stats-draw-controls">
807:                                                         <td></td>
808:                                                         <td class="stats-cat">Draw controls</td>
809:                                                         <td></td>
810:                                                     </tr>
811: 
812:                                                     <tr class="stats-ground-balls">
813:                                                         <td></td>
814:                                                         <td class="stats-cat">Ground balls</td>
815:                                                         <td></td>
816:                                                     </tr>
817: 
818:                                                     <tr class="stats-clears">
819:                                                         <td></td>
820:                                                         <td class="stats-cat">Clears</td>
821:                                                         <td></td>
822:                                                     </tr>
823: 
824:                                                     <tr class="stats-turnovers">
825:                                                         <td></td>
826:                                                         <td class="stats-cat">Turnovers</td>
827:                                                         <td></td>
828:                                                     </tr>
829: 
830:                                                     <tr class="stats-caused-to">
831:                                                         <td></td>
832:                                                         <td class="stats-cat">Caused TO</td>
833:                                                         <td></td>
834:                                                     </tr>
835: 
836:                                                     <tr class="stats-extra-man">
837:                                                         <td></td>
838:                                                         <td class="stats-cat">Man Up</td>
839:                                                         <td></td>
840:                                                     </tr>
841: 
842:                                                     <tr class="stats-penalties">
843:                                                         <td></td>
844:                                                         <td class="stats-cat">Penalties</td>
845:                                                         <td></td>
846:                                                     </tr>
847: 
848:                                                     <tr class="stats-fouls">
849:                                                         <td></td>
850:                                                         <td class="stats-cat">Fouls</td>
851:                                                         <td></td>
852:                                                     </tr>
853: 
854: 
855:                                                     </tbody>
856: 
857:                                                 </table>
858:                                             </div>
859:                                         </div>
860:                                     ## GRID CONTENT
861:                                     </div>
862:                                 ## TEAM COMPARE
863:                                 </div>
864:                                 ## GRID ROW ## GRID ROW
865:                                 <div class="grid-row">
866:                                     #set ($gridCounter = $gridCounter + 1)
867:                                     <div class="grid-col grid-col-is grid-col${gridCounter}">
868:                                         <h3 id="individual-stats-title" class="grid-title">
869:                                             Individual Stats<span class="close">x</span>
870:                                                                     <span>
871:                                                                         <img class="switchStats horizontal" src="/info/primetime3/images/horizontal_view.png" />
872:                                                                         &nbsp;
873:                                                                         <img class="switchStats vertical active" src="/info/primetime3/images/vertical_view.png" />
874:                                                                     </span>
875:                                         </h3>
876:                                         <div class="grid-content clearfix">
877:                                             <div class="pt-team-stats clearfix">
878: 
879:                                                 <div id="visitorTeamIndividualStats" class="active clearfix pt-stats-team">
880: 
881:                                                     <div class="pt-team clearfix">
882:                                                         <img src="" alt=""
883:                                                              class="team-logo visitor-team-logo active" />
884:                                                         <h3 class="team-name visitor-team-name"></h3>
885:                                                     </div>
886: 
887:                                                     <div class="pt-stats-tabs clearfix">
888:                                                         <div class="pt-panes clearfix">
889:                                                             <div id="vOffenseTab" class="pt-pane pt-pane1 clearfix">
890:                                                                 <div class="pt-row">
891:                                                                     <table class="goalieStats display"> <!-- goalies -->
892:                                                                         <thead>
893:                                                                         <tr>
894:                                                                             <th>#</th>
895:                                                                             <th>Goalie</th>
896:                                                                             <th>GA</th>
897:                                                                             <th>SV</th>
898:                                                                             <th>SF</th>
899:                                                                             <th>SV %</th>
900:                                                                             <th>Min</th>
901:                                                                         </tr>
902:                                                                         </thead>
903:                                                                         <tbody>
904: 
905:                                                                         </tbody>
906:                                                                     </table>
907:                                                                 </div>
908: 
909:                                                                 <div class="pt-row">
910:                                                                     <table class="playerStats display"> <!-- starters -->
911:                                                                         <thead>
912:                                                                         <tr>
913:                                                                             <th>#</th>
914:                                                                             <th>Player</th>
915:                                                                             <th class="toHide">Pos</th>
916:                                                                             <th>G</th>
917:                                                                             <th>A</th>
918:                                                                             <th class="toHide">P</th>
919:                                                                             <th>SH</th>
920:                                                                             <th class="toHide">Sog</th>
921:                                                                             <th class="toHide">FPG-A</th>
922:                                                                             <th>GB</th>
923:                                                                             <th class="toHide FO">FO</th>
924:                                                                             <th class="toHide DC">DC</th>
925:                                                                             <th>T/O</th>
926:                                                                             <th class="ct">CT</th>
927:                                                                             <th class="toHide PEN">PEN</th>
928:                                                                             <th class="toHide F">F</th>
929:                                                                         </tr>
930:                                                                         </thead>
931:                                                                         <tbody>
932: 
933:                                                                         </tbody>
934:                                                                     </table>
935:                                                                 </div>
936:                                                             </div>
937:                                                         </div>
938:                                                     </div>
939:                                                 </div>
940: 
941:                                                 <div id="homeTeamIndividualStats" class="clearfix pt-stats-team">
942: 
943:                                                     <div class="pt-team clearfix">
944:                                                         <img src="" alt=""
945:                                                              class="team-logo home-team-logo active" />
946:                                                         <h3 class="team-name home-team-name"></h3>
947:                                                     </div>
948: 
949:                                                     <div class="pt-stats-tabs clearfix">
950: 
951:                                                         <div class="pt-panes clearfix">
952:                                                             <div class="pt-pane clearfix">
953:                                                                 <div class="pt-row">
954:                                                                     <table class="goalieStats display"> <!-- goalies -->
955:                                                                         <thead>
956:                                                                         <tr>
957:                                                                             <th>#</th>
958:                                                                             <th>Goalie</th>
959:                                                                             <th>GA</th>
960:                                                                             <th>SV</th>
961:                                                                             <th>SF</th>
962:                                                                             <th>SV %</th>
963:                                                                             <th>Min</th>
964:                                                                         </tr>
965:                                                                         </thead>
966:                                                                         <tbody>
967: 
968:                                                                         </tbody>
969:                                                                     </table>
970:                                                                 </div>
971: 
972:                                                                 <div class="pt-row">
973:                                                                     <table class="playerStats display"> <!-- starters -->
974:                                                                         <thead>
975:                                                                         <tr>
976:                                                                             <th>#</th>
977:                                                                             <th>Player</th>
978:                                                                             <th class="toHide">Pos</th>
979:                                                                             <th>G</th>
980:                                                                             <th>A</th>
981:                                                                             <th class="toHide">P</th>
982:                                                                             <th>SH</th>
983:                                                                             <th class="toHide">Sog</th>
984:                                                                             <th class="toHide">FPG-A</th>
985:                                                                             <th>GB</th>
986:                                                                             <th class="toHide FO">FO</th>
987:                                                                             <th class="toHide DC">DC</th>
988:                                                                             <th>T/O</th>
989:                                                                             <th class="ct">CT</th>
990:                                                                             <th class="toHide PEN">PEN</th>
991:                                                                             <th class="toHide F">F</th>
992:                                                                         </tr>
993:                                                                         </thead>
994:                                                                         <tbody>
995: 
996:                                                                         </tbody>
997:                                                                     </table>
998:                                                                 </div>
999: 
1000:                                                             </div>
1001:                                                         </div>
1002:                                                     </div>
1003:                                                 </div>
1004: 
1005:                                             </div>
1006:                                         </div>
1007:                                     ## GRID CONTENT
1008:                                     </div>
1009:                                 ## INDIVISUAL STATS
1010:                                 </div>
1011:                                 ## GRID ROW ## GRID ROW
1012:                                 <div class="grid-row">
1013:                                     #set ($gridCounter = $gridCounter + 1)
1014:                                     <div class="grid-col grid-col-gi grid-col${gridCounter}">
1015:                                         <h3 id="game-info-title" class="grid-title">
1016:                                             Game Information<span class="close">x</span>
1017:                                         </h3>
1018:                                         <div class="grid-content clearfix">
1019:                                             <div class="pt-game-information clearfix">
1020: 
1021:                                                 <div class="pt-row clearfix">
1022:                                                     <center>
1023:                                                         <div class="date-time pt-col">
1024:                                                             <span id="gameInformationDate" class="date"></span>
1025:                                                             <span id="gameInformationTime" class="time"></span>
1026:                                                             <h3>Date & Time</h3>
1027:                                                         </div>
1028: 
1029:                                                         <div class="game-location pt-col">
1030:                                                             <span id="gameInformationLocation" class="location"></span>
1031:                                                             <h3>Location</h3>
1032:                                                         </div>
1033: 
1034:                                                         <div class="game-venue pt-col">
1035:                                                             <span id="gameInformationVenue" class="venue"></span>
1036:                                                             <h3>Venue</h3>
1037:                                                         </div>
1038: 
1039:                                                         <div class="weather pt-col">
1040: 
1041:                                                             <div class="weather-condition">
1042:                                                                 <span id="gameInformationTemperature" class="temp"></span>
1043:                                                                 <span id="gameInformationCondition" class="condition"></span>
1044:                                                             </div>
1045:                                                             <h3>Weather</h3>
1046:                                                         </div>
1047:                                                     </center>
1048:                                                 </div>
1049: 
1050:                                             </div>
1051:                                         </div>
1052:                                     ## GRID CONTENT
1053:                                     </div>
1054:                                 ## GENERAL INFORMATION
1055:                                 </div>
1056:                                 ## GRID ROW
1057:                             </div>
1058: 
1059:                             ## PLAY BY PLAY TABS
1060:                             <div id="pbp-tabs" class="pt-tabs-pane clearfix">
1061:                                 ## GRID ROW
1062:                                 <div class="grid-row">
1063:                                     #set ($gridCounter = $gridCounter + 1)
1064:                                     <div class="grid-col grid-col-ds grid-col${gridCounter}">
1065:                                         <h3 id="play-by-play-title" class="grid-title">
1066:                                             Play by Play<span class="close">x</span>
1067:                                         </h3>
1068:                                         <div class="grid-content clearfix">
1069:                                             <div id="playByPlay" class="clearfix">
1070:                                                 <select id="filterPeriod" class="dropdownFilter">
1071:                                                     <option value="" selected>ALL PERIODS</option>
1072:                                                 </select>
1073:                                                 <select id="filterTeam" class="dropdownFilter">
1074:                                                     <option value="" selected>BOTH TEAMS</option>
1075:                                                     <option value="" class="team-name visitor-team-name"></option>
1076:                                                     <option value="" class="team-name home-team-name"></option>
1077:                                                 </select>
1078:                                                 <select id="filterPlayType" class="dropdownFilter">
1079:                                                     <option value="" selected>ALL PLAYS</option>
1080:                                                     <option value="SHOT">Shot</option>
1081:                                                     <option value="FPA" class="women">Free position attempt</option>
1082:                                                     <option value="FPS" class="women">Free position shot</option>
1083:                                                     <option value="PEN" class="men">Penalty</option>
1084:                                                     <option value="FOUL" class="women">Foul</option>
1085:                                                     <option value="FACE" class="men">Faceoff</option>
1086:                                                     <option value="DC" class="women">Draw Control</option>
1087:                                                     <option value="CLEAR" class="men">Clear</option>
1088:                                                     <option value="GB">Ground ball</option>
1089:                                                     <option value="TURN">Turnover</option>
1090:                                                     <option value="TOUT">Timeout</option>
1091:                                                     <option value="YC" class="women">Yellow Card</option>
1092:                                                 </select>
1093:                                             </div>
1094:                                             <div class="pt-play-by-play clearfix">
1095:                                                 <table>
1096:                                                     <thead>
1097:                                                     <tr>
1098:                                                         <th><span class="team-name visitor-team-name"></span><span>&nbsp;PLAYS</span></th>
1099:                                                         <th>TIME</th>
1100:                                                         <th>ACTION</th>
1101:                                                         <th><span class="team-name home-team-name"></span><span>&nbsp;PLAYS</span></th>
1102:                                                     </tr>
1103:                                                     </thead>
1104:                                                     <tbody>
1105:                                                     </tbody>
1106:                                                 </table>
1107:                                             </div>
1108:                                         </div>
1109:                                     ## GRID CONTENT
1110:                                     </div>
1111:                                 ## DRIVE SUMMARY
1112:                                 </div>
1113:                             ## GRID ROW
1114:                             </div>
1115:                             ## PLAY BY PLAY TABS
1116:                         </div>
1117:                         ## PT TABS PANES
1118:                     </div>
1119:                     ## PRIME TIME GAME INFO
1120:                 </div>
1121:                 ## GRID ROW CONTAINER
1122: 
1123:                 ## FOOTER
1124:                 <div id="primetime-footer" class="grid-row">
1125:                     <div class="grid-col grid-col-ftr">
1126:                         <a href="/"><img src="/info/primetime3/images/presto-logo.png" alt="prestosports website" /></a>
1127:                     </div>
1128:                 </div>
1129:             </div>
1130:         ## PRIMTE TIME OVERFLOW
1131:         </div>
1132: 	#end
1133: 
1134:     #set ($showWiki = true)
1135:     #set ($showWiki = $showWikiVar)
1136:     #if ($showWiki == true)
1137:         $wiki.su
1138:     #end
1139:     ## END OF PRIMETIME
1140: 
1141: #else
1142: ##COMMON FUNCTIONS
1143: #macro (changeViewScript)
1144: ## CORRECT WRONG VIEW WITH REPLACESTATE
1145: <script type="text/javascript">
1146:     $(function () {
1147:         if (!$('.stats-tabs li.active').length) {
1148:             if (history.replaceState) {
1149:                 history.replaceState({}, '', '?view=' + $('.stats-tabs li:first').addClass('active').children('a').data('view'));
1150:             } else {
1151:                 $('.stats-tabs li:first').addClass('active');
1152:             }
1153:         }
1154:     })
1155: </script>
1156: #end
1157: 
1158: #macro (printPdfHeader $title)
1159: <div class="stats-fullbox clearfix">
1160:     <table>
1161:         <tr>
1162:             <td class="align-center"><h4>$title</h4></td>
1163:         </tr>
1164:     </table>
1165: </div>
1166: #end
1167: ##
1168: #set ($periodRule = $tool.math.toInteger($document.valueOf("lcgame/venue/rules/@prds")))
1169: #if ($periodRule == 4)
1170:     #set ($gender = 'M')
1171: #else
1172:     #set ($gender = 'F')
1173: #end
1174: 
1175: #set($isMobile = false)
1176: #if ($browser.getIphone() || $browser.getMobile())
1177: 	#set($isMobile = true)
1178: #end
1179: 
1180: #macro (period $p)
1181:   #if ($p == 1) 1st
1182:   #elseif ($p == 2) 2nd #end
1183: 
1184:   #if ($p == 3 && $gender == 'M') 3rd
1185:   #elseif ($p == 3 && $gender == 'F') OT #end
1186: 
1187:   #if ($p == 4 && $gender == 'M') 4th
1188:   #elseif ($p == 4 && $gender == 'F') 2OT #end
1189: 
1190:   #if ($p > 4 && $gender == 'M')
1191: 	#set($ot = $p - 4)
1192: 	#if ($ot > 1)
1193: 		${ot}OT
1194: 	#else
1195: 		OT
1196: 	#end
1197:   #elseif ($p > 4 && $gender == 'F')
1198:     #set ($ot = $p - 3)
1199: 	${ot}th
1200:   #end
1201: #end
1202: 
1203: #set ($home = $document.valueOf("lcgame/team[@vh='H']/@name"))
1204: #set ($visitor = $document.valueOf("lcgame/team[@vh='V']/@name"))
1205: #set ($status = $tool.math.toInteger($document.valueOf("lcgame/status/@period")))
1206: #set ($clock = $document.valueOf("lcgame/status/@clock"))
1207: #set ($visname = $document.valueOf("lcgame/venue/@visname"))
1208: #set ($homename = $document.valueOf("lcgame/venue/@homename"))
1209: #set ($location = $document.valueOf("lcgame/venue/@location"))
1210: #set ($stadium = $document.valueOf("lcgame/venue/@stadium"))
1211: #set ($date = $document.valueOf("lcgame/venue/@date"))
1212: #set ($time = $document.valueOf("lcgame/venue/@start"))
1213: #set ($schedNote = $document.valueOf("lcgame/venue/@schednote"))
1214: #set ($duration = $document.valueOf("lcgame/venue/@duration"))
1215: #set ($attendance = $document.valueOf("lcgame/venue/@attend"))
1216: 
1217: #set ($periods = $document.numberValueOf("lcgame/team[@vh='V']/linescore/@periods"))
1218: #set ($periods = $tool.math.toInteger($periods))
1219: #set ($periodRange = [1..$periods])
1220: 
1221: #set ($linkPlayers = $stats.linkPlayers)
1222: #set ($linkPlayersBase = $stats.linkPlayersBase)
1223: #set ($linkTeams = $stats.linkTeams)
1224: #set ($linkTeamsBase = $stats.linkTeamsBase)
1225: 
1226: #set ($shootoutScores = {"V" : 0, "H" : 0})
1227: #set ($hasPlayByPlay = $document.selectNodes("lcgame/plays/period").size() > 0)
1228: #set ($isNeutralGame = $document.valueOf("lcgame/venue/@neutralgame"))
1229: #if ($isNeutralGame.length() > 0 && $isNeutralGame.equals("Y"))
1230:   #set ($isNeutralGame = true)
1231: #else
1232:   #set ($isNeutralGame = false)
1233: #end
1234: 
1235: #if ($stats.pageUrl.length() > 0 && !$stats.pageUrl.contains("?"))
1236: 	#set ($paramSep = "?")
1237: #else
1238: 	#set ($paramSep = "&")
1239: #end
1240: 
1241: 
1242: ## SORT GOALIES BY GOALIECHANGES NODE https://prestosports.jira.com/browse/PS-5828
1243: #set ($visitorGoaliesOrder = [])
1244: #set ($visitorCount = 1)
1245: 
1246: #set ($homeGoaliesOrder = [])
1247: #set ($homeCount = 1)
1248: 
1249: #foreach ($node in $document.selectNodes("lcgame/goaliechanges/goaliechange"))
1250: 	#if ($node.attributeValue('vh') == 'V')
1251: 		#if ($!visitorGoaliesOrder.add($node.attributeValue('uni'))) #end
1252: 		#set($visitorCount = $visitorCount + 1)
1253: 	#else
1254: 		#if ($!homeGoaliesOrder.add($node.attributeValue('uni'))) #end
1255: 		#set($homeCount = $homeCount + 1)
1256: 	#end
1257: #end
1258: 
1259: #macro (printPlayerName $node $link)
1260: 	#if ($node.valueOf("../@playerId").length() > 0 && $linkPlayers && $link)
1261: 		<a href="$!linkPlayersBase?id=${stat.valueOf("../@playerId")}">
1262: 	#end
1263: 	$node.valueOf("../@name")
1264: 	#if ($node.valueOf("../@playerId").length() > 0 && $linkPlayers && $link)
1265: 		</a>
1266: 	#end
1267: #end
1268: 
1269: #macro (listGoalies $nodes $pos)
1270: 	#foreach ($stat in $nodes)
1271: 		#if ($pos == $stat.valueOf("../@uni") || $pos == $stat.valueOf("../@uniSave") || ! $pos)
1272: 			#if (! $isMobile)
1273: 				<tr>
1274: 					<td>$!stat.valueOf("../@uni")</td>
1275: 					<td class="nowrap">
1276: 						#printPlayerName($stat, false)
1277: 						#if($stat.valueOf("@win").length() > 0)<span>(W, $stat.valueOf("@win"))</span>#end
1278: 						#if($stat.valueOf("@loss").length() > 0)<span>(L, $stat.valueOf("@loss"))</span>#end
1279: 					</td>
1280: 					#set ($ga = $stat.numberValueOf("@ga"))
1281: 					<td class="align-center">$!formatter.formatNumber($ga, "#")</td>
1282: 					<td class="align-center">$!stat.valueOf("@minutes")</td>
1283: 					<td class="align-center">$!stat.valueOf("@saves")</td>
1284: 					<td class="align-center">#shots($stat.valueOf("@ga") $stat.valueOf("@saves"))</td>
1285: 				</tr>
1286: 			#else
1287: 				<div class="row goalies">
1288: 					<div class="toggle clearfix">
1289: 						<div class="data">$!stat.valueOf("../@uni")</div>
1290: 						<div class="name">
1291: 							#printPlayerName($stat, false)
1292: 							#if($stat.valueOf("@win").length() > 0)<span>(W, $stat.valueOf("@win"))</span>#end
1293: 							#if($stat.valueOf("@loss").length() > 0)<span>(L, $stat.valueOf("@loss"))</span>#end
1294: 						</div>
1295: 						#set ($ga = $stat.numberValueOf("@ga"))
1296: 						<div class="data">$!formatter.formatNumber($ga, "#")</div>
1297: 						<div class="data">$!stat.valueOf("@minutes")</div>
1298: 						<div class="data">$!stat.valueOf("@saves")</div>
1299: 						<div class="data">#shots($stat.valueOf("@ga") $stat.valueOf("@saves"))</div>
1300: 					</div>
1301: 				</div>
1302: 			#end
1303: 		#end
1304: 	#end
1305: #end
1306: 
1307: #macro (printGoalies $team)
1308: 	#set ($nodes = $team.selectNodes("player/goalie"))
1309: 	#if ($team.attributeValue('vh') == 'V')
1310: 		#set($order = $visitorGoaliesOrder)
1311: 	#else
1312: 		#set($order = $homeGoaliesOrder)
1313: 	#end
1314: 
1315: 	#set ($printedUNIS = [])
1316: 
1317: 	#if ($order.size() > 0)
1318: 		#foreach($uni in $order)
1319: 
1320: 			#set ($printAllowed = true)
1321: 
1322: 			#foreach($printedUNI in $printedUNIS)
1323: 				#if ($uni == $printedUNI)
1324: 					#set ($printAllowed = false)
1325: 				#end
1326: 			#end
1327: 
1328: 			#if ($printAllowed)
1329: 				#listGoalies($nodes, $uni)
1330: 				#set ($addResult = $printedUNIS.add($uni))
1331: 			#end
1332: 		#end
1333: 	#else
1334: 		#listGoalies($nodes, false)
1335: 	#end
1336: #end
1337: 
1338: ## GOALIE SHOTS
1339: #macro (shots $ga $saves)
1340: 	#if ($saves.length() > 0)
1341: 		$tool.math.add($ga, $saves)
1342: 	#else
1343: 
1344: 	#end
1345: #end
1346: 
1347: ## POWER PLAY PERCENTAGE
1348: #macro (pp $ppg $ppopp)
1349: 	#if ($ppopp.length() > 0)
1350: 		$formatter.formatNumber($tool.math.div($ppopp, $ppg), 3)
1351: 	#else
1352: 
1353: 	#end
1354: #end
1355: 
1356: ## SHOOTOUT
1357: #macro (shootout $shootouts $t)
1358: 	#foreach ($shot in $shootouts)
1359: 		#if ($shot.valueOf("@vh") == $t)
1360: 			#if ($shot.valueOf("@result") == "MADE")
1361: 				#set ($score = $shootoutScores.get($t))
1362: 				#set ($score = $tool.math.add($score, 1))
1363: 				#set ($score = $shootoutScores.put($t, $score))
1364: 				Goal
1365: 			#else
1366: 				No Goal
1367: 			#end
1368: 			- #${shot.valueOf("@uni")} ${shot.valueOf("@name")}<br />
1369: 		#end ## if
1370: 	#end ## foreach
1371: #end
1372: 
1373: 
1374: ##MOBILE VERSION
1375: #if ($isMobile)
1376: 
1377: ## serve dependencies if missing
1378: <script>
1379: if (!$('link[href="/info/mobile/stats/mobile-stats.css"]').length) {
1380:   $('head').eq(0).append('<link rel="stylesheet" type="text/css" href="/info/responsive-temp-mobile-stats.css" />');
1381: }
1382: 
1383: if (typeof $.mobileSite === "undefined") {
1384:   var script = document.createElement('script');
1385:   script.src = "/info/mobile/mobile-js/mobile-site.js";
1386:   $('body').eq(0).append(script);
1387: }
1388: 
1389: if (typeof $LAB === "undefined") {
1390:   var script = document.createElement('script');
1391:   script.src = "/info/mobile/mobile-js/LAB.min.js";
1392:   $('body').eq(0).append(script);
1393: }
1394: </script>
1395: 
1396: #macro (printMobileHeader)
1397: 
1398: <div class="teams">
1399: 	<div class="frame clearfix">
1400: 		<div class="team">
1401: 			$mobile_visitor.attributeValue("name")
1402: 		</div>
1403: 		<div class="versus">vs.</div>
1404: 		<div class="team right">
1405: 			$mobile_home.attributeValue("name")
1406: 		</div>
1407: 	</div>
1408: </div>
1409: 
1410: <div class="board">
1411: 	<div class="frame clearfix">
1412: 		<div class="result">$mobile_visitor.valueOf("linescore/@score")</div>
1413: 		<div class="timer">
1414: 			#if ($stats.final)
1415: 				<div class="time">Final</div>
1416: 			#else
1417: 				<div class="time">$clock - #period($status)</div>
1418: 			#end
1419: 		</div>
1420: 		<div class="result">$mobile_home.valueOf("linescore/@score")</div>
1421: 	</div>
1422: </div>
1423: 
1424: #end
1425: 
1426: <script type="text/javascript">
1427: 	mobileConf.page = 'boxscore';
1428: 	mobileConf.pageParams = {
1429: 		deepLinking: true
1430: 		#if ($stats.inProgress)
1431: 			,inprogress : true
1432: 		#end
1433: 	}
1434: </script>
1435: 
1436: 	#set ($showWiki = true)
1437: 	#set ($showWiki = $showWikiVar)
1438: 
1439: 	#if ($showWiki == true)
1440: 		$!wiki.su
1441: 	#end
1442: 
1443: 	#set ($mobile_home = $document.selectSingleNode("lcgame/team[@vh='H']"))
1444: 	#set ($mobile_visitor = $document.selectSingleNode("lcgame/team[@vh='V']"))
1445: 
1446: 	#set ($mobile_plays = $document.valueOf("lcgame/plays/period[@number=$periods.intValue()]"))
1447: 	#set ($mobile_lastPlay = $document.selectSingleNode("lcgame/plays/period[@number=$periods.intValue()]/play[last()]"))
1448: 
1449: <div class="swipe-header">
1450: 	<a href="#" id="swipe-left"></a>
1451: 	<a href="#" id="swipe-right"></a>
1452: 	<ul class="dot-nav">
1453: 		<li class="dot-nav-1 active"></li>
1454: 		<li class="dot-nav-2"></li>
1455: 		<li class="dot-nav-3"></li>
1456: 	</ul>
1457: </div>
1458: <!-- BEGING SCORE BOARD-->
1459: <div id="swipe-wrapper">
1460: <div id="live2" class="lacrosse-stats">
1461:     <div class="swipe-screen" data-view="scoring">
1462:         <div class="score_board">
1463: 
1464: 			#printMobileHeader()
1465: 
1466:             <div class="table">
1467:                 <div class="frame">
1468:                     <div class="clearfix">
1469:                         <div class="cell cell_s">&nbsp;</div>
1470:                         <div class="cell cell_m">&nbsp;</div>
1471:                         <div class="cell cell_l title">SCORING</div>
1472:                         <div class="cell cell_m">&nbsp;</div>
1473:                         <div class="cell cell_s">&nbsp;</div>
1474:                     </div>
1475:                     #foreach ($i in $periodRange)
1476:                         <div class="clearfix">
1477:                             <div class="cell cell_s">&nbsp;</div>
1478:                             <div class="cell cell_m">$mobile_visitor.valueOf("linescore/lineprd[$i]/@score")</div>
1479:                             <div class="cell cell_l">#period($i)</div>
1480:                             <div class="cell cell_m">$mobile_home.valueOf("linescore/lineprd[$i]/@score")</div>
1481:                             <div class="cell cell_s">&nbsp;</div>
1482:                         </div>
1483:                     #end
1484: 
1485:                     <div class="clearfix">
1486:                         <div class="cell cell_s">&nbsp;</div>
1487:                         <div class="cell cell_m">$mobile_visitor.valueOf("linescore/@score")</div>
1488:                         <div class="cell cell_l">FINAL</div>
1489:                         <div class="cell cell_m">$mobile_home.valueOf("linescore/@score")</div>
1490:                         <div class="cell cell_s">&nbsp;</div>
1491:                     </div>
1492:                 </div>
1493:             </div>
1494: 			#if ($lastPlay)
1495: 			<div class="recent">
1496:                 <div class="frame">
1497:                     <div class="toggle clearfix">
1498:                         <div class="title">LAST PLAY</div>
1499:                         <div class="arrow">
1500:                             <img src="/info/mobile/stats/images/arrow_down2.gif" class="recent_arrow_down" width="13" height="9"/>
1501:                             <img src="/info/mobile/stats/images/arrow_up2.gif" class="recent_arrow_up" style="display: none;" width="13" height="9"/>
1502:                         </div>
1503:                     </div>
1504: 					<div class="plays recent_plays" style="display: none;">
1505: 						<div class="play period">$!lastPlay.attributeValue("text")</div>
1506: 					</div>
1507:                 </div>
1508: 			</div>
1509: 			#end
1510: 
1511:             <div class="recent">
1512:                 <div class="frame">
1513:                     <div class="toggle clearfix">
1514:                         <div class="title">Scoring Summary</div>
1515:                         <div class="arrow">
1516: 							<img height="9" width="13" class="recent_arrow_down" src="/info/mobile/stats/images/arrow_down2.gif" style="display: inline;">
1517: 							<img height="9" width="13" style="display: none;" class="recent_arrow_up" src="/info/mobile/stats/images/arrow_up2.gif">
1518: 						</div>
1519:                     </div>
1520: 
1521: 
1522: 
1523: 					<div class="plays recent_plays" style="display: none;">
1524: 							## SCORING SUMMARY
1525: 							#foreach ($pd in $periodRange)
1526: 								#set ($shownStats = "")
1527: 								<div class="play period">
1528: 									#period($pd)
1529: 								</div>
1530: 
1531: 								#foreach ($score in $document.selectNodes("lcgame/scores/score"))
1532: 									#if ($pd == $score.valueOf("@prd"))
1533: 										#set ($shownStats = "y")
1534: 										<div class="play clearfix">
1535: 											<div class="time">
1536: 												$score.valueOf("@time")
1537: 											</div>
1538: 											<div class="text">
1539: 												<b>
1540: 												#if
1541: 													($score.valueOf("@vh") == 'H') $mobile_home.attributeValue("name")
1542: 												#end
1543: 												#if
1544: 													($score.valueOf("@vh") == 'V') $mobile_visitor.attributeValue("name")
1545: 												#end
1546: 												</b>&nbsp; - &nbsp;
1547: 												#if ($score.valueOf("@type") == 'PP')<i>PP - </i>#end
1548: 												#if ($score.valueOf("@type") == 'SH')<i>SH - </i>#end
1549: 												#if ($score.valueOf("@type") == 'PS')<i>PS - </i>#end
1550: 												#if ($score.valueOf("@engoal") == 'Y')<i>EN - </i>#end
1551: 
1552: 												#if ($score.valueOf("@playerId").length() > 0 and $linkPlayers and $score.valueOf("../@link").length() > 0)
1553: 													<a href="$!linkPlayersBase?id=${score.valueOf("@playerId")}">
1554: 												#end
1555: 												$score.valueOf("@name")
1556: 												#if ($score.valueOf("@playerId").length() > 0 and $linkPlayers and $score.valueOf("../@link").length() > 0)
1557: 													</a>
1558: 												#end
1559: 
1560:                                                 #set ($scoreLabel = '')
1561: 
1562:                                                 #if ($hasPlayByPlay && $gender == 'F')
1563:                                                     #set ($scoreTime = $score.valueOf("@time"))
1564:                                                     #set ($fpsFlag = false)
1565:                                                     #foreach ($fpsNode in $document.selectNodes("//play[@action='FPS']"))
1566:                                                         #if ($fpsNode.valueOf("@clock") == $scoreTime)
1567:                                                             #set ($fpsFlag = true)
1568:                                                         #end
1569:                                                     #end
1570:                                                     #if ($fpsFlag)
1571:                                                         #set ($scoreLabel = '(Free position shot)')
1572:                                                     #else
1573:                                                         #set ($scoreLabel = '(unassisted)')
1574:                                                     #end
1575:                                                 #else
1576:                                                     #set ($scoreLabel = '(unassisted)')
1577:                                                 #end
1578: 
1579: 												<i>#if($score.valueOf("@assist1").length() > 0)
1580:                                                     #if ($score.valueOf("@assist1Id").length() > 0 and $linkPlayers and $stat.valueOf("../@link").length() > 0)
1581:                                                         <a href="$!linkPlayersBase?id=${score.valueOf("@assist1Id")}">
1582:                                                     #end
1583:                                                     ($score.valueOf("@assist1"))
1584:                                                     #if ($score.valueOf("@assist1Id").length() > 0 and $linkPlayers and $stat.valueOf("../@link").length() > 0)
1585:                                                         </a>
1586:                                                     #end
1587:                                                 #else
1588:                                                     $!scoreLabel
1589:                                                 #end
1590: 
1591:                                                 #if($score.valueOf("@assist2").length() > 0)
1592:                                                     &amp;
1593:                                                     #if ($score.valueOf("@assist2Id").length() > 0 and $linkPlayers)
1594:                                                         <a href="$!linkPlayersBase?id=${score.valueOf("@assist2Id")}">
1595:                                                     #end
1596:                                                     ($score.valueOf("@assist2"))
1597:                                                     #if ($score.valueOf("@assist2Id").length() > 0 and $linkPlayers)
1598:                                                         </a>
1599:                                                     #end
1600:                                                 #end</i>
1601: 											</div>
1602: 										</div>
1603: 									#end
1604: 								#end
1605: 								#if ($shownStats == "")
1606: 									<div class="play clearfix center">(no scoring)</div>
1607: 								#end
1608: 							#end
1609: 						</div>
1610: 					</div>
1611: 				</div>
1612: 			</div>
1613: 		</div>
1614: 
1615: 		<!-- BEGING LINE UP -->
1616: 		<div class="swipe-screen" data-view="boxscore">
1617: 			#printMobileHeader()
1618: 			<div class="team_stats">
1619: 				<div class="teams clearfix">
1620: 					<div id="button-1" class="button clearfix active">
1621: 						<div class="team">$mobile_visitor.attributeValue("name")</div>
1622: 						<div class="end">
1623: 							<div>&nbsp;</div>
1624: 						</div>
1625: 					</div>
1626: 					<div id="button-2" class="button clearfix">
1627: 						<div class="team">$mobile_home.attributeValue("name")</div>
1628: 						<div class="end">
1629: 							<div>&nbsp;</div>
1630: 						</div>
1631: 					</div>
1632: 
1633: 					<!-- BEGING STATS -->
1634: 
1635: 					#macro (mobile_playerstats $team)
1636: 						<div class="titles clearfix">
1637: 							<div class="data">#</div>
1638: 							<div class="name">PLAYER</div>
1639: 							<div class="data">POS</div>
1640: 							<div class="data">G</div>
1641: 							<div class="data">A</div>
1642: 							##<div class="data">+/-</div>
1643: 							<div class="data">SH</div>
1644: 							##<div class="data">PIM</div>
1645:                             <div class="data">SOG</div>
1646:                             <div class="data">GB</div>
1647: 						</div>
1648: 
1649: 						#foreach ($stat in $team.selectNodes("player/shots"))
1650: 
1651: 							<div class="row">
1652: 								<div class="toggle clearfix">
1653: 									<div class="data">$!stat.valueOf("../@uni")</div>
1654: 									<div class="name">
1655: 										#if ($stat.valueOf("../@playerId").length() > 0 and $linkPlayers and $stat.valueOf("../../@link").length() > 0)
1656: 											## <a href="$!linkPlayersBase?id=${stat.valueOf("../@playerId")}">
1657: 										#end
1658: 										$stat.valueOf("../@name")
1659: 										#if ($stat.valueOf("../@playerId").length() > 0 and $linkPlayers and $stat.valueOf("../../@link").length() > 0)
1660: 											## </a>
1661: 										#end
1662: 									</div>
1663: 									<div class="data">
1664: 										#if ($stat.valueOf("../@pos").length() > 0)
1665: 											$stat.valueOf("../@pos")
1666: 										#else
1667: 											&nbsp;
1668: 										#end
1669: 									</div>
1670: 									<div class="data">$!stat.valueOf("@g")</div>
1671: 									<div class="data">$!stat.valueOf("@a")</div>
1672: 									<div class="data">$!stat.valueOf("@sh")</div>
1673:                                     <div class="data">$!stat.valueOf("@sog")</div>
1674:                                     <div class="data">$!stat.valueOf("../misc/@gb")</div>
1675: 								</div>
1676: 							</div>
1677: 						#end
1678: 
1679: 						<div class="titles clearfix goalies">
1680: 							<div class="data">#</div>
1681: 							<div class="name">GOALIES</div>
1682: 							<div class="data">GA</div>
1683: 							<div class="data">Min</div>
1684: 							<div class="data">SV</div>
1685: 							<div class="data">SH</div>
1686: 							##<div class="data">PIM</div>
1687: 						</div>
1688: 
1689: 						#printGoalies($team)
1690: 
1691: 					#end
1692: 
1693: 					## VISITOR STATISTICS
1694: 					<div class="table hockey" id="table_team_stats_1">#mobile_playerstats($document.selectSingleNode("lcgame/team[@vh='V']"))</div>
1695: 
1696: 					## HOME STATISTICS
1697: 					<div class="table hockey" id="table_team_stats_2" style="display: none">#mobile_playerstats($document.selectSingleNode("lcgame/team[@vh='H']"))</div>
1698: 
1699: 
1700: 					<!-- END STATS -->
1701: 				</div>
1702: 			</div>
1703: 		</div>
1704: 		<!-- END LINE UP -->
1705: 		<!-- BEGING TEAM STATS -->
1706: 		<div class="swipe-screen" data-view="summary">
1707: 			#printMobileHeader()
1708: 			<div class="line_up">
1709: 				<div class="table">
1710: 					<div class="frame">
1711: 						<div class="clearfix">
1712: 							<div class="cell cell_s">&nbsp;</div>
1713: 							<div class="cell cell_m">&nbsp;</div>
1714: 							<div class="cell cell_l title">SHOTS</div>
1715: 							<div class="cell cell_m">&nbsp;</div>
1716: 							<div class="cell cell_s">&nbsp;</div>
1717: 						</div>
1718:                         #foreach ($i in $periodRange)
1719:                             <div class="clearfix">
1720:                                 <div class="cell cell_s">&nbsp;</div>
1721:                                 <div class="cell cell_m">$mobile_visitor.valueOf("linescore/lineprd[$i]/@shots")</div>
1722:                                 <div class="cell cell_l">#period($i)</div>
1723:                                 <div class="cell cell_m">$mobile_home.valueOf("linescore/lineprd[$i]/@shots")</div>
1724:                                 <div class="cell cell_s">&nbsp;</div>
1725:                             </div>
1726:                         #end
1727: 
1728: 						<div class="clearfix">
1729: 							<div class="cell cell_s">&nbsp;</div>
1730: 							<div class="cell cell_m">$mobile_visitor.valueOf("linescore/@shots")</div>
1731: 							<div class="cell cell_l">TOTAL</div>
1732: 							<div class="cell cell_m">$mobile_home.valueOf("linescore/@shots")</div>
1733: 							<div class="cell cell_s">&nbsp;</div>
1734: 						</div>
1735: 
1736:                         ##GROUND BALLS
1737: 						<div class="clearfix">
1738: 							<div class="cell cell_s">&nbsp;</div>
1739: 							<div class="cell cell_m">&nbsp;</div>
1740: 							<div class="cell cell_l title">Ground Balls</div>
1741: 							<div class="cell cell_m">&nbsp;</div>
1742: 							<div class="cell cell_s">&nbsp;</div>
1743: 						</div>
1744: 						<div class="clearfix">
1745: 							<div class="cell cell_s">&nbsp;</div>
1746: 							<div class="cell cell_m">
1747: 								$mobile_visitor.valueOf("totals/misc/@gb")
1748: 							</div>
1749: 							<div class="cell cell_l">&nbsp;</div>
1750: 							<div class="cell cell_m">
1751: 								$mobile_home.valueOf("totals/misc/@gb")
1752: 							</div>
1753: 							<div class="cell cell_s">&nbsp;</div>
1754: 						</div>
1755: 
1756:                         ##TURNOVERS
1757: 						<div class="clearfix">
1758: 							<div class="cell cell_s">&nbsp;</div>
1759: 							<div class="cell cell_m">&nbsp;</div>
1760: 							<div class="cell cell_l title">Turnovers</div>
1761: 							<div class="cell cell_m">&nbsp;</div>
1762: 							<div class="cell cell_s">&nbsp;</div>
1763: 						</div>
1764: 						<div class="clearfix">
1765: 							<div class="cell cell_s">&nbsp;</div>
1766: 							<div class="cell cell_m">
1767: 								$mobile_visitor.valueOf("totals/misc/@turnover")
1768: 							</div>
1769: 							<div class="cell cell_l">&nbsp;</div>
1770: 							<div class="cell cell_m">
1771: 								$mobile_home.valueOf("totals/misc/@turnover")
1772: 							</div>
1773: 							<div class="cell cell_s">&nbsp;</div>
1774: 						</div>
1775: 
1776:                         #if ($gender == 'M')
1777: 
1778:                             ##FACEOFFS
1779:                             <div class="clearfix">
1780:                                 <div class="cell cell_s">&nbsp;</div>
1781:                                 <div class="cell cell_m">&nbsp;</div>
1782:                                 <div class="cell cell_l title">Faceoffs</div>
1783:                                 <div class="cell cell_m">&nbsp;</div>
1784:                                 <div class="cell cell_s">&nbsp;</div>
1785:                             </div>
1786:                             <div class="clearfix">
1787:                                 <div class="cell cell_s">&nbsp;</div>
1788:                                 <div class="cell cell_m">
1789:                                     #set ($facewonVisitor = $tool.math.toInteger($mobile_visitor.valueOf("totals/misc/@facewon")) +  $tool.math.toInteger($mobile_visitor.valueOf("totals/misc/@facelost")))
1790:                                     $mobile_visitor.valueOf("totals/misc/@facewon")-$!facewonVisitor
1791:                                 </div>
1792:                                 <div class="cell cell_l">&nbsp;</div>
1793:                                 <div class="cell cell_m">
1794:                                      #set ($facewonHome = $tool.math.toInteger($mobile_home.valueOf("totals/misc/@facewon")) +  $tool.math.toInteger($mobile_home.valueOf("totals/misc/@facelost")))
1795:                                     $mobile_home.valueOf("totals/misc/@facewon")-$!facewonHome
1796:                                 </div>
1797:                                 <div class="cell cell_s">&nbsp;</div>
1798:                             </div>
1799: 
1800:                             ##MAN UP
1801:                             <div class="clearfix">
1802:                                 <div class="cell cell_s">&nbsp;</div>
1803:                                 <div class="cell cell_m">&nbsp;</div>
1804:                                 <div class="cell cell_l title">Man Up</div>
1805:                                 <div class="cell cell_m">&nbsp;</div>
1806:                                 <div class="cell cell_s">&nbsp;</div>
1807:                             </div>
1808:                             <div class="clearfix">
1809:                                 <div class="cell cell_s">&nbsp;</div>
1810:                                 <div class="cell cell_m">
1811:                                     $mobile_visitor.valueOf("totals/powerplay/@ppg")-$mobile_visitor.valueOf("totals/powerplay/@ppopp")
1812: 
1813:                                 </div>
1814:                                 <div class="cell cell_l">&nbsp;</div>
1815:                                 <div class="cell cell_m">
1816:                                     $mobile_home.valueOf("totals/powerplay/@ppg")-$mobile_home.valueOf("totals/powerplay/@ppopp")
1817:                                 </div>
1818:                                 <div class="cell cell_s">&nbsp;</div>
1819:                             </div>
1820: 
1821: 							##FO Violation
1822:                             <div class="clearfix">
1823:                                 <div class="cell cell_s">&nbsp;</div>
1824:                                 <div class="cell cell_m">&nbsp;</div>
1825:                                 <div class="cell cell_l title">FO Violation</div>
1826:                                 <div class="cell cell_m">&nbsp;</div>
1827:                                 <div class="cell cell_s">&nbsp;</div>
1828:                             </div>
1829:                             <div class="clearfix">
1830:                                 <div class="cell cell_s">&nbsp;</div>
1831:                                 <div class="cell cell_m">
1832:                                     $mobile_visitor.valueOf("totals/penalty/@fviol")
1833:                                 </div>
1834:                                 <div class="cell cell_l">&nbsp;</div>
1835:                                 <div class="cell cell_m">
1836:                                     $mobile_home.valueOf("totals/penalty/@fviol")
1837:                                 </div>
1838:                                 <div class="cell cell_s">&nbsp;</div>
1839:                             </div>
1840: 
1841:                              ##PENALTY TOTALS
1842:                             <div class="clearfix">
1843:                                 <div class="cell cell_s">&nbsp;</div>
1844:                                 <div class="cell cell_m">&nbsp;</div>
1845:                                 <div class="cell cell_l title">Penalty Totals</div>
1846:                                 <div class="cell cell_m">&nbsp;</div>
1847:                                 <div class="cell cell_s">&nbsp;</div>
1848:                             </div>
1849: 
1850:                             #set ($penaltySeconds = $mobile_visitor.valueOf("totals/penalty/@seconds"))
1851:                             #set ($penaltyCount = $mobile_visitor.valueOf("totals/penalty/@count"))
1852:                             #if ($penaltySeconds.length() > 0 && $penaltyCount.length() > 0)
1853:                                 #set ($penaltyMinutes = $tool.math.toInteger($tool.math.div($penaltySeconds, 60)))
1854:                                 #set ($minString = "${penaltyMinutes}")
1855:                                 #set ($secString = "")
1856:                                 #if ($remainder > 0)
1857:                                     #set ($secString = "${remainder}")
1858:                                 #end
1859:                             #end
1860: 
1861:                             <div class="clearfix">
1862:                                 <div class="cell cell_s">&nbsp;</div>
1863:                                 <div class="cell cell_m">$minString $secString</div>
1864: 
1865:                                 #set ($penaltySeconds = $mobile_home.valueOf("totals/penalty/@seconds"))
1866:                                 #set ($penaltyCount = $mobile_home.valueOf("totals/penalty/@count"))
1867:                                 #if ($penaltySeconds.length() > 0 && $penaltyCount.length() > 0)
1868:                                     #set ($penaltyMinutes = $tool.math.toInteger($tool.math.div($penaltySeconds, 60)))
1869:                                     #set ($minString = "${penaltyMinutes} ")
1870:                                     #set ($secString = "")
1871:                                     #if ($remainder > 0)
1872:                                         #set ($secString = "${remainder}")
1873:                                     #end
1874:                                 #end
1875: 
1876:                                 <div class="cell cell_l">Minutes</div>
1877:                                 <div class="cell cell_m">$minString $secString</div>
1878:                                 <div class="cell cell_s">&nbsp;</div>
1879:                             </div>
1880: 
1881:                             <div class="clearfix">
1882:                                 <div class="cell cell_s">&nbsp;</div>
1883:                                 <div class="cell cell_m">$mobile_visitor.valueOf("totals/penalty/@count")</div>
1884:                                 <div class="cell cell_l">Infractions</div>
1885:                                 <div class="cell cell_m">$mobile_home.valueOf("totals/penalty/@count")</div>
1886:                                 <div class="cell cell_s">&nbsp;</div>
1887:                             </div>
1888: 
1889: 
1890:                         #else
1891: 
1892:                              ##Drawcontrols
1893:                             <div class="clearfix">
1894:                                 <div class="cell cell_s">&nbsp;</div>
1895:                                 <div class="cell cell_m">&nbsp;</div>
1896:                                 <div class="cell cell_l title">Draw controls</div>
1897:                                 <div class="cell cell_m">&nbsp;</div>
1898:                                 <div class="cell cell_s">&nbsp;</div>
1899:                             </div>
1900:                             <div class="clearfix">
1901:                                 <div class="cell cell_s">&nbsp;</div>
1902:                                 <div class="cell cell_m">
1903:                                     $mobile_visitor.valueOf("totals/misc/@dc")
1904: 
1905:                                 </div>
1906:                                 <div class="cell cell_l">&nbsp;</div>
1907:                                 <div class="cell cell_m">
1908:                                     $mobile_home.valueOf("totals/misc/@dc")
1909:                                 </div>
1910:                                 <div class="cell cell_s">&nbsp;</div>
1911:                             </div>
1912: 
1913:                              ##Free position shots
1914:                             <div class="clearfix">
1915:                                 <div class="cell cell_all title">Free position shots</div>
1916:                             </div>
1917:                             <div class="clearfix">
1918:                                 <div class="cell cell_s">&nbsp;</div>
1919:                                 <div class="cell cell_m">
1920:                                     $mobile_visitor.valueOf("totals/goaltype/@freepos")-$mobile_visitor.valueOf("totals/shots/@freepos")
1921: 
1922:                                 </div>
1923:                                 <div class="cell cell_l">&nbsp;</div>
1924:                                 <div class="cell cell_m">
1925:                                     $mobile_home.valueOf("totals/goaltype/@freepos")-$mobile_home.valueOf("totals/shots/@freepos")
1926:                                 </div>
1927:                                 <div class="cell cell_s">&nbsp;</div>
1928:                             </div>
1929: 
1930:                         #end
1931: 
1932: 					</div>
1933: 
1934:                     <div class="recent">
1935:                         <div class="frame">
1936:                             <div class="toggle clearfix">
1937:                                 <div class="play title">
1938:                                     Penalty Summary
1939:                                      <div class="arrow">
1940:                                         <img src="/info/mobile/stats/images/arrow_down2.gif" class="recent_arrow_down" width="13" height="9"/>
1941:                                         <img src="/info/mobile/stats/images/arrow_up2.gif" class="recent_arrow_up" style="display: none;" width="13" height="9"/>
1942:                                     </div>
1943:                                 </div>
1944:                             </div>
1945:                                 <div class="recent_plays plays" style="display: none;">
1946:                                     #foreach ($pd in $periodRange)
1947:                                         #set ($shownStats = "")
1948:                                         <div class="play period">#period($pd)</div>
1949:                                         #foreach ($penalty in $document.selectNodes("lcgame/penalties/pen"))
1950:                                             #if ($pd == $penalty.valueOf("@prd"))
1951:                                                 #set ($shownStats = "y")
1952:                                                 <div class="play clearfix">
1953:                                                     <div class="time">$penalty.valueOf("@time")</div>
1954:                                                     <div class="text">
1955:                                                         <b>
1956:                                                             #if($penalty.valueOf("@vh") == 'H') $mobile_home.attributeValue("name") #end
1957:                                                             #if($penalty.valueOf("@vh") == 'V') $mobile_visitor.attributeValue("name") #end
1958:                                                         </b> &nbsp; - &nbsp;
1959:                                                         #if ($penalty.valueOf("@type") == 'PP')<i>PP - </i>#end
1960:                                                         #if ($penalty.valueOf("@type") == 'SH')<i>SH - </i>#end
1961:                                                         $penalty.valueOf("@name"): $!penalty.valueOf("@desc")
1962:                                                     </div>
1963:                                                 </div>
1964:                                             #end
1965:                                         #end
1966:                                         #if ($shownStats == "")
1967:                                             <div class="row sub_title"><i>No penalties</i></div>
1968:                                         #end
1969:                                     #end
1970:                                 </div>
1971:                         </div>
1972:                     </div>
1973: 
1974:                     <div class="recent">
1975:                         <div class="frame">
1976:                             <div class="other">
1977:                                 <div class="toggle clearfix">
1978:                                     <div class="row title">
1979:                                         Other Information
1980:                                          <div class="arrow">
1981:                                             <img src="/info/mobile/stats/images/arrow_down2.gif" class="recent_arrow_down" width="13" height="9"/>
1982:                                             <img src="/info/mobile/stats/images/arrow_up2.gif" class="recent_arrow_up" style="display: none;" width="13" height="9"/>
1983:                                         </div>
1984:                                     </div>
1985:                                 </div>
1986: 
1987:                                 <div class="recent_plays plays" style="display: none;">
1988: 									#if($location.length() > 0)
1989:                                     <div class="row clearfix">
1990:                                         <div class="data">Location</div>
1991:                                         <div class="text">$location #if($stadium.length() > 0) ($!stadium)#end</div>
1992:                                     </div>
1993: 									#end
1994: 
1995: 									#if($duration.length() > 0)
1996:                                     <div class="row clearfix">
1997:                                         <div class="data">Game Length</div>
1998:                                         <div class="text">$!duration</div>
1999:                                     </div>
2000: 									#end
2001: 
2002: 									#if($attendance.length() > 0)
2003:                                     <div class="row clearfix">
2004:                                         <div class="data">Attendance</div>
2005:                                         <div class="text">$!attendance</div>
2006:                                     </div>
2007: 									#end
2008: 
2009: 									#if($schedNote.length() > 0)
2010:                                     <div class="row clearfix">
2011:                                         <div class="data">Note</div>
2012:                                         <div class="text">$!schedNote</div>
2013:                                     </div>
2014: 
2015: 									#end
2016: 
2017:                                         <div class="row  title">Officials and game personnel</div>
2018:                                     #foreach ($official in $document.selectNodes("lcgame/venue/officials/official"))
2019:                                         <div class="row clearfix">
2020:                                             <div class="data">$official.valueOf("@title")</div>
2021:                                             <div class="text">$official.valueOf("@name")</div>
2022:                                         </div>
2023:                                     #end
2024:                                 </div>
2025:                             </div>
2026:                         </div>
2027:                     </div>
2028: 				</div>
2029: 			</div>
2030: 		</div>
2031: 	</div>
2032: </div>
2033: 
2034: #set ($showWiki = true)
2035: #set ($showWiki = $showWikiVar)
2036: 
2037: #if ($showWiki == true)
2038: 	$!wiki.su
2039: #end
2040: 
2041: 
2042: #else
2043:     ##WEBSITE VERSION
2044: 
2045:     #set ($showWiki = true)
2046:     #set ($showWiki = $showWikiVar)
2047: 
2048:     #if ($stats.view != "pdf")
2049:         #if ($showWiki == true)
2050:             $!wiki.su
2051:         #end
2052: 	#end
2053: 
2054: 	#set ($titleVa = "at")
2055:     #if ($isNeutralGame)
2056:     	#set ($titleVa = "vs.")
2057:     #end
2058: 
2059: 	#set ($pageTitle = "$visname $titleVa $homename")
2060: 
2061:     #if ($date.length() > 0)
2062:     	#set ($dateObj = $tool.date.toDate("MM/dd/yyyy", $date))
2063:     	#set ($pageTitle = "${pageTitle} - ${formatter.formatLongDate($dateObj)}")
2064:     #end
2065: 
2066:     #if ($time.length() > 0)
2067:     	#set ($pageTitle = "${pageTitle} - ${time}")
2068:     #end
2069: 
2070:     <html>
2071:     <head>
2072:         <title>$pageTitle - Box Score </title>
2073:         #if ($stats.inProgress)
2074:             <meta http-equiv="refresh" content="60"/>
2075:         #end
2076:         #if ($stats.view == "pdf")
2077:             #include("statcrew-pdf-css-template")
2078:         #end
2079:     </head>
2080:     <body>
2081: 
2082:         #if ($stats.view == "pdf")
2083:             <div class='footer-left'>$visname vs. $homename</div>
2084:             <div class='footer-right'><span id="pagenumber"></span> of <span
2085:                     id="pagecount"></span></div>
2086:         #end
2087: 
2088:     <div class="stats-wrapper lcgame clearfix">
2089: 
2090:         #if ($stats.view != "pdf")
2091:             ## GAME INFORMATION
2092:             <div class="align-center"><span class="bold">$visname #if($isNeutralGame)
2093:                 vs.#else at #end $homename</span>#if($location.length() > 0)
2094:                 <br/>@ $location #if($stadium.length() > 0)($stadium
2095:                     )#end#end #if($date.length() > 0)<br/>$date #if($time.length() > 0)
2096:                 at $time#end#end #if($schedNote.length() > 0)$schedNote#end</div>
2097:             <br/>
2098: 
2099:             ## TEAM SCORES
2100:             <table>
2101:                 <tr>
2102:                     #foreach ($team in $document.selectNodes("lcgame/team"))
2103:                         <td class="align-center" style="width:50%">
2104: 
2105:                             #if ($team.attributeValue("link").length() > 0 and
2106:                                 $linkTeams and $stats.view != "pdf")
2107:                             <a href="$!linkTeamsBase?id=${team.attributeValue("teamId")}">
2108:                             #end
2109:                             <span class="stats-header">$team.attributeValue("name")</span>
2110:                             #if ($team.attributeValue("link").length() > 0 and
2111:                                 $linkTeams and $stats.view != "pdf")
2112:                             </a>
2113:                             #end
2114:                             <br/><span
2115:                                 class="stats-header">$team.valueOf("linescore/@score")</span>
2116:                         </td>
2117:                     #end
2118:                 </tr>
2119:             </table>
2120:         #end
2121: 
2122:         #macro (printPeriodHead)
2123:             #set ($ot = 0)
2124:             #foreach ($i in $periodRange)
2125:                 #if (($gender == 'M' && $i > 4) || ($gender == 'F' && $i > 2))
2126:                     #set ($ot = $ot + 1)
2127:                     #if ($ot > 1)
2128:                     <th style="width:40px">${ot}OT</th>
2129:                     #else
2130:                     <th style="width:40px">OT</th>
2131:                     #end
2132:                 #else
2133:                 <th style="width:40px">$i</th>
2134:                 #end
2135:             #end
2136:         #end
2137: 
2138:         #if ($stats.view != "pdf")
2139:             <div class="stats-fullbox clearfix">
2140:                 ## PERIOD SUMMARY
2141:                 <table>
2142:                     <tr>
2143:                         <th class="align-left">SCORING</th>
2144:                         #printPeriodHead()
2145:                         <th style="width:80px">#if($stats.final)
2146:                             FINAL#else#period($status)#if($clock.length() > 0)
2147:                             - $clock#end#end</th>
2148:                     </tr>
2149: 
2150:                 ## team scores
2151:                     #foreach ($team in $document.selectNodes("lcgame/team"))
2152:                         <tr>
2153:                             #set ($teamRecord = $team.valueOf("@record"))
2154:                             <td>$team.attributeValue("name") #if($teamRecord.length() > 0)
2155:                                 ($teamRecord)#end</td>
2156:                             #foreach ($i in $periodRange)
2157:                                 <td class="align-center">$team.valueOf("linescore/lineprd[$i
2158:                                     ]/@score")</td>
2159:                             #end
2160:                             <td class="align-center">$team.valueOf("linescore/@score")</td>
2161:                         </tr>
2162:                     #end
2163:                 </table>
2164:             </div>
2165:         #end
2166: 
2167:         ## TABS
2168:         #if ($hasPlayByPlay and $stats.view != "pdf")
2169:         <div class="stats-tabs clearfix">
2170:             <ul class="clearfix">
2171:                 <li #if (!($stats.view.length() > 0) || $stats.view == "boxscore")
2172:                         class="active" #end>
2173:                     <a data-view="boxscore" href="${stats.pageUrl}">
2174:                         Box Score
2175:                     </a>
2176:                 </li>
2177:                 <li #if ($stats.view == "plays") class="active" #end>
2178:                     <a data-view="plays"
2179:                         href="${stats.pageUrl}${paramSep}view=plays" id="pbp">
2180:                         Play by Play
2181:                     </a>
2182:                 </li>
2183:                 <li>
2184:                     <a href="${stats.pageUrl}?tmpl=lcxml-monospace-template"
2185:                        target="_blank">
2186:                     Coach's view
2187:                     </a>
2188:                 </li>
2189:             </ul>
2190:         </div>
2191:         #end
2192: 
2193:         #macro (printTabPlayByPlay)
2194:         ## PLAY BY PLAY
2195: 
2196:             #macro (printPlays $prd)
2197:                 #set ($prdCount = $prd.valueOf("@number"))
2198:             <tr>
2199:                 <th colspan="4" class="align-left"><span id="prd${prdCount}">#period($prdCount)
2200:                 </span>
2201:                 </th>
2202:             </tr>
2203:             <tr class="stats-highlight">
2204:                 <td class="align-center"><span class="bold">Time</span></td>
2205:                 <td class="align-center"><span class="bold">Play</span></td>
2206:             </tr>
2207:                 #set ($i = 0)
2208:                 #foreach ($play in $prd.selectNodes("*"))
2209:                     #set ($nodeName = $play.getName())
2210:                     #if ($nodeName == "play")
2211:                         #set ($i = $i + 1)
2212:                         #if ($i % 2 == 0)
2213:                             #set ($row = "even")
2214:                         #else
2215:                             #set ($row = "odd")
2216:                         #end
2217:                     <tr class="${row} #if($play.valueOf("@text").toLowerCase().startsWith("goal by"))bold#end">
2218:                         <td class="align-center">$play.valueOf("@clock")</td>
2219:                         <td>$play.valueOf("@text")</td>
2220:                     </tr>
2221:                     #elseif ($nodeName == "currentscore")
2222:                     <tr class="stats-highlight">
2223:                         <td colspan="2" class="align-center bold">
2224:                             Score: $visitor $play.valueOf("@vscore")
2225:                             - $home $play.valueOf("@hscore")</td>
2226:                     </tr>
2227:                     #end
2228:                 #end
2229:             #end ## ends printPlays
2230: 
2231:             <div class="stats-fullbox clearfix">
2232:                 <table>
2233:                     <tr>
2234:                         <td colspan="3">
2235:                             <span class="bold">Period: </span>
2236:                             #foreach ($p in [1..$document.selectNodes("lcgame/plays/period").size()])
2237:                                 #if ($velocityCount > 1) | #end
2238:                                 #if ($stats.view != "pdf")
2239:                                     <a href="#prd${p}">#period($p)</a>
2240:                                 #else
2241:                                     #period($p)
2242:                                 #end
2243:                             #end
2244:                         </td>
2245:                     </tr>
2246:                     #foreach ($playPeriod in $document.selectNodes("lcgame/plays/period"))
2247:                         #printPlays ($playPeriod)
2248:                     #end
2249:                 </table>
2250:             </div>
2251:         #end
2252: 
2253:         #macro (printTabBoxscore)
2254:             ## BOX SCORE
2255: 
2256:             ## SCORING SUMMARY
2257:             <div class="stats-fullbox clearfix">
2258:                 <table>
2259:                     <tr>
2260:                         <th colspan="5" class="align-left">SCORING SUMMARY</th>
2261:                     </tr>
2262:                     #set ($currentscoreNodes = $document.selectNodes("//currentscore"))
2263:                     #set ($homeScore = "0")
2264:                     #set ($visitorScore = "0")
2265:                     #foreach ($pd in $periodRange)
2266:                         #set ($shownStats = "")
2267:                         <tr class="stats-highlight">
2268:                             <td colspan="3" class="align-center">-- <span
2269:                                     class="bold">#period($pd)</span> --
2270:                             </td>
2271:                             <td class="align-center"><span class="bold">$visitor</span>
2272:                             </td>
2273:                             <td class="align-center"><span class="bold">$home</span>
2274:                             </td>
2275:                         </tr>
2276:                         #foreach ($score in $document.selectNodes("lcgame/scores/score"))
2277:                             #if ($pd == $score.valueOf("@prd"))
2278:                                 #set ($shownStats = "y")
2279:                                 #set ($type = $score.valueOf("@type"))
2280:                                 #if ($velocityCount % 2 == 0)
2281:                                     #set ($row = "even")
2282:                                 #else
2283:                                     #set ($row = "odd")
2284:                                 #end
2285:                                 <tr class="$row">
2286:                                     <td>
2287:                                         #if($score.valueOf("@vh") == 'H') $home #end
2288:                                             #if($score.valueOf("@vh") == 'V') $visitor #end
2289:                                     </td>
2290:                                     <td>$score.valueOf("@time")</td>
2291:                                     <td>
2292:                                         #if ($type == 'PP')<span
2293:                                                 class="italic">UP - </span>#end
2294:                                         #if ($type == 'SH')<span
2295:                                                 class="italic">DN - </span>#end
2296:                                         #if ($type == 'PS')<span
2297:                                                 class="italic">PS - </span>#end
2298:                                         #if ($score.valueOf("@engoal") == 'Y')<span
2299:                                                 class="italic">EN - </span>#end
2300:                                         #if ($score.valueOf("@playerId").length() > 0 and $linkPlayers)
2301:                                         <a href="$!linkPlayersBase?id=${score.valueOf("@playerId")}">
2302:                                         #end
2303:                                         $score.valueOf("@name")
2304:                                         #if ($score.valueOf("@playerId").length() > 0 and $linkPlayers)
2305:                                         </a>
2306:                                         #end
2307:                                         #if($score.valueOf("@assist1").length() > 0)
2308:                                             #if ($score.valueOf("@assist1Id").length() > 0 and $linkPlayers)
2309:                                             <a href="$!linkPlayersBase?id=${score.valueOf("@assist1Id")}">
2310:                                             #end
2311:                                             ($score.valueOf("@assist1")#if($score.valueOf("@assist2").length() > 0)#else
2312:                                             )#end
2313:                                             #if ($score.valueOf("@assist1Id").length() > 0 and $linkPlayers)
2314:                                             </a>
2315:                                             #end
2316:                                         #else
2317:                                             #if ($gender == 'F')
2318:                                                 #set ($scoreTime = $score.valueOf("@time"))
2319:                                                 #set ($fpsFlag = false)
2320: 
2321:                                                 #foreach ($fpsNode in $document.selectNodes("//play[@action='FPS']"))
2322:                                                     #if ($fpsNode.valueOf("@clock") == $scoreTime)
2323:                                                         #set ($fpsFlag = true)
2324:                                                     #end
2325:                                                 #end
2326: 
2327:                                                 #if ($fpsFlag)
2328:                                                     (Free position shot)
2329:                                                 #else
2330:                                                     (unassisted)
2331:                                                 #end
2332:                                             #else
2333:                                                 (unassisted)
2334:                                             #end
2335:                                         #end
2336:                                         #if($score.valueOf("@assist2").length() > 0)
2337:                                             &amp;
2338:                                             #if ($score.valueOf("@assist2Id").length() > 0 and $linkPlayers)
2339:                                             <a href="$!linkPlayersBase?id=${score.valueOf("@assist2Id")}">
2340:                                             #end
2341:                                             $score.valueOf("@assist2"))
2342:                                             #if ($score.valueOf("@assist2Id").length() > 0 and $linkPlayers)
2343:                                             </a>
2344:                                             #end
2345:                                         #end
2346: 
2347:                                         #if($score.valueOf("@vh") == 'H')
2348:                                             #set ($homeScore = $tool.math.add($homeScore, 1))
2349:                                         #elseif($score.valueOf("@vh") == 'V')
2350:                                             #set ($visitorScore = $tool.math.add($visitorScore, 1))
2351:                                         #end
2352: 
2353:                                     </td>
2354:                                     <td class="align-center">$visitorScore</td>
2355:                                     <td class="align-center">$homeScore</td>
2356:                                 </tr>
2357:                             #end ## if
2358:                         #end ## scoring foreach
2359:                         #if ($shownStats == "")
2360:                             <tr>
2361:                                 <td colspan="6" class="align-center">(no scoring)</td>
2362:                             </tr> #end
2363: 
2364:                     #end ## period range
2365:                 </table>
2366:             </div>
2367: 
2368:             ## SHOOTOUTS
2369: 
2370:             #set ($shootouts = $document.selectNodes("lcgame/shootouts/shootout"))
2371:             #if ($shootouts.size() > 0)
2372:             <div class="stats-fullbox clearfix">
2373:                 <table>
2374:                     <tr>
2375:                         <th colspan="2" class="align-left">Shootout</th>
2376:                     </tr>
2377:                     <tr>
2378:                         <th>${visitor}
2379:                         </td>
2380:                         <th>${home}
2381:                         </td>
2382:                     </tr>
2383:                     <tr>
2384:                         <td valign="top" width="50%">#shootout($shootouts "V")</td>
2385:                         <td valign="top" width="50%">#shootout($shootouts "H")</td>
2386:                     </tr>
2387:                     <tr class="stats-highlight">
2388:                         <td colspan="2" class="align-center">
2389:                             #if ($shootoutScores.get("V") > $shootoutScores.get("H"))
2390:                                 $visitor wins shootout ${shootoutScores.get("V")}
2391:                                 - ${shootoutScores.get("H")}
2392:                             #else
2393:                                 $home wins shootout ${shootoutScores.get("H")}
2394:                                 - ${shootoutScores.get("V")}
2395:                             #end
2396: 
2397:                         </td>
2398:                     </tr>
2399:                 </table>
2400:             </div> ## fullbox div end
2401:             #end
2402: 
2403:             ## TEAM SUMMARY
2404:             #macro (showTeamSummary $team)
2405:                 #set ($foString = "")
2406:                 #set ($pimString = "")
2407:                 #set ($focounter = 0)
2408:                 #set ($pimcounter = 0)
2409: 
2410:                 #foreach ($stat in $team.selectNodes("player/misc"))
2411:                     #if ($stat.valueOf("@facewon").length() > 0 && $stat.valueOf("@facelost").length() > 0)
2412:                         #set ($focounter = $focounter + 1)
2413:                         #if ($focounter > 1)
2414:                             #set ($foString = "${foString}; ")
2415:                         #end
2416:                         #set ($pName = $stat.valueOf("../@name"))
2417:                         #set ($fw = $stat.valueOf("@facewon"))
2418:                         #set ($fl = $stat.valueOf("@facelost"))
2419:                         #set ($fl = $tool.math.add($fw, $fl))
2420:                         #set ($foString = "${foString}${pName} ${fw}-${fl}")
2421:                     #end
2422:                 #end
2423: 
2424:                 #foreach ($stat in $team.selectNodes("player/penalty"))
2425:                     #if ($stat.valueOf("@count").length() > 0 && $stat.valueOf("@seconds").length() > 0 && $tool.math.toInteger($stat.valueOf("@count")) > 0 && $tool.math.toInteger($stat.valueOf("@seconds")) > 0)
2426:                         #set ($pimcounter = $pimcounter + 1)
2427:                         #if ($pimcounter > 1)
2428:                             #set ($pimString = "${pimString}; ")
2429:                         #end
2430:                         #set ($pName = $stat.valueOf("../@name"))
2431:                         #set ($pc = $stat.valueOf("@count"))
2432:                         #set ($ps = $stat.valueOf("@seconds"))
2433:                         #set ($pimString = "${pimString}${pName} ${pc}-${ps}")
2434:                     #end
2435:                 #end
2436: 
2437:                 #if ($foString.length() > 0 || $pimString.length() > 0)
2438:                 <table>
2439:                     <tr>
2440:                         <th colspan="10" class="align-left">TEAM SUMMARY</th>
2441:                     </tr>
2442:                     #if ($foString.length() > 0)
2443:                         <tr>
2444:                             <td colspan="10"><span class="bold">FO: </span>$foString
2445:                             </td>
2446:                         </tr>#end
2447:                     #if ($pimString.length() > 0)
2448:                         <tr>
2449:                             <td colspan="10"><span
2450:                                     class="bold">PIM: </span>$pimString</td>
2451:                         </tr>#end
2452:                 </table>
2453:                 #end
2454:             #end
2455: 
2456:             #macro (playerstats $team)
2457:                 <table>
2458:                     <tr>
2459:                         <td class="align-center"><h4>$team.valueOf("@name")</h4></td>
2460:                     </tr>
2461:                 </table>
2462:                 <table>
2463:                     <tr>
2464:                         <th class="align-left">#</th>
2465:                         <th class="align-left">PLAYER</th>
2466:                         <th>POS</th>
2467:                         <th>G</th>
2468:                         <th>A</th>
2469:                         <th>SH</th>
2470:                         <th>SOG</th>
2471:                         <th>GB</th>
2472:                         #if ($gender == 'F')
2473:                             <th>DC</th> ## WOMEN ONLY
2474:                         #end
2475:                         <th>T/O</th>
2476:                         <th>CT</th>
2477:                     </tr>
2478: 
2479:                     #foreach ($stat in $team.selectNodes("player/shots"))
2480:                         #if ($velocityCount % 2 == 0)
2481:                             #set ($row = "even")
2482:                         #else
2483:                             #set ($row = "odd")
2484:                         #end
2485:                         <tr class="$row">
2486:                             <td>$!stat.valueOf("../@uni")</td>
2487:                             <td class="nowrap">
2488:                                 #if ($stat.valueOf("../@playerId").length() > 0 and $linkPlayers and $stat.valueOf("../../@link").length() > 0)
2489:                                 <a href="$!linkPlayersBase?id=${stat.valueOf("../@playerId")}">
2490:                                 #end
2491:                                 $stat.valueOf("../@name")
2492:                                 #if ($stat.valueOf("../@playerId").length() > 0 and $linkPlayers and $stat.valueOf("../../@link").length() > 0)
2493:                                 </a>
2494:                                 #end
2495:                                 #if($stat.valueOf("../@gs").length() > 0)*#end
2496:                             </td>
2497:                             <td class="align-center">$stat.valueOf("../@pos")</td>
2498:                             <td class="align-center">$!stat.valueOf("@g")</td>
2499:                             <td class="align-center">$!stat.valueOf("@a")</td>
2500:                             <td class="align-center">$!stat.valueOf("@sh")</td>
2501:                             <td class="align-center">$!stat.valueOf("@sog")</td>
2502:                             <td class="align-center">$!stat.valueOf("../misc/@gb")</td>
2503:                             #if ($gender == 'F')
2504:                                 <td class="align-center">$!stat.valueOf("../misc/@dc")</td> ##  WOMEN ONLY
2505:                             #end
2506:                             <td class="align-center">$!stat.valueOf("../misc/@turnover")</td>
2507:                             <td class="align-center">$!stat.valueOf("../misc/@ct")</td>
2508:                         </tr>
2509:                     #end
2510:                     <tr class="stats-highlight totals">
2511:                         <td colspan="3">Totals</td>
2512:                         <td class="align-center">$team.valueOf("totals/shots/@g")</td>
2513:                         <td class="align-center">$team.valueOf("totals/shots/@a")</td>
2514:                         <td class="align-center">$team.valueOf("totals/shots/@sh")</td>
2515:                         <td class="align-center">$team.valueOf("totals/shots/@sog")</td>
2516:                         <td class="align-center">$team.valueOf("totals/misc/@gb")</td>
2517:                         #if ($gender == 'F')
2518:                             <td class="align-center">$team.valueOf("totals/misc/@dc")</td> ##  WOMEN ONLY
2519:                         #end
2520:                         <td class="align-center">$team.valueOf("totals/misc/@turnover")</td>
2521:                         <td class="align-center">$team.valueOf("totals/misc/@ct")</td>
2522:                     </tr>
2523:                 </table>
2524:                 <table>
2525:                     <tr>
2526:                         <th class="align-left">#</th>
2527:                         <th class="align-left">GOALIES</th>
2528:                         <th>GA</th>
2529:                         <th>Min</th>
2530:                         <th>SV</th>
2531:                         <th>SH</th>
2532:                     </tr>
2533: 
2534:                     #printGoalies($team)
2535: 
2536:                     #if ($team.selectNodes("player/goalie").size() > 1)
2537:                         <tr class="stats-highlight totals">
2538:                             <td colspan="2">Totals</td>
2539:                             #set ($ga = $team.numberValueOf("totals/goalie/@ga") + $team.numberValueOf("totals/goalie/@eng"))
2540:                             <td class="align-center">$formatter.formatNumber($ga, "
2541:                                 #")</td>
2542:                             <td class="align-center">$team.valueOf("totals/goalie/@minutes")</td>
2543:                             <td class="align-center">$team.valueOf("totals/goalie/@saves")</td>
2544:                             <td class="align-center">#shots($team.valueOf("totals/goalie/@ga") $team.valueOf("totals/goalie/@saves"))</td>
2545:                         </tr>
2546:                     #end
2547: 
2548:                 </table>
2549:                 #showTeamSummary($team)
2550:             #end ##macro
2551: 
2552:             <div class="clearfix">
2553: 
2554:                 ## VISITOR STATISTICS
2555:                 <div class="stats-halfbox-left">#playerstats($document.selectSingleNode("lcgame/team[@vh='V']"))</div>
2556:                 ## HOME STATISTICS
2557:                 <div class="stats-halfbox-right">#playerstats($document.selectSingleNode("lcgame/team[@vh='H']"))</div>
2558: 
2559:                 <div class="clear"></div>
2560: 
2561:             </div> ## clearfix
2562: 
2563:             <div class="clearfix">
2564: 
2565:                 <div class="stats-halfbox-left">
2566:                 ## SAVES
2567:                     <table>
2568:                         <tr>
2569:                             <th class="align-left">SAVES</th>
2570:                             #printPeriodHead()
2571:                             <th style="width:50px">TOTAL</th>
2572:                         </tr>
2573:                         #foreach ($team in $document.selectNodes("lcgame/team"))
2574:                             <tr>
2575:                                 <td class="nowrap">$team.attributeValue("name")</td>
2576:                                 #foreach ($i in $periodRange)
2577:                                     <td class="align-center">$team.valueOf("
2578:                                         linescore/lineprd[$i]/@saves")</td>
2579:                                 #end
2580:                                 <td class="align-center">$team.valueOf("totals/goalie/@saves")</td>
2581:                             </tr>
2582:                         #end
2583:                     </table>
2584:                 </div>
2585: 
2586: 
2587:                 <div class="stats-halfbox-right">
2588:                 ## GROUND BALLS
2589:                     <table>
2590:                         <tr>
2591:                             <th class="align-left">GROUND BALLS</th>
2592:                             #printPeriodHead()
2593:                             <th style="width:50px">TOTAL</th>
2594:                         </tr>
2595:                         #foreach ($team in $document.selectNodes("lcgame/team"))
2596:                             <tr>
2597:                                 <td class="nowrap">$team.attributeValue("name")</td>
2598:                                 #foreach ($i in $periodRange)
2599:                                     <td class="align-center">$team.valueOf("
2600:                                         linescore/lineprd[$i]/@gb")</td>
2601:                                 #end
2602:                                 <td class="align-center">$team.valueOf("totals/misc/@gb")</td>
2603:                             </tr>
2604:                         #end
2605:                     </table>
2606:                 </div>
2607: 
2608:             </div> ## clearfix
2609: 
2610:             <div class="clearfix">
2611: 
2612:                 <div class="stats-halfbox-left">
2613:                 ## TURNOVERS
2614:                     <table>
2615:                         <tr>
2616:                             <th class="align-left">TURNOVERS</th>
2617:                             #printPeriodHead()
2618:                             <th style="width:50px">TOTAL</th>
2619:                         </tr>
2620:                         #foreach ($team in $document.selectNodes("lcgame/team"))
2621:                             <tr>
2622:                                 <td class="nowrap">$team.attributeValue("name")</td>
2623:                                 #foreach ($i in $periodRange)
2624:                                     <td class="align-center">$team.valueOf("
2625:                                         linescore/lineprd[$i]/@turnover")</td>
2626:                                 #end
2627:                                 <td class="align-center">$team.valueOf("totals/misc/@turnover")</td>
2628:                             </tr>
2629:                         #end
2630:                     </table>
2631:                 </div>
2632: 
2633: 
2634:                 <div class="stats-halfbox-right">
2635:                 ## CLEARS
2636:                     <table>
2637:                         <tr>
2638:                             <th class="align-left">CLEARS</th>
2639:                             #printPeriodHead()
2640:                             <th style="width:50px">TOTAL</th>
2641:                         </tr>
2642:                         #foreach ($team in $document.selectNodes("lcgame/team"))
2643:                             <tr>
2644:                                 <td class="nowrap">$team.attributeValue("name")</td>
2645:                                 #foreach ($i in $periodRange)
2646:                                     <td class="align-center">$team.valueOf("
2647:                                         linescore/lineprd[$i]/@clearm")-$team.valueOf("
2648:                                         linescore/lineprd[$i]/@cleara")</td>
2649:                                 #end
2650:                                 <td class="align-center">$team.valueOf("totals/clear/@clearm")
2651:                                     -$team.valueOf("totals/clear/@cleara")</td>
2652:                             </tr>
2653:                         #end
2654:                     </table>
2655:                 </div>
2656: 
2657:             </div> ## clearfix
2658: 
2659:             #if ($gender == 'M')
2660: 
2661:                 ##<H3>Men Only</H3>
2662: 
2663:                 ## CALCULATE FACEOFF
2664:                 #macro (calculate $pVal $period $team)
2665:                     #if ($team.attributeValue("name") == $visitor)
2666:                         #set ($otherTeam = $document.selectSingleNode("lcgame/team[@vh='H']"))
2667:                     #else
2668:                         #set ($otherTeam = $document.selectSingleNode("lcgame/team[@vh='V']"))
2669:                     #end
2670:                     #set($add1 = $team.valueOf("linescore/lineprd[$period]/@fowon"))
2671:                     #set($add2 = $otherTeam.valueOf("linescore/lineprd[$period
2672:                     ]/@fowon"))
2673:                     #if ($add1.length() > 0 && $add2.length() > 0)
2674:                         ${pVal}-$tool.math.add($add1, $add2)
2675:                     #end
2676:                 #end
2677: 
2678:                 <div class="clearfix">
2679:                     <div class="stats-halfbox-left">
2680:                     ## FACE OFFS
2681:                         <table>
2682:                             <tr>
2683:                                 <th class="align-left">FACE OFFS WON</th>
2684:                                 #printPeriodHead()
2685:                                 <th style="width:50px">TOTAL</th>
2686:                             </tr>
2687:                             #foreach ($team in $document.selectNodes("lcgame/team"))
2688:                                 <tr>
2689:                                     <td class="nowrap">$team.attributeValue("name")</td>
2690:                                     #foreach ($i in $periodRange)
2691:                                         #set ($tfo = $team.valueOf("linescore/lineprd[$i
2692:                                             ]/@fowon"))
2693:                                         <td class="align-center">#calculate($tfo $i $team)</td>
2694:                                     #end
2695:                                     <td class="align-center">$team.valueOf("totals/misc/@facewon")
2696:                                         -$tool.math.add($team.valueOf("totals/misc/@facewon"),$team.valueOf("totals/misc/@facelost"))</td>
2697:                                 </tr>
2698:                             #end
2699:                         </table>
2700:                     </div>
2701: 
2702:                     <div class="stats-halfbox-right">
2703:                     ## MAN ADVANTAGE
2704:                         <table>
2705:                             <tr>
2706:                                 <th class="align-left">MAN UP</th>
2707:                                 #printPeriodHead()
2708:                                 <th>TOTAL</th>
2709:                             </tr>
2710:                             #foreach ($team in $document.selectNodes("lcgame/team"))
2711:                                 <tr>
2712:                                     <td class="nowrap">$team.attributeValue("name")</td>
2713:                                     #foreach ($i in $periodRange)
2714:                                         <td class="align-center">$team.valueOf("
2715:                                             linescore/lineprd[$i]/@ppg")-$team.valueOf("
2716:                                             linescore/lineprd[$i]/@ppatt")</td>
2717:                                     #end
2718:                                     <td class="align-center">$team.valueOf("totals/powerplay/@ppg")
2719:                                         -$team.valueOf("totals/powerplay/@ppopp")</td>
2720:                                 </tr>
2721:                             #end
2722:                         </table>
2723:                     </div>
2724: 
2725:                 </div> ## clearfix
2726:                 ##End Men Only
2727: 
2728:             #else
2729: 
2730:                 ##<H3>Women Only</H3>
2731: 
2732:                 <div class="clearfix">
2733: 
2734:                     <div class="stats-halfbox-left">
2735:                     ## DRAW CONTROLS
2736:                         <table>
2737:                             <tr>
2738:                                 <th class="align-left">DRAW CONTROLS</th>
2739:                                 #printPeriodHead()
2740:                                 <th style="width:50px">TOTAL</th>
2741:                             </tr>
2742:                             #foreach ($team in $document.selectNodes("lcgame/team"))
2743:                                 <tr>
2744:                                     <td class="nowrap">$team.attributeValue("name")</td>
2745:                                     #foreach ($i in $periodRange)
2746:                                         <td class="align-center">$team.valueOf("
2747:                                             linescore/lineprd[$i]/@dc")</td>
2748:                                     #end
2749:                                     <td class="align-center">$team.valueOf("totals/misc/@dc")</td>
2750:                                 </tr>
2751:                             #end
2752:                         </table>
2753:                     </div>
2754: 
2755: 
2756:                     <div class="stats-halfbox-right">
2757:                     ## FREE POSITION
2758:                         <table>
2759:                             <tr>
2760:                                 <th class="align-left">FREE POSITION SHOTS</th>
2761:                                 #printPeriodHead()
2762:                                 <th style="width:50px">TOTAL</th>
2763:                             </tr>
2764:                             #foreach ($team in $document.selectNodes("lcgame/team"))
2765:                                 <tr>
2766:                                     <td class="nowrap">$team.attributeValue("name")</td>
2767:                                     #foreach ($i in $periodRange)
2768:                                         <td class="align-center">$team.valueOf("
2769:                                             linescore/lineprd[$i]/@fpg")-$team.valueOf("
2770:                                             linescore/lineprd[$i]/@fps")</td>
2771:                                     #end
2772:                                     <td class="align-center">$team.valueOf("totals/goaltype/@freepos")
2773:                                         -$team.valueOf("totals/shots/@freepos")</td>
2774:                                 </tr>
2775:                             #end
2776:                         </table>
2777:                     </div>
2778: 
2779:                 </div> ## clearfix
2780: 
2781:                 ##End Women Only
2782:             #end
2783: 
2784:             ## STAT CREW DOES NOT PROVIDE PERIOD DATA - 20100310
2785:             ## COMMENTING OUT FOR NOW
2786:             #*
2787:             <div class="stats-halfbox-left">
2788:             ## CAUSED TURNOVERS
2789:             <table>
2790:              <tr>
2791:               <th>CAUSED TURNOVERS</th>
2792:               <th>1</th>
2793:               <th>2</th>
2794:               #if ($gender == 'M')
2795:                 <th>3</th>
2796:                 <th>4</th>
2797:               #end
2798:               #if ($periods > 4)<th>OT</th>#end
2799:               <th>TOTAL</th>
2800:              </tr>
2801:             #foreach ($team in $document.selectNodes("lcgame/team"))
2802:              <tr class="boxscoreStats">
2803:               <td>$team.attributeValue("name")</td>
2804:               <td class="align-center">$team.valueOf("linescore/lineprd[1]/@ct")</td>
2805:               <td class="align-center">$team.valueOf("linescore/lineprd[2]/@ct")</td>
2806:               #if ($gender == 'M')
2807:                 <td class="align-center">$team.valueOf("linescore/lineprd[3]/@ct")</td>
2808:                 <td class="align-center">$team.valueOf("linescore/lineprd[4]/@ct")</td>
2809:               #end
2810:               #if ($periods > 4)<td class="align-center">$team.valueOf("linescore/lineprd[5]/@ct")</td>#end
2811:               <td class="align-center">$team.valueOf("totals/misc/@ct")</td>
2812:              </tr>
2813:             #end
2814:             </table>
2815:             </div>
2816:             *#
2817:             <div class="clearfix">
2818: 
2819:                 <div class="stats-halfbox-left">
2820:                 ## SHOTS BY PERIOD
2821:                     <table>
2822:                         <tr>
2823:                             <th class="align-left">SHOTS</th>
2824:                             #printPeriodHead()
2825:                             <th style="width:50px">TOTAL</th>
2826:                         </tr>
2827: 
2828:                     ## TEAM SHOTS
2829:                         #foreach ($team in $document.selectNodes("lcgame/team"))
2830:                             <tr>
2831:                                 <td class="nowrap">$team.attributeValue("name")</td>
2832:                                 #foreach ($i in $periodRange)
2833:                                     <td class="align-center">$team.valueOf("
2834:                                         linescore/lineprd[$i]/@shots")</td>
2835:                                 #end
2836:                                 <td class="align-center">$team.valueOf("linescore/@shots")</td>
2837:                             </tr>
2838:                         #end
2839:                     </table>
2840:                 </div>
2841: 
2842:                 #if ($gender == 'F')
2843:                 ## FOULS
2844:                     <div class="stats-halfbox-right">
2845:                         <table>
2846:                             <tr>
2847:                                 <th class="align-left">FOULS</th>
2848:                                 #printPeriodHead()
2849:                                 <th style="width:50px">TOTAL</th>
2850:                             </tr>
2851:                             #foreach ($team in $document.selectNodes("lcgame/team"))
2852:                                 <tr>
2853:                                     <td class="nowrap">$team.attributeValue("name")</td>
2854:                                     #set ($foulTotal = 0)
2855:                                     #foreach ($i in $periodRange)
2856:                                         #set ($foulVal = $team.valueOf("linescore/lineprd[$i]/@fouls"))
2857:                                         #if ($foulVal.length() > 0)
2858:                                             #set ($foulTotal = $tool.math.add($foulTotal, $foulVal))
2859:                                             <td class="align-center">$foulVal</td>
2860:                                         #else
2861:                                             <td>&nbsp;</td>
2862:                                         #end
2863:                                     #end
2864:                                     <td class="align-center">$foulTotal</td>
2865:                                 </tr>
2866:                             #end
2867:                         </table>
2868:                     </div>
2869:                 #else
2870: 
2871:                     ## FO Violations - MEN ONLY
2872:                     #if ($document.valueOf("lcgame/team[1]/totals/penalty/@fviol") != '')
2873:                         <div class="stats-halfbox-right">
2874:                             <table>
2875:                                 <tr>
2876:                                     <th>FO Violations</th>
2877:                                     #printPeriodHead()
2878:                                     <th>TOTAL</th>
2879:                                 </tr>
2880:                                 #foreach ($team in $document.selectNodes("lcgame/team"))
2881:                                     <tr>
2882:                                         <td class="nowrap">$team.attributeValue("name")</td>
2883:                                         #foreach ($i in $periodRange)
2884:                                             <td class="align-center">$team.valueOf("linescore/lineprd[$i]/@fviol")</td>
2885:                                         #end
2886:                                         <td class="align-center">$team.valueOf("totals/penalty/@fviol")</td>
2887:                                     </tr>
2888:                                 #end
2889:                             </table>
2890:                         </div>
2891:                     #end ## FO Violation exist check
2892: 
2893:                 #end
2894: 
2895:                 <div class="clear"></div>
2896:             </div> ## clearfix
2897: 
2898:             ## PENALTY SUMMARY
2899:             <div class="stats-fullbox clearfix">
2900:                 <table>
2901:                     <tr>
2902:                         <th colspan="4" class="align-left">PENALTY SUMMARY</th>
2903:                     </tr>
2904:                     #foreach ($pd in $periodRange)
2905:                         #set ($shownStats = "")
2906:                         <tr class="stats-highlight">
2907:                             <td colspan="4" class="align-center">-- <span
2908:                                     class="bold">#period($pd)</span> --
2909:                             </td>
2910:                         </tr>
2911: 
2912:                         #foreach ($penalty in $document.selectNodes("lcgame/penalties/pen"))
2913:                             #if ($pd == $penalty.valueOf("@prd"))
2914:                                 #set ($shownStats = "y")
2915: 
2916:                                 <tr>
2917:                                     <td>
2918:                                         #if($penalty.valueOf("@vh") == 'H') $home #end
2919:                                         #if($penalty.valueOf("@vh") == 'V') $visitor #end
2920:                                     </td>
2921: 
2922:                                     #if ($gender == 'M')
2923:                                     ## MEN ONLY
2924:                                         <td>$penalty.valueOf("@seconds") seconds</td>
2925:                                     #end
2926: 
2927:                                     <td>$penalty.valueOf("@time")</td>
2928:                                     <td>
2929:                                         #if ($penalty.valueOf("@type") == 'PP')<span
2930:                                                 class="italic">PP - </span>#end
2931:                                         #if ($penalty.valueOf("@type") == 'SH')<span
2932:                                                 class="italic">SH - </span>#end
2933:                                         $penalty.valueOf("@name")
2934:                                         : $!penalty.valueOf("@minutes")
2935:                                         - $!penalty.valueOf("@desc")
2936:                                     </td>
2937:                                 </tr>
2938: 
2939:                             #end ## if
2940:                         #end ## penalty foreach
2941: 
2942:                         #if ($shownStats == "")
2943:                             <tr>
2944:                                 <td colspan="4" class="align-center">(no penalties)</td>
2945:                             </tr>
2946:                         #end
2947: 
2948:                     #end ## period range
2949: 
2950:                     #if ($gender == 'M')
2951:                     ## penalty minutes
2952:                     ## MEN ONLY
2953:                         <tr>
2954:                             <th colspan="4">PENALTY TOTALS</th>
2955:                         </tr>
2956:                         <tr>
2957:                             <td colspan="4">
2958: 
2959:                                 <table>
2960:                                     <tr>
2961:                                         #foreach ($team in $document.selectNodes("lcgame/team"))
2962:                                             #set ($penaltySeconds = $team.valueOf("totals/penalty/@seconds"))
2963:                                             #set ($penaltyCount = $team.valueOf("totals/penalty/@count"))
2964:                                             #if ($penaltySeconds.length() > 0 && $penaltyCount.length() > 0)
2965:                                                 #set ($penaltySeconds = $tool.math.toInteger($penaltySeconds))
2966:                                                 #set ($remainder = 0)
2967:                                                 #set ($remainder = $penaltySeconds % 60)
2968:                                                 #set ($penaltyMinutes = $tool.math.toInteger($tool.math.div($penaltySeconds, 60)))
2969:                                                 #if ($penaltyMinutes > 1)
2970:                                                     #set ($minString = "${penaltyMinutes}
2971:                                                         minutes")
2972:                                                 #else
2973:                                                     #set ($minString = "${penaltyMinutes}
2974:                                                         minute")
2975:                                                 #end
2976:                                                 #set ($secString = "")
2977:                                                 #if ($remainder > 0)
2978:                                                     #if ($remainder > 1)
2979:                                                         #set ($secString = "${remainder}
2980:                                                             seconds")
2981:                                                     #else
2982:                                                         #set ($secString = "${remainder}
2983:                                                             second")
2984:                                                     #end
2985:                                                 #end
2986:                                                 <td><span
2987:                                                         class="bold">$team.attributeValue("name")</span>:  $minString $secString
2988:                                                     on $penaltyCount infraction(s)
2989:                                                 </td>
2990:                                             #else
2991:                                                 <td>&nbsp;</td>
2992:                                             #end
2993:                                         #end
2994:                                     </tr>
2995:                                 </table>
2996: 
2997:                             </td>
2998:                         </tr>
2999:                     #end
3000:                 </table>
3001:             </div>
3002: 
3003:             ## OTHER INFORMATION
3004:             <div class="stats-fullbox summary clearfix">
3005:                 <table>
3006:                     <tr>
3007:                         <th class="align-left">OTHER INFORMATION</th>
3008:                     </tr>
3009:                     <tr>
3010:                         <td>
3011:                             #if($duration.length() > 0)<span
3012:                                     class="bold">Game Length: </span>$!duration<br/>#end
3013:                             #if($attendance.length() > 0)<span
3014:                                     class="bold">Attendance: </span>$!attendance
3015:                                 <br/>#end
3016:                             #if ($document.selectNodes("lcgame/venue/officials/official").size() > 0)
3017:                                 <span class="bold">Officials and game personnel: </span>
3018:                                 #foreach ($official in $document.selectNodes("lcgame/venue/officials/official"))
3019:                                     #if ($official.valueOf("@title").length() > 0)
3020:                                         <span>$official.valueOf("@title"): </span>#end
3021:                                     #if($velocityCount > 1); #end
3022:                                     <span>$official.valueOf("@name")</span>
3023:                                 #end
3024:                             #end
3025:                         </td>
3026:                     </tr>
3027:                 </table>
3028:             </div>
3029: 
3030:             <div class="clearfix">
3031:                 <table>
3032:                     <tr>
3033:                         <td><span class="footnote">Starter *</span></td>
3034:                     </tr>
3035:                 </table>
3036:             </div>
3037: 
3038:         #end
3039: 
3040:         #if ($stats.view == "plays" && $hasPlayByPlay)
3041:             #printTabPlayByPlay()
3042:         #elseif ($stats.view == "pdf")
3043:             #printPdfHeader("Box score")
3044:             #parse("lcxml-monospace-template")
3045:             #if ($hasPlayByPlay)
3046:                 <p class="pagebreak">&nbsp;</p>
3047:                 #printPdfHeader("Play by Play")
3048:                 #printTabPlayByPlay()
3049:             #end
3050:         #else
3051:             #printTabBoxscore()
3052:         #end ## ENDS VIEW CHECK
3053: 
3054:         #set ($showWiki = true)
3055:         #set ($showWiki = $showWikiVar)
3056: 
3057:         #if ($showWiki == true)
3058:             $!wiki.su
3059:         #end
3060:     </div>
3061: 
3062:     #if ($stats.view != "pdf")
3063:         #changeViewScript()
3064:     #end
3065:     </body>
3066:     </html>
3067: #end
3068: #end
3069: 
3070: ## GLOBAL ADS SERVER
3071: #if ($website.ads.isAdvertisingEnabled('BOX_SCORES'))
3072: 	$website.ads.register('box_scores', '[[320,50],[728,90],[970,90]]', 'PS_WEB_INTERNAL_LEADERBOARD')
3073: #end