SUNY Canton

Northern Vermont-Lyndon

Sat, Feb. 15, 2020
1:00 PM EST

Live statistics will be available in:



Overview

SUNY Canton

Team Record Conf. Record Last Game
0-3 0-0 L, 58-33 at Keuka

Northern Vermont-Lyndon

Team Record Conf. Record Last Game
1-1 0-0 L, 53-47 vs. Fisher

Team Comparison

Points

46.7
56.0

Points Allowed

75.0
50.5

Field Goal %

27.3
34.9

3-point %

25.4
25.8

Free Throw %

52.1
59.3

Rebounds

44.7
40.0

Assists

8.7
12.0

Steals

9.7
14.5

Blocks

3.7
6.0

Turnovers

29.3
20.0
SUNY Canton (based on 3 games)
Northern Vermont-Lyndon (based on 2 games)

Key Contributors

Autumn Watkins

Shaylan Mosher

11.0 Points 12.5
7.3 Rebounds 3.5
2.3 Assists 1.5

Autumn Kunes

Kelsey Jacobs

11.0 Points 1.0
3.0 Rebounds 1.0
1.7 Assists 0.0

Joie Culkin

There was a problem with a Velocity script
Pagestatcrew-bbxml-template
ErrorError invoking method 'get(java.lang.Integer)' in [Ljava.lang.Object; at statcrew-bbxml-template[line 381, column 60]
Page source:
1: #if ($stats.view == 'pt')
2:     ## CONFIGURATION
3:     $website.include("options")
4:     #set ($options = $request.getAttribute("options"))
5:     #set ($pregame = $stats.pregame)
6:     #set ($startTime = $document.getRootElement().valueOf("network/@startTime"))
7:     #if ($document.getRootElement().valueOf("network/@tba") == 'Y')
8:         #set ($tba = true)
9:     #else
10:         #set ($tba = false)
11:     #end
12:     #set ($location = $document.getRootElement().valueOf("network/@location"))
13:     #set ($localDate = $document.getRootElement().valueOf("network/@localDate"))
14:     #set ($localTime = $document.getRootElement().valueOf("network/@localTime"))
15:     #set ($hasVideo = false)
16:     #if ($document.getRootElement().valueOf("primetime/@videoProvider").length() > 0 && $document.getRootElement().valueOf("primetime/@videoProvider") != "none")
17:         #set ($hasVideo = true)
18:     #else
19:         #set ($hasVideo = false)
20:     #end
21:     #if ($location != '')
22:         #set ($neutral = true)
23:     #else
24:         #set ($neutral = false)
25:     #end
26:     #if ($request.getParameter("paused") == 'y')
27:         #set ($paused = true)
28:     #else
29:         #set ($paused = false)
30:     #end
31: 
32:     #if ($pregame)
33:         #set ($visitorTeamId = $document.getRootElement().valueOf("team[@vh='V']/@teamId"))
34:         #set ($homeTeamId = $document.getRootElement().valueOf("team[@vh='H']/@teamId"))
35: 
36:         #if ($!options.get("primetime_preview_hide").equalsIgnoreCase("hide"))
37:             #set ($shouldStatsShow = false)
38:         #else
39:             #set ($shouldStatsShow = $preview.shouldStatsShow($homeTeamId,$visitorTeamId))
40:         #end
41:     #end
42: 
43:     <head>
44: 
45:         <script type="text/javascript" src='$website.cdn("/info/jquery-2.1.1.js")'></script>
46:         <script type="text/javascript" src='$website.cdn("/info/notifications/jquery.noty.packaged.min.js")'></script>
47:         <script type="text/javascript" src='$website.cdn("/info/dataTables/js/jquery.dataTables.js")'></script>
48:         <script type="text/javascript" src='$website.cdn("/info/momentjs/moment.js")'></script>
49:         <script type="text/javascript" src='$website.cdn("/info/primetime3/js/full_screen_api.js")'></script>
50:         <script type="text/javascript" src='$website.cdn("/info/primetime3/js/flipclock.min.js")'></script>
51: 
52:         $website.addCss($website.cdn("/info/dataTables/css/jquery.dataTables.css"))
53:         $website.addCss($website.cdn("/info/primetime3/css/flipclock.css"))
54: 
55:         <script type="text/javascript" src="/info/primetime3/js/pt3-embed.js"></script>
56: 
57:         <script type="text/javascript">var jQuery_2_1 = $.noConflict(true);</script>
58:         <script type="text/javascript" src="/info/primetime3/js/add-ons.js"></script>
59:         <script type="text/javascript" src="/info/primetime3/js/pt3-util.js"></script>
60: 
61:         <script src="/info/primetime3/js/highcharts.js"></script>
62:         <script src="/info/primetime3/js/highcharts-more.js"></script>
63:         <script src="/info/primetime3/js/solid-gauge.js"></script>
64: 
65:         <script type="text/javascript" src="/info/primetime3/js/pt3-preview-charts.js"></script>
66: 
67:         $website.addCss("/info/primetime3/css/pt3-styles.css")
68:         $website.addCss("/info/primetime3/css/pt3-responsive.css")
69: 
70:         <script type="text/javascript" src="/info/primetime3/js/restive.js"></script>
71:         <script type="text/javascript" src="/info/primetime3/js/pt3-restive.js"></script>
72: 
73:         <script type="text/javascript">
74:             var conf = new Object();
75:             conf.locale = '${locale}';
76:             conf.videoProvider = '${videoProvider}';
77:             conf.videoId = '${videoId}';
78:             conf.eventId = '$document.getRootElement().valueOf("network/@eventId")';
79:             conf.eventIdHashCode = '$eventIdHashCode';
80:             conf.visitorTeamLogo = '$stats.visitorTeamLogo';
81:             conf.homeTeamLogo = '$stats.homeTeamLogo';
82:             conf.visitorTeamColor = '#121212';
83:             conf.homeTeamColor = '#6D6D6D';
84:             conf.startTime = '$startTime';
85:             conf.pregame = $pregame;
86:             conf.tba = $tba;
87:             conf.localDate = '$localDate';
88:             conf.localTime = '$localTime';
89:             conf.visitor = '${tool.esc.javascript($document.getRootElement().valueOf("team[@vh='V']/@name"))}';
90:             conf.home = '${tool.esc.javascript($document.getRootElement().valueOf("team[@vh='H']/@name"))}';
91:             conf.currentDate = new Date();
92:             conf.statusFinal = $stats.final;
93:             conf.neutral = $neutral;
94:             conf.paused = $paused;
95: 
96:             conf.visitorTeamLighterColor = $.fn.increase_brightness(conf.visitorTeamColor, 30);
97:             conf.homeTeamLighterColor = $.fn.increase_brightness(conf.homeTeamColor, 30);
98:         </script>
99: 
100:         <script type="text/javascript" src="/info/primetime3/js/pt3-boxscore-client.js"></script>
101:         <script type="text/javascript" src="/info/primetime3/js/pt3-basketball-template.js"></script>
102:     </head>
103: 
104:     #if ($pregame && !$shouldStatsShow)
105:         <div id="primetime-wrapper" class="primetime-pre-game primetime-basketball clearfix">
106:             <div class="primetime-overflow clearfix">
107:                 <div id="primetime-header" class="grid-row">
108:                     <div class="grid-col grid-col-hdr">
109: 
110:                         <div class="pt-header clearfix">
111:                             <div class="pt-team pt-team-away visitor-team-color" style="background: $document.getRootElement().valueOf("team[@vh='V']/@color")">
112:                                 <img src="$stats.visitorTeamLogo" alt="" class="team-logo visitor-team-logo" />
113:                                 <h3 class="team-name visitor-team-name">$document.getRootElement().valueOf("team[@vh='V']/@name")</h3>
114:                             </div>
115: 
116:                             <div class="pt-team pt-team-home home-team-color" style="background: $document.getRootElement().valueOf("team[@vh='H']/@color")">
117:                                 <img src="$stats.homeTeamLogo" alt="" class="team-logo home-team-logo" />
118:                                 <h3 class="team-name home-team-name">$document.getRootElement().valueOf("team[@vh='H']/@name")</h3>
119:                             </div>
120: 
121:                             <div class="pt-match-scoreboard clearfix">
122:                                 <div class="pt-mtach-info pt-pregame">
123:                                     <center>
124:                                         <div>
125:                                             $localDate <br>
126:                                             #if ($tba)
127:                                                 TBA
128:                                             #else
129:                                                 $localTime
130:                                             #end
131:                                         </div>
132:                                     </center>
133:                                 </div>
134:                             </div>
135:                         </div>
136:                     </div>
137:                 </div>
138:                 <div class="grid-row-container clearfix">
139:                     <div class="grid-row">
140:                         <div class="content">
141:                             <div class="pt-last-play clearfix" style="display: none">
142:                                         <span class="pt-label clearfix" style="text-align: center !important; width: 100% ">
143:                                             This event doesn't have a set start time, but PrimeTime will be available once the event begins.
144:                                         </span>
145:                             </div>
146:                             <div class="text">
147:                                 <h3>
148:                                     Live statistics will be available at the start of the event in:
149:                                 </h3>
150:                                 <center>
151:                                     <div class="clock"></div><br/>
152:                                     #if ($tba)
153:                                         Days
154:                                     #end
155:                                 </center>
156:                             </div>
157:                         </div>
158:                     </div>
159:                     <div class="pt-game-info grid-row clearfix">
160:                         <div class="pt-tabs-panes clearfix">
161:                             <div id="stats-tabs" class="pt-tabs-pane clearfix">
162:                                 <div id="divGameInformation" class="grid-row">
163:                                     <div class="grid-col grid-col-gi grid-col1">
164:                                         <h2 class="grid-title">
165:                                             Game Information
166:                                         </h2>
167:                                         <div class="grid-content clearfix">
168:                                             <div class="pt-game-information clearfix">
169:                                                 <div class="pt-row clearfix">
170:                                                     <center>
171:                                                         <div class="game-location pt-col">
172:                                                                 <span class="date">
173:                                                                     $localDate<br />
174:                                                                     #if ($tba)
175:                                                                         TBA
176:                                                                     #else
177:                                                                         $localTime
178:                                                                     #end
179:                                                                 </span>
180:                                                             <h3>Date & Time</h3>
181:                                                         </div>
182:                                                         #if ($location != '')
183:                                                             <div class="game-venue pt-col">
184:                                                                 <span class="venue">
185:                                                                     $location<br />
186:                                                                     (Neutral)
187:                                                                 </span>
188:                                                                 <h3>Location</h3>
189:                                                             </div>
190:                                                         #end
191:                                                     </center>
192:                                                 </div>
193:                                             </div>
194:                                         </div>
195:                                     </div>
196:                                 </div>
197:                             </div>
198:                         </div>
199:                     </div>
200:                 </div>
201: 
202:                 <div id="primetime-footer" class="grid-row">
203:                     <div class="grid-col grid-col-ftr">
204:                         <a href="/"><img src="/info/primetime3/images/presto-logo.png" alt="prestosports website" /></a>
205:                     </div>
206:                 </div>
207:             </div>
208:         ## GENERAL INFORMATION
209:         </div>
210:     #elseif ($pregame && $shouldStatsShow)
211:         #set ($visitorTeamId = $document.getRootElement().valueOf("team[@vh='V']/@teamId"))
212:         #set ($homeTeamId = $document.getRootElement().valueOf("team[@vh='H']/@teamId"))
213: 
214:         #set ($teamStats = ["ptspg", "ptspgopp", "fgpt", "fgpt3", "ftpt", "trebpg", "astpg", "stlpg", "blkpg", "topg"])
215:         #set ($teamStatsLabels = {"ptspg": "Points", "ptspgopp": "Points Allowed", "fgpt": "Field Goal %", "fgpt3": "3-point %", "ftpt": "Free Throw %", "trebpg": "Rebounds", "astpg": "Assists", "stlpg": "Steals", "blkpg": "Blocks", "topg": "Turnovers"})
216:         #set ($topStats = ["ptspg", "trebpg", "astpg"])
217: 
218:         #set ($visitorStats = $preview.getTeam($visitorTeamId).setTeamStats($teamStats).setTopStats($topStats).calculate())
219:         #set ($homeStats = $preview.getTeam($homeTeamId).setTeamStats($teamStats).setTopStats($topStats).calculate())
220: 
221:         <div id="primetime-wrapper" class="primetime-pre-game primetime-basketball clearfix">
222:             <div class="primetime-overflow clearfix">
223:                 <div id="primetime-header" class="grid-row">
224:                     <div class="grid-col grid-col-hdr">
225: 
226:                         <div class="pt-header clearfix">
227:                             <div class="pt-team pt-team-away visitor-team-color" style="background: $document.getRootElement().valueOf("team[@vh='V']/@color")">
228:                                 <img src="$stats.visitorTeamLogo" alt="" class="team-logo visitor-team-logo" />
229:                                 <h3 class="team-name visitor-team-name">$document.getRootElement().valueOf("team[@vh='V']/@name")</h3>
230:                             </div>
231: 
232:                             <div class="pt-team pt-team-home home-team-color" style="background: $document.getRootElement().valueOf("team[@vh='H']/@color")">
233:                                 <img src="$stats.homeTeamLogo" alt="" class="team-logo home-team-logo" />
234:                                 <h3 class="team-name home-team-name">$document.getRootElement().valueOf("team[@vh='H']/@name")</h3>
235:                             </div>
236: 
237:                             <div class="pt-match-scoreboard clearfix">
238:                                 <div class="pt-mtach-info pt-pregame">
239:                                     <center>
240:                                         <div>
241:                                             $localDate <br>
242:                                             #if ($tba)
243:                                                 TBA
244:                                             #else
245:                                                 $localTime
246:                                             #end
247:                                         </div>
248:                                     </center>
249:                                 </div>
250:                             </div>
251:                         </div>
252:                     </div>
253:                 </div>
254:                 <div class="grid-row-container clearfix">
255:                     <div class="grid-row preview">
256:                         <div class="content grid-col grid-col-e">
257:                             <h3>
258:                                 Live statistics will be available in:
259:                             </h3>
260:                             <div class="pt-last-play clearfix" style="display: none">
261:                                     <span class="pt-label clearfix" style="text-align: center !important; width: 100% ">
262:                                         This event doesn't have a set start time, but PrimeTime will be available once the event begins.
263:                                     </span>
264:                             </div>
265:                             <div class="text">
266:                                 <br>
267:                                 <center>
268:                                     <div class="clock"></div><br/>
269:                                     #if ($tba)
270:                                         Days
271:                                     #end
272:                                 </center>
273:                             </div>
274:                         </div>
275:                     </div>
276:                     <div class="grid-row pt-overview">
277:                         <h2>Overview</h2>
278:                         <div class="grid-col grid-col-e grid-col2 background-black">
279:                             <h3>$document.getRootElement().valueOf("team[@vh='V']/@name")</h3>
280:                             <div class="container clearfix pt-live-action">
281:                                 <table>
282:                                     <thead>
283:                                     <tr>
284:                                         <th>Team Record</th>
285:                                         <th>Conf. Record</th>
286:                                         <th>Last Game</th>
287:                                     </tr>
288:                                     </thead>
289:                                     <tbody>
290:                                     <tr>
291:                                         <td>${visitorStats.overallRecord}</td>
292:                                         <td>${visitorStats.conferenceRecord}</td>
293:                                         <td style="text-align: center">
294:                                             ${visitorStats.lastGame.APResult}
295:                                             <span>
296:                                                 #if ($visitorStats.lastGame.neutralSite.length() > 0 || $visitorStats.lastGame.home)
297:                                                     vs.
298:                                                 #else
299:                                                     at
300:                                                 #end
301:                                             ${visitorStats.lastGame.opponent.name}
302:                                             </span>
303:                                         </td>
304:                                     </tr>
305:                                     </tbody>
306:                                 </table>
307:                             </div>
308:                             <br />
309:                         </div>
310:                         <div class="grid-col grid-col-e grid-col2 background-gray">
311:                             <h3>$document.getRootElement().valueOf("team[@vh='H']/@name")</h3>
312:                             <div class="pt-live-action">
313:                                 <table>
314:                                     <thead>
315:                                     <tr>
316:                                         <th>Team Record</th>
317:                                         <th>Conf. Record</th>
318:                                         <th>Last Game</th>
319:                                     </tr>
320:                                     </thead>
321:                                     <tbody>
322:                                     <tr>
323:                                         <td>${homeStats.overallRecord}</td>
324:                                         <td>${homeStats.conferenceRecord}</td>
325:                                         <td style="text-align: center">
326:                                             ${homeStats.lastGame.APResult}
327:                                             <span>
328:                                                 #if ($homeStats.lastGame.neutralSite.length() > 0 || $homeStats.lastGame.home)
329:                                                     vs.
330:                                                 #else
331:                                                     at
332:                                                 #end
333:                                                 ${homeStats.lastGame.opponent.name}
334:                                             </span>
335:                                         </td>
336:                                     </tr>
337:                                     </tbody>
338:                                 </table>
339:                             </div>
340:                             <br />
341:                         </div>
342:                     </div>
343:                     <div class="grid-row">
344:                         <div class="grid-col team-compare">
345:                             <h2>Team Comparison</h2>
346:                             <div class="charts-line">
347:                                 <div class="charts-inner">
348:                                     #foreach ($statsKey in $teamStats)
349:                                         #if ($visitorStats.teamStats[$statsKey] && $homeStats.teamStats[$statsKey])
350:                                             <div class="chart-container">
351:                                                 <h3>${teamStatsLabels[$statsKey]}</h3>
352:                                                 <div class="stats-chart ts-${statsKey}"></div>
353:                                                 <div class="stats-values">
354:                                                     <div class="stats-value visitor">${formatter.formatNumber($visitorStats.teamStats[$statsKey], $formats.get($statsKey))}</div>
355:                                                     <div class="stats-value home">${formatter.formatNumber($homeStats.teamStats[$statsKey], $formats.get($statsKey))}</div>
356:                                                 </div>
357:                                             </div>
358:                                         #end
359:                                     #end
360:                                 </div>
361:                             </div>
362: 
363:                             <div class="legend grid-col clearfix">
364:                                 <div class="stats-value visitor">$document.getRootElement().valueOf("team[@vh='V']/@name") (based on ${visitorStats.gamesPlayed} games)</div>
365:                                 <div class="stats-value home">$document.getRootElement().valueOf("team[@vh='H']/@name") (based on ${homeStats.gamesPlayed} games)</div>
366:                             </div>
367:                         </div>
368:                     </div>
369:                     <div class="grid-row">
370:                         <div class="grid-col grid-col1 game-leaders grid-col">
371:                             <h2>Key Contributors</h2>
372:                             #set ($homeNames = $homeStats.topStatsTotalMinutesPerPlayer.keySet().toArray())
373:                             #set ($visitorNames = $visitorStats.topStatsTotalMinutesPerPlayer.keySet().toArray())
374:                             #foreach ($topVisitorPlayer in $visitorStats.topStatsTotalMinutesPerPlayer)
375:                                 <div class="grid-col top${foreach.count}">
376:                                     <div class="grid-col clearfix names">
377:                                         <div class="visitor-name">
378:                                             <h3>${visitorNames[$foreach.index]}</h3>
379:                                         </div>
380:                                         <div class="home-name">
381:                                             <h3>${homeNames[$foreach.index]}</h3>
382:                                         </div>
383:                                     </div>
384:                                     <div class="grid-col charts">
385:                                         <div class="grid-col chart">
386:                                             <div class="stats-chart visitor points"></div>
387:                                             <div class="label">
388:                                                 <span class="color-black">${formatter.formatNumber(${topVisitorPlayer[$topStats[0]]}, $formats.get($topStats[0]))}</span>
389:                                                 <span class="title">Points</span>
390:                                                 <span class="color-gray">${formatter.formatNumber(${homeStats.topStatsTotalMinutesPerPlayer.get(${homeNames[$foreach.index]})[$topStats[0]]}, $formats.get($topStats[0]))}</span>
391:                                             </div>
392:                                             <div class="stats-chart home points"></div>
393:                                         </div>
394:                                         <div class="grid-col chart">
395:                                             <div class="stats-chart visitor rebounds"></div>
396:                                             <div class="label">
397:                                                 <span class="color-black">${formatter.formatNumber(${topVisitorPlayer[$topStats[1]]}, $formats.get($topStats[1]))}</span>
398:                                                 <span class="title">Rebounds</span>
399:                                                 <span class="color-gray">${formatter.formatNumber(${homeStats.topStatsTotalMinutesPerPlayer.get(${homeNames[$foreach.index]})[$topStats[1]]}, $formats.get($topStats[1]))}</span>
400:                                             </div>
401:                                             <div class="stats-chart home rebounds"></div>
402:                                         </div>
403:                                         <div class="grid-col chart">
404:                                             <div class="stats-chart visitor assists"></div>
405:                                             <div class="label">
406:                                                 <span class="color-black">${formatter.formatNumber(${topVisitorPlayer[$topStats[2]]}, $formats.get($topStats[2]))}</span>
407:                                                 <span class="title">Assists</span>
408:                                                 <span class="color-gray">${formatter.formatNumber(${homeStats.topStatsTotalMinutesPerPlayer.get(${homeNames[$foreach.index]})[$topStats[2]]}, $formats.get($topStats[2]))}</span>
409:                                             </div>
410:                                             <div class="stats-chart home assists"></div>
411:                                         </div>
412:                                     </div>
413:                                 </div>
414:                             #end
415:                             <div class="legend grid-col clearfix">
416:                                 <div class="stats-value visitor">$document.getRootElement().valueOf("team[@vh='V']/@name") (based on ${visitorStats.gamesPlayed} games)</div>
417:                                 <div class="stats-value home">$document.getRootElement().valueOf("team[@vh='H']/@name") (based on ${homeStats.gamesPlayed} games)</div>
418:                             </div>
419:                         </div>
420:                     </div>
421:                     <div class="grid-row">
422:                         <div class="grid-col grid-col1 recent-games-chart">
423:                             <h2>Recent Scoring</h2>
424:                             <div class="recent-games"></div>
425:                             <br /><br />
426:                         </div>
427:                     </div>
428:                     <div class="grid-row">
429:                         <div class="grid-col grid-col-is grid-col1">
430:                             <h2>Rosters</h2>
431:                             <div class="clearfix">
432:                                 <br />
433:                                 <div class="pt-team-stats clearfix">
434:                                     <div id="visitorTeamIndividualStats" class="active clearfix pt-stats-team pt-team-col">
435:                                         <div class="pt-team clearfix">
436:                                             <img src="$stats.visitorTeamLogo" alt="" class="team-logo visitor-team-logo" />
437:                                             <h3 class="team-name visitor-team-name active">$document.getRootElement().valueOf("team[@vh='V']/@name")</h3>
438:                                         </div>
439: 
440:                                         <div class="pt-stats-tabs clearfix">
441:                                             <div class="pt-panes clearfix">
442:                                                 <div id="vOffenseTab" class="pt-pane pt-pane1 clearfix">
443:                                                     <div class="pt-row">
444:                                                         <table>
445:                                                             <thead>
446:                                                                 <tr>
447:                                                                     <th>#</th>
448:                                                                     <th style="text-align: left">Name</th>
449:                                                                     <th>Yr</th>
450:                                                                     <th>Pos</th>
451:                                                                 </tr>
452:                                                             </thead>
453:                                                             <tbody>
454:                                                             #foreach ($player in $visitorStats.players)
455:                                                                 <tr>
456:                                                                     <td>$player.uniform</td>
457:                                                                     <td style="text-align: left">$player.firstName $player.lastName</td>
458:                                                                     <td>$player.year</td>
459:                                                                     <td>#if($player.positionAbbreviation)$!player.positionAbbreviation#else $!player.position#end</td>
460:                                                                 </tr>
461:                                                             #end
462:                                                             </tbody>
463:                                                         </table>
464:                                                     </div>
465:                                                 </div>
466:                                             </div>
467:                                         </div>
468:                                     </div>
469: 
470:                                     <div id="homeTeamIndividualStats" class="clearfix pt-stats-team pt-team-col asd">
471:                                         <div class="pt-team clearfix">
472:                                             <img src="$stats.homeTeamLogo" alt="" class="team-logo home-team-logo" />
473:                                             <h3 class="team-name home-team-name">$document.getRootElement().valueOf("team[@vh='H']/@name")</h3>
474:                                         </div>
475: 
476:                                         <div class="pt-stats-tabs clearfix">
477:                                             <div class="pt-panes clearfix">
478:                                                 <div class="pt-pane clearfix">
479:                                                     <div class="pt-row">
480:                                                         <table>
481:                                                             <thead>
482:                                                             <tr>
483:                                                                 <th>#</th>
484:                                                                 <th style="text-align: left">Name</th>
485:                                                                 <th>Yr</th>
486:                                                                 <th>Pos</th>
487:                                                             </tr>
488:                                                             </thead>
489:                                                             <tbody>
490:                                                             #foreach ($player in $homeStats.players)
491:                                                                 <tr>
492:                                                                     <td>$player.uniform</td>
493:                                                                     <td style="text-align: left">$player.firstName $player.lastName</td>
494:                                                                     <td>$player.year</td>
495:                                                                     <td>#if($player.positionAbbreviation)$!player.positionAbbreviation#else $!player.position#end</td>
496:                                                                 </tr>
497:                                                             #end
498:                                                             </tbody>
499:                                                         </table>
500:                                                     </div>
501:                                                 </div>
502:                                             </div>
503:                                         </div>
504:                                     </div>
505:                                 </div>
506:                             </div>
507:                         </div>
508:                     </div>
509: 
510:                     <div class="pt-game-info grid-row clearfix">
511:                         <div class="pt-tabs-panes clearfix">
512:                             <div id="stats-tabs" class="pt-tabs-pane clearfix">
513:                                 <div id="divGameInformation" class="grid-row">
514:                                     <div class="grid-col grid-col-gi grid-col1">
515:                                         <h2 class="grid-title">
516:                                             Game Information
517:                                         </h2>
518:                                         <div class="grid-content clearfix">
519:                                             <div class="pt-game-information clearfix">
520:                                                 <div class="pt-row clearfix">
521:                                                     <center>
522:                                                         <div class="game-location pt-col">
523:                                                             <span class="date">
524:                                                                 $localDate<br />
525:                                                                 #if ($tba)
526:                                                                     TBA
527:                                                                 #else
528:                                                                     $localTime
529:                                                                 #end
530:                                                             </span>
531:                                                             <h3>Date & Time</h3>
532:                                                         </div>
533:                                                         #if ($location != '')
534:                                                             <div class="game-venue pt-col">
535:                                                             <span class="venue">
536:                                                                 $location<br />
537:                                                                 (Neutral)
538:                                                             </span>
539:                                                                 <h3>Location</h3>
540:                                                             </div>
541:                                                         #end
542:                                                     </center>
543:                                                 </div>
544:                                             </div>
545:                                         </div>
546:                                     </div>
547:                                 </div>
548:                             </div>
549:                         </div>
550:                     </div>
551:                 </div>
552: 
553:                 <div id="primetime-footer" class="grid-row">
554:                     <div class="grid-col grid-col-ftr">
555:                         <a href="/"><img src="/info/primetime3/images/presto-logo.png" alt="prestosports website" /></a>
556:                     </div>
557:                 </div>
558:             </div>
559:             <script type="text/javascript">
560:                 $(document).ready(function() {
561:                     // Radialize the colors
562:                     Highcharts.setOptions({
563:                         colors: [conf.homeTeamColor, conf.visitorTeamColor]
564:                     });
565: 
566:                     $.fn.buildRecentGamesChart(conf.visitor, ${visitorStats.recentScoresJson}, conf.home, ${homeStats.recentScoresJson});
567: 
568:                     #foreach ($stats in $visitorStats.teamStats.entrySet())
569:                         #if ($stats.value && $homeStats.teamStats[$stats.key])
570:                             $.fn.buildDonutChart('.stats-chart.ts-${stats.key}', ${stats.value}, ${homeStats.teamStats[$stats.key]});
571:                         #end
572:                     #end
573: 
574:                     #foreach ($topPlayer in $visitorStats.topStatsTotalMinutesPerPlayer)
575:                         $.fn.buildVisitorBarChart('.top${foreach.count} .visitor.points', ${topPlayer[$topStats[0]]}, 30.0, conf.visitorTeamLighterColor);
576:                         $.fn.buildVisitorBarChart('.top${foreach.count} .visitor.rebounds', ${topPlayer[$topStats[1]]}, 30.0, conf.visitorTeamLighterColor);
577:                         $.fn.buildVisitorBarChart('.top${foreach.count} .visitor.assists', ${topPlayer[$topStats[2]]}, 30.0, conf.visitorTeamLighterColor);
578: 
579:                         $.fn.buildHomeBarChart('.top${foreach.count} .home.points', ${homeStats.topStatsTotalMinutesPerPlayer.get(${homeNames[$foreach.index]})[$topStats[0]]}, 30.0, conf.homeTeamLighterColor);
580:                         $.fn.buildHomeBarChart('.top${foreach.count} .home.rebounds', ${homeStats.topStatsTotalMinutesPerPlayer.get(${homeNames[$foreach.index]})[$topStats[1]]}, 30.0, conf.homeTeamLighterColor);
581:                         $.fn.buildHomeBarChart('.top${foreach.count} .home.assists', ${homeStats.topStatsTotalMinutesPerPlayer.get(${homeNames[$foreach.index]})[$topStats[2]]}, 30.0, conf.homeTeamLighterColor);
582:                     #end
583: 
584:                     $('.stats-value.visitor').css("background-color", conf.visitorTeamColor);
585:                     $('.stats-value.visitor.light').css("background-color", conf.visitorTeamLighterColor);
586:                     $('.stats-value.home').css("background-color", conf.homeTeamColor);
587:                     $('.stats-value.home.light').css("background-color", conf.homeTeamLighterColor);
588:                 });
589:             </script>
590:         ## GENERAL INFORMATION
591:         </div>
592:     #else
593:         <div id="primetime-wrapper" class="primetime-basketball primetime-wrapper clearfix">
594: 
595:             <div class="primetime-overflow clearfix">
596:                 ## HEADER
597:                 <div id="primetime-header" class="grid-row">
598:                     <div class="grid-col grid-col-hdr">
599: 
600:                         <div class="primetime-screen-controls clearfix">
601:                             <a href="#" class="full-screen-button pt-icon-resize-full"><span class="text">Switch</span></a>
602:                             <a href="#" class="normal-screen-button pt-icon-resize-small"><span class="text">Switch</span></a>
603:                             <a href="#" class="expand-button pt-icon-link-ext"><span class="text">Switch</span></a>
604:                         </div>
605: 
606:                         <div class="pt-header clearfix">
607: 
608:                             <div class="pt-team pt-team-away visitor-team-color"><img src="$stats.visitorTeamLogo" alt="" class="team-logo visitor-team-logo" /><span
609:                                     class="team-record visitor-team-record"></span>
610:                                 <h3 class="team-name visitor-team-name"></h3>
611:                             </div>
612: 
613:                             <div class="pt-team pt-team-home home-team-color">
614:                                 <span class="team-record home-team-record"></span>
615:                                 <img src="$stats.homeTeamLogo" alt="" class="team-logo home-team-logo" />
616:                                 <h3 class="team-name home-team-name"></h3>
617:                             </div>
618: 
619:                             <div class="pt-match-scoreboard clearfix">
620:                                 <p class="team-score visitor-team-score"></p>
621:                                 <p class="team-score home-team-score"></p>
622: 
623:                                 <div class="pt-mtach-info">
624:                                     <span class="time scoreboard-time"></span><br />
625:                                         <span class="period scoreboard-period" style="width: 100%"></span>
626:                                 </div>
627: 
628:                                 <div class="pt-team-fouls">
629:                                     <span class="visitor-team-fouls"></span>
630:                                     <span>TEAM FOULS</span>
631:                                     <span class="home-team-fouls"></span>
632:                                     <div class="pt-timeout clearfix" style="display: none">
633:                                         <div class="timeout-qtr visitor-timeout-qtr">
634:                                             <h3 class="timeout-label">Timeout</h3>
635: 
636:                                         </div>
637:                                         <div class="timeout-qtr home-timeout-qtr">
638:                                             <h3 class="timeout-label">Timeout</h3>
639: 
640:                                         </div>
641:                                     </div>
642:                                 </div>
643: 
644:                             </div>
645: 
646:                             <div id="pt-page-nav" class="pt-page-nav">
647:                                 <a href="#" class="pt-menu">Menu</a>
648:                                 <ul class="clearfix">
649:                                     <li><a href="#live-action-title" data-stroke="1" data-id="#live-action-title">Live Action</a></li>
650:                                     <li><a href="#line-score-title" data-stroke="2" data-id="#line-score-title">Line Score</a></li>
651:                                     <li><a href="#team-comparison-title" data-stroke="3" data-id="#team-comparison-title" data-tab-id="#stats-tabs">Team Comparison</a></li>
652:                                     <li><a href="#individual-stats-title" data-stroke="4" data-id="#individual-stats-title" data-tab-id="#stats-tabs">Individual Stats</a></li>
653:                                     <li><a href="#game-info-title" data-stroke="5" data-id="#game-info-title" data-tab-id="#stats-tabs">Game Information</a></li>
654:                                     <li><a href="#play-by-play-title" data-stroke="6" data-id="#play-by-play-title" data-tab-id="#pbp-tabs">Play by Play</a></li>
655:                                 </ul>
656:                             </div>
657: 
658:                         </div>
659: 
660:                     </div>
661:                 </div>
662:                 ## PRIMETIME HEADER
663: 
664:                 ## GRID ROW CONTAINER
665:                 <div class="grid-row-container clearfix">
666:                 ## GRID ROW
667:                     #set ($gridRowClass = "grid-row no-video")
668:                     #if ($hasVideo)
669:                         #set ($gridRowClass = "grid-row")
670:                     #end
671: 
672:                     <div id="firstPanelRow" class="$gridRowClass">
673: 
674:                         #set ($gridCounter = 0)
675: 
676:                         #set ($gridCounter = $gridCounter + 1)
677:                         <div class="grid-col grid-col-v grid-video grid-col${gridCounter}">
678:                             <h3 id="live-action-title" class="grid-title">Broadcast<span class="close">x</span></h3>
679:                             <div class="grid-content clearfix">
680:                                 <div class='embed-container'>
681: 
682:                                 </div>
683:                             </div>
684:                         ## GRID CONTENT
685:                         </div>
686:                         ## VIDEO COL
687: 
688:                         #set ($gridCounter = $gridCounter + 1)
689:                         <div id="pt-live-action-container" class="grid-col grid-col-v grid-liveaction grid-col${gridCounter}">
690:                             <h3 id="live-action-title" class="grid-title">
691:                                 Live Action<span class="close">x</span>
692:                             </h3>
693:                             <div class="grid-content clearfix">
694:                                 <div class="clearfix">
695:                                     <div class="container clearfix pt-live-action">
696:                                         <table>
697:                                             <thead>
698:                                             <tr>
699:                                                 <th>Time</th>
700:                                                 <th>Team</th>
701:                                                 <th></th>
702:                                                 <th>Play</th>
703:                                             </tr>
704:                                             </thead>
705:                                             <tbody>
706:                                             </tbody>
707:                                         </table>
708:                                     </div>
709:                                 </div>
710:                             </div>
711:                         </div>
712: 
713:                         #set ($gridCounter = $gridCounter + 1)
714:                         <div class="grid-col grid-col-cd grid-col${gridCounter}">
715:                             <h3 id="on-court-title" class="grid-title">ON COURT<span class="close">x</span></h3>
716:                             <div class="grid-content clearfix pt-on-court">
717:                                 <div class="team">
718:                                     <table class="visitor-players">
719:                                         <thead>
720:                                             <tr>
721:                                                 <th class="visitor-team-color">
722:                                                     <img src="" alt="" class="team-logo visitor-team-logo" />
723:                                                 </th>
724:                                             </tr>
725:                                         </thead>
726:                                         <tbody>
727: 
728:                                         </tbody>
729:                                     </table>
730:                                 </div>
731:                                 <div class="team">
732:                                     <table class="home-players">
733:                                         <thead>
734:                                         <tr>
735:                                             <th class="home-team-color">
736:                                                 <img src="" alt="" class="team-logo home-team-logo" />
737:                                             </th>
738:                                         </tr>
739:                                         </thead>
740:                                         <tbody>
741: 
742:                                         </tbody>
743:                                     </table>
744:                                 </div>
745:                                 <br /><br />
746:                                 <div class="on-court-stats" style="display: none;">
747:                                     <table>
748:                                         <tbody></tbody>
749:                                     </table>
750:                                 </div>
751:                             </div>
752:                         ## GRID CONTENT
753:                         </div>
754:                     </div>
755: 
756:                     <div class="grid-row">
757:                         #set ($gridCounter = $gridCounter + 1)
758:                         <div class="grid-col grid-col${gridCounter}">
759:                             <h3 id="line-score-title" class="grid-title">
760:                                 Line Score<span class="close">x</span>
761:                             </h3>
762:                             <div class="grid-content clearfix">
763:                                 <div class="pt-line-score clearfix">
764:                                     <table id="scoreByPeriod">
765:                                         <thead>
766:                                         <tr>
767:                                             <th>&nbsp;</th>
768:                                         </tr>
769:                                         </thead>
770:                                         <tbody>
771:                                         <tr class="visitor">
772:                                             <td><img src="" alt=""
773:                                                      class="team-logo visitor-team-logo" />
774:                                                 <span class="team-name visitor-team-name"></span></td>
775:                                         </tr>
776:                                         <tr class="home">
777:                                             <td><img src="" alt=""
778:                                                      class="team-logo home-team-logo" />
779:                                                 <span class="team-name home-team-name"></span></td>
780:                                         </tr>
781:                                         </tbody>
782:                                     </table>
783: 
784:                                 </div>
785:                             </div>
786:                         ## GRID CONTENT
787:                         </div>
788:                     ## LINE SCORE
789:                     </div>
790: 
791:                     ## GRID ROW ## TABS
792:                     <div class="pt-game-info clearfix">
793: 
794:                         <ul class="pt-tabs clearfix">
795:                             <li class="current"><a href="#stats-tabs">Statistics</a></li>
796:                             <li><a href="#pbp-tabs">Play By Play</a></li>
797:                         </ul>
798: 
799:                         <div class="pt-tabs-panes clearfix">
800:                             <div id="stats-tabs" class="pt-tabs-pane clearfix">
801:                                 ## GRID ROW ##GRID ROW
802:                                 <div class="grid-row">
803:                                     #set ($gridCounter = $gridCounter + 1)
804:                                     <div class="grid-col grid-col-tc grid-col${gridCounter}">
805:                                         <h3 id="team-comparison-title" class="grid-title">
806:                                             Team Comparison<span class="close">x</span>
807:                                         </h3>
808:                                         <div class="grid-content clearfix">
809:                                             <div class="pt-team-compare clearfix">
810:                                                 <table id="teamCompare">
811:                                                     <thead>
812:                                                     <tr>
813:                                                         <th><img src="" alt="" class="team-logo visitor-team-logo" /><br />
814:                                                             <span class="team-name visitor-team-name"></span></th>
815:                                                         <th> <span></span></th>
816:                                                         <th><img src="" alt="" class="team-logo home-team-logo" /><br />
817:                                                             <span class="team-name home-team-name"></span></th>
818:                                                     </tr>
819:                                                     </thead>
820: 
821:                                                     <tbody>
822:                                                     <tr class="stats-points">
823:                                                         <td></td>
824:                                                         <td class="stats-cat">Points</td>
825:                                                         <td></td>
826:                                                     </tr>
827: 
828:                                                     <tr class="stats-fg">
829:                                                         <td></td>
830:                                                         <td class="stats-cat">Field Goals (%)</td>
831:                                                         <td></td>
832:                                                     </tr>
833: 
834:                                                     <tr class="stats-3ptrs">
835:                                                         <td></td>
836:                                                         <td class="stats-cat">3-point FGS (%)</td>
837:                                                         <td></td>
838:                                                     </tr>
839: 
840:                                                     <tr class="stats-ft">
841:                                                         <td></td>
842:                                                         <td class="stats-cat">Free Throws (%)</td>
843:                                                         <td></td>
844:                                                     </tr>
845: 
846:                                                     <tr class="stats-turnovers">
847:                                                         <td></td>
848:                                                         <td class="stats-cat">Turnovers</td>
849:                                                         <td></td>
850:                                                     </tr>
851: 
852:                                                     <tr class="stats-ptsoffto">
853:                                                         <td></td>
854:                                                         <td class="stats-cat">Pts off TO</td>
855:                                                         <td></td>
856:                                                     </tr>
857: 
858:                                                     <tr class="stats-totalreb">
859:                                                         <td></td>
860:                                                         <td class="stats-cat">Total Reb</td>
861:                                                         <td></td>
862:                                                     </tr>
863: 
864:                                                     <tr class="stats-offreb">
865:                                                         <td></td>
866:                                                         <td class="stats-cat">Off. Reb</td>
867:                                                         <td></td>
868:                                                     </tr>
869: 
870:                                                     <tr class="stats-defreb">
871:                                                         <td></td>
872:                                                         <td class="stats-cat">Def. Reb</td>
873:                                                         <td></td>
874:                                                     </tr>
875: 
876:                                                     <tr class="stats-assists">
877:                                                         <td></td>
878:                                                         <td class="stats-cat">Assists</td>
879:                                                         <td></td>
880:                                                     </tr>
881: 
882:                                                     <tr class="stats-blocks">
883:                                                         <td></td>
884:                                                         <td class="stats-cat">Blocks</td>
885:                                                         <td></td>
886:                                                     </tr>
887: 
888:                                                     <tr class="stats-steals">
889:                                                         <td></td>
890:                                                         <td class="stats-cat">Steals</td>
891:                                                         <td></td>
892:                                                     </tr>
893: 
894:                                                     <tr class="stats-fouls">
895:                                                         <td></td>
896:                                                         <td class="stats-cat">Fouls</td>
897:                                                         <td></td>
898:                                                     </tr>
899: 
900:                                                     <tr class="stats-pts-bench">
901:                                                         <td></td>
902:                                                         <td class="stats-cat">Bench points</td>
903:                                                         <td></td>
904:                                                     </tr>
905: 
906:                                                     <tr class="stats-pts-ch2">
907:                                                         <td></td>
908:                                                         <td class="stats-cat">Second chance points</td>
909:                                                         <td></td>
910:                                                     </tr>
911: 
912:                                                     <tr class="stats-pts-paint">
913:                                                         <td></td>
914:                                                         <td class="stats-cat">Points in the paint</td>
915:                                                         <td></td>
916:                                                     </tr>
917: 
918:                                                     <tr class="stats-pts-fastb">
919:                                                         <td></td>
920:                                                         <td class="stats-cat">Fast break points</td>
921:                                                         <td></td>
922:                                                     </tr>
923: 
924: 
925:                                                     </tbody>
926: 
927:                                                 </table>
928:                                             </div>
929:                                         </div>
930:                                     ## GRID CONTENT
931:                                     </div>
932:                                 ## TEAM COMPARE
933:                                 </div>
934:                                 ## GRID ROW ## GRID ROW
935:                                 <div class="grid-row">
936:                                     #set ($gridCounter = $gridCounter + 1)
937:                                     <div class="grid-col grid-col-is grid-col${gridCounter}">
938:                                         <h3 id="individual-stats-title" class="grid-title">
939:                                             Individual Stats<span class="close">x</span>
940:                                                                     <span>
941:                                                                         <img class="switchStats horizontal" src="/info/primetime3/images/horizontal_view.png" />
942:                                                                         &nbsp;
943:                                                                         <img class="switchStats vertical active" src="/info/primetime3/images/vertical_view.png" />
944:                                                                     </span>
945:                                         </h3>
946:                                         <div class="grid-content clearfix">
947:                                             <div class="pt-team-stats clearfix">
948: 
949:                                                 <div id="visitorTeamIndividualStats" class="active clearfix pt-stats-team">
950: 
951:                                                     <div class="pt-team clearfix">
952:                                                         <img src="" alt=""
953:                                                              class="team-logo visitor-team-logo active" />
954:                                                         <h3 class="team-name visitor-team-name"></h3>
955:                                                     </div>
956: 
957:                                                     <div class="pt-stats-tabs clearfix">
958:                                                         <div class="pt-panes clearfix">
959:                                                             <div id="vOffenseTab" class="pt-pane pt-pane1 clearfix">
960:                                                                 <div class="pt-row">
961:                                                                     <table class="playerStats display"> <!-- starters -->
962:                                                                         <thead>
963:                                                                         <tr>
964:                                                                             <th>#</th>
965:                                                                             <th>Player</th>
966:                                                                             <th class="toHide">Min</th>
967:                                                                             <th>FG</th>
968:                                                                             <th class="toHide">FG%</th>
969:                                                                             <th>3PT</th>
970:                                                                             <th class="toHide">3PT%</th>
971:                                                                             <th>FT</th>
972:                                                                             <th class="toHide">FT%</th>
973:                                                                             <th>R</th>
974:                                                                             <th class="toHide">OR</th>
975:                                                                             <th class="toHide">DR</th>
976:                                                                             <th>A</th>
977:                                                                             <th class="toHide">TO</th>
978:                                                                             <th class="toHide">Blk</th>
979:                                                                             <th class="toHide">Stl</th>
980:                                                                             <th>F</th>
981:                                                                             <th>Pts</th>
982:                                                                         </tr>
983:                                                                         </thead>
984:                                                                         <tbody>
985: 
986:                                                                         </tbody>
987:                                                                     </table>
988:                                                                 </div>
989:                                                             </div>
990:                                                         </div>
991:                                                     </div>
992:                                                 </div>
993: 
994:                                                 <div id="homeTeamIndividualStats" class="clearfix pt-stats-team">
995: 
996:                                                     <div class="pt-team clearfix">
997:                                                         <img src="" alt=""
998:                                                              class="team-logo home-team-logo active" />
999:                                                         <h3 class="team-name home-team-name"></h3>
1000:                                                     </div>
1001: 
1002:                                                     <div class="pt-stats-tabs clearfix">
1003:                                                         <div class="pt-panes clearfix">
1004:                                                             <div class="pt-pane clearfix">
1005:                                                                 <div class="pt-row">
1006:                                                                     <table class="playerStats display"> <!-- starters -->
1007:                                                                         <thead>
1008:                                                                         <tr>
1009:                                                                             <th>#</th>
1010:                                                                             <th>Player</th>
1011:                                                                             <th class="toHide">Min</th>
1012:                                                                             <th>FG</th>
1013:                                                                             <th class="toHide">FG%</th>
1014:                                                                             <th>3PT</th>
1015:                                                                             <th class="toHide">3PT%</th>
1016:                                                                             <th>FT</th>
1017:                                                                             <th class="toHide">FT%</th>
1018:                                                                             <th>R</th>
1019:                                                                             <th class="toHide">OR</th>
1020:                                                                             <th class="toHide">DR</th>
1021:                                                                             <th>A</th>
1022:                                                                             <th class="toHide">TO</th>
1023:                                                                             <th class="toHide">Blk</th>
1024:                                                                             <th class="toHide">Stl</th>
1025:                                                                             <th>F</th>
1026:                                                                             <th>Pts</th>
1027:                                                                         </tr>
1028:                                                                         </thead>
1029:                                                                         <tbody>
1030: 
1031:                                                                         </tbody>
1032:                                                                     </table>
1033:                                                                 </div>
1034: 
1035:                                                             </div>
1036:                                                         </div>
1037:                                                     </div>
1038:                                                 </div>
1039: 
1040:                                             </div>
1041:                                         </div>
1042:                                     ## GRID CONTENT
1043:                                     </div>
1044:                                 ## INDIVISUAL STATS
1045:                                 </div>
1046:                                 ## GRID ROW ## GRID ROW
1047:                                 <div class="grid-row">
1048:                                     #set ($gridCounter = $gridCounter + 1)
1049:                                     <div class="grid-col grid-col-gi grid-col${gridCounter}">
1050:                                         <h3 id="game-info-title" class="grid-title">
1051:                                             Game Information<span class="close">x</span>
1052:                                         </h3>
1053:                                         <div class="grid-content clearfix">
1054:                                             <div class="pt-game-information clearfix">
1055: 
1056:                                                 <div class="pt-row clearfix">
1057:                                                     <center>
1058:                                                         <div class="date-time pt-col">
1059:                                                             <span id="gameInformationDate" class="date"></span>
1060:                                                             <span id="gameInformationTime" class="time"></span>
1061:                                                             <h3>Date & Time</h3>
1062:                                                         </div>
1063: 
1064:                                                         <div class="game-officials pt-col">
1065:                                                             <span id="gameInformationOfficials" class="officials"></span>
1066:                                                             <h3>Officials</h3>
1067:                                                         </div>
1068: 
1069:                                                         <div class="game-location pt-col">
1070:                                                             <span id="gameInformationLocation" class="location"></span>
1071:                                                             <h3>Location</h3>
1072:                                                         </div>
1073: 
1074:                                                         <div class="game-venue pt-col">
1075:                                                             <span id="gameInformationVenue" class="venue"></span>
1076:                                                             <h3>Venue</h3>
1077:                                                         </div>
1078: 
1079:                                                         <div class="weather pt-col">
1080: 
1081:                                                             <div class="weather-condition">
1082:                                                                 <span id="gameInformationTemperature" class="temp"></span>
1083:                                                                 <span id="gameInformationCondition" class="condition"></span>
1084:                                                             </div>
1085:                                                             <h3>Weather</h3>
1086:                                                         </div>
1087:                                                     </center>
1088:                                                 </div>
1089: 
1090:                                             </div>
1091:                                         </div>
1092:                                     ## GRID CONTENT
1093:                                     </div>
1094:                                 ## GENERAL INFORMATION
1095:                                 </div>
1096:                                 ## GRID ROW
1097: 
1098:                             </div>
1099: 
1100:                             ## PLAY BY PLAY TABS
1101:                             <div id="pbp-tabs" class="pt-tabs-pane clearfix">
1102:                                 ## GRID ROW
1103:                                 <div class="grid-row">
1104:                                     #set ($gridCounter = $gridCounter + 1)
1105:                                     <div class="grid-col grid-col-ds grid-col${gridCounter}">
1106:                                         <h3 id="play-by-play-title" class="grid-title">
1107:                                             Play by Play<span class="close">x</span>
1108:                                         </h3>
1109:                                         <div class="grid-content clearfix">
1110:                                             <div id="playByPlay" class="clearfix">
1111:                                                 <select id="filterPeriod" class="dropdownFilter">
1112:                                                 </select>
1113:                                                 <select id="filterTeam" class="dropdownFilter">
1114:                                                     <option value="" selected>Both Teams</option>
1115:                                                     <option value="V" class="visitor-team-name team-name"></option>
1116:                                                     <option value="H" class="home-team-name team-name"></option>
1117:                                                 </select>
1118: ##                                                <select id="filterPlayType" class="dropdownFilter">
1119: ##                                                    <option value="" selected>ALL PLAYS</option>
1120: ##                                                    <option value="scoring">Scoring</option>
1121: ##                                                    <option value="substitutions">Substitutions</option>
1122: ##                                                </select>
1123:                                             </div>
1124:                                             <div class="pt-play-by-play clearfix">
1125:                                                 <table>
1126:                                                     <thead>
1127:                                                     <tr>
1128:                                                         <th><span class="visitor-team-name team-name" /></th>
1129:                                                         <th>Diff</th>
1130:                                                         <th>Clock</th>
1131:                                                         <th>Score</th>
1132:                                                         <th>Diff</th>
1133:                                                         <th><span class="home-team-name team-name" /></th>
1134:                                                     </tr>
1135:                                                     </thead>
1136:                                                     <tbody>
1137:                                                     </tbody>
1138:                                                 </table>
1139:                                             </div>
1140:                                         </div>
1141:                                     ## GRID CONTENT
1142:                                     </div>
1143:                                 ## DRIVE SUMMARY
1144:                                 </div>
1145:                             ## GRID ROW
1146:                             </div>
1147:                         ## PLAY BY PLAY TABS
1148:                         </div>
1149:                     ## PT TABS PANES
1150:                     </div>
1151:                 ## PRIME TIME GAME INFO
1152:                 </div>
1153:                 ## GRID ROW CONTAINER
1154: 
1155:                 ## FOOTER
1156:                 <div id="primetime-footer" class="grid-row">
1157:                     <div class="grid-col grid-col-ftr">
1158:                         <a href="/"><img src="/info/primetime3/images/presto-logo.png" alt="prestosports website" /></a>
1159:                     </div>
1160:                 </div>
1161: 
1162:                 </div>
1163:         ## PRIMTE TIME OVERFLOW
1164:         </div>
1165:         ## PRIME TIME WRAPPER
1166: 	#end
1167: 
1168:     #set ($showWiki = true)
1169:     #set ($showWiki = $showWikiVar)
1170:     #if ($showWiki == true)
1171:         $wiki.su
1172:     #end
1173:     ## END OF PRIMETIME
1174: #else
1175: ## BASKETBALL BOX SCORE
1176: 
1177: #set ($home = $document.selectSingleNode("bbgame/team[@vh='H']"))
1178: #set ($visitor = $document.selectSingleNode("bbgame/team[@vh='V']"))
1179: #set ($inProgressClock = $document.valueOf("bbgame/status/@clock"))
1180: #set ($inProgressPrd = $document.valueOf("bbgame/status/@period"))
1181: 
1182: #set ($periodRule = $document.numberValueOf("bbgame/venue/rules/@prds"))
1183: #set ($periodRule = $tool.math.toInteger($periodRule))
1184: #set ($qh = $document.valueOf("bbgame/venue/rules/@qh"))
1185: 
1186: #set($periodGroups = $periodRule)
1187: 
1188: #if ($document.valueOf("bbgame/@source") == 'STAT CREW Basketball')
1189:     ## Statcrew boxscores group periods in halves even if it is a quarter game.
1190:     #set($periodGroups = 2)
1191:     #set ($isStatcrewStats = true)
1192: #else
1193:     #set ($isStatcrewStats = false)
1194: #end
1195: 
1196: #set ($linkPlayers = $stats.linkPlayers)
1197: #set ($linkPlayersBase = $stats.linkPlayersBase)
1198: #set ($linkTeams = $stats.linkTeams)
1199: #set ($linkTeamsBase = $stats.linkTeamsBase)
1200: 
1201: #if ($document.valueOf("bbgame/@source") == "DakStats Basketball")
1202:     #set ($isDakStats = true)
1203: #else
1204:     #set ($isDakStats = false)
1205: #end
1206: 
1207: #set ($periods = $tool.math.toInteger($home.selectNodes("linescore/lineprd").size()))
1208: #set ($periodRange = [1..$periods])
1209: 
1210: #set ($homeTeam = $home.valueOf("@name"))
1211: #set ($homeScore = $tool.math.toInteger($home.valueOf("linescore/@score")))
1212: #set ($homename = $document.valueOf("bbgame/venue/@homename"))
1213: #set ($visitorTeam = $visitor.valueOf("@name"))
1214: #set ($visScore = $tool.math.toInteger($visitor.valueOf("linescore/@score")))
1215: #set ($visname = $document.valueOf("bbgame/venue/@visname"))
1216: #set ($homeTotals = $home.selectSingleNode("totals"))
1217: #set ($visitorTotals = $visitor.selectSingleNode("totals"))
1218: 
1219: #set ($hasPeriods = $document.selectNodes("bbgame/plays/period").size() > 0)
1220: #set ($hasTotals = $homeTotals.selectNodes("*").size() > 0)
1221: #set ($hasStatsByPeriod = $document.selectNodes("//statsbyprd").size() > 0)
1222: #set ($isNeutralGame = $document.valueOf("bbgame/venue/@neutralgame"))
1223: #if ($isNeutralGame.length() > 0 && $isNeutralGame.equals("Y"))
1224:     #set ($isNeutralGame = true)
1225: #else
1226:     #set ($isNeutralGame = false)
1227: #end
1228: #set ($location = $document.valueOf("bbgame/venue/@location"))
1229: #set ($dateVal = $document.valueOf("bbgame/venue/@date"))
1230: #set ($date = $tool.date.toDate("MM/dd/yyyy", $dateVal))
1231: #set ($time = $document.valueOf("bbgame/venue/@time"))
1232: #if ($time.length() == 0)
1233: 	#set ($time = $document.valueOf("bbgame/venue/@start"))
1234: #end
1235: 
1236: #if ($stats.pageUrl.length() > 0 && !$stats.pageUrl.contains("?"))
1237:     #set ($paramSep = "?")
1238: #else
1239:     #set ($paramSep = "&")
1240: #end
1241: 
1242: #set ($showWiki = true)
1243: #set ($showWiki = $showWikiVar)
1244: 
1245: ## MACROS
1246: #macro (printPdfHeader $title)
1247: <div class="stats-fullbox">
1248:     <table>
1249:         <tr>
1250:             <td class="align-center"><h4>$title</h4></td>
1251:         </tr>
1252:     </table>
1253: </div>
1254: #end
1255: 
1256: ## SHOOTING STATS
1257: #macro (shooting $attempts $made)
1258:     #if ($attempts.length() > 0)
1259:         ${attempts}-${made}
1260:     #end
1261: #end
1262: 
1263: ## SHOOTING PERCENTAGE
1264: #macro (shotpercent $attempts $totalShots)
1265:     #if (($attempts.length() > 0 && $totalShots.length() > 0) && ($tool.number.toNumber($attempts) > 0 && $tool.number.toNumber($totalShots) > 0))
1266:         #set ($percent = $tool.math.div($attempts, $totalShots))
1267:         #set ($percent = $tool.math.mul($percent, 100))
1268:         $formatter.formatNumber($percent, 1)%
1269:     #else
1270:     0%
1271:     #end
1272: #end
1273: 
1274: ## PRINT PLAYER NAMES PER STAT - USED FOR TECHNICAL FOULS
1275: #macro (printPlayerStat $team $path $att)
1276:     #set ($printVal = "")
1277:     #foreach ($playerSubnode in $team.selectNodes($path))
1278:         #set ($attributeVal = $playerSubnode.valueOf($att))
1279:         #set ($playerName = $playerSubnode.valueOf("../@name"))
1280:         #if ($attributeVal.length() > 0 && $tool.math.toInteger($attributeVal) > 0)
1281:             #if ($tool.math.toInteger($attributeVal) > 1)
1282:                 #set ($singlePrintVal = "${playerName} ${attributeVal}")
1283:             #else
1284:                 #set ($singlePrintVal = "${playerName}")
1285:             #end
1286:             #if ($printVal.length() > 0) #set ($printVal = "${printVal}; ") #end
1287:             #set ($printVal = "${printVal} ${singlePrintVal}")
1288:         #end
1289:     #end
1290:     #if ($printVal.length() > 0)
1291:     ($printVal)
1292:     #end
1293: #end
1294: 
1295: ## POINTS
1296: #macro (totalpoints $fgm $fgm3 $ftm)
1297:     #if ($fgm.length() > 0)
1298:         $tool.math.add($tool.math.mul($fgm, 2), $tool.math.add($fgm3, $ftm))
1299:     #end
1300: #end
1301: 
1302: ## PERIOD NAME
1303: ## period: The period number.
1304: ## showPeriodLabel: Indicates if "half" or "quarter" should be added next to the period number.
1305: ## abbreviated: If the periodLabel should be in a short form
1306: ## periodGrouping: Indicates how periods are grouped to show the correspoinding name. Periods can be grouped into halves(2) or quarters(4) and is a numeric value
1307: #macro (printPeriodName $period $showPeriodLabel $abbreviated $periodGrouping)
1308:     #if ($period == "ot")
1309:         #set ($prdText = "OT")
1310:     #else
1311:         #if ($tool.math.toInteger($period) <= $periodGrouping)
1312:             #if ($period == 1)
1313:                 #set ($prdText = "1st")
1314:             #elseif ($period == 2)
1315:                 #set ($prdText = "2nd")
1316:             #elseif ($period == 3)
1317:                 #set ($prdText = "3rd")
1318:             #elseif ($period == 4)
1319:                 #set ($prdText = "4th")
1320:             #end
1321:             #if ($showPeriodLabel)
1322:                 #if ($periodGrouping > 2)
1323:                     #if($abbreviated)
1324:                         #set ($prdText = "${prdText} Qtr")
1325:                     #else
1326:                         #set ($prdText = "${prdText} Quarter")
1327:                     #end
1328:                 #else
1329:                     #set ($prdText = "${prdText} Half")
1330:                 #end
1331:             #end
1332:         #else
1333:             #set ($overtimePeriod = $tool.math.sub($period, $periodGrouping))
1334:             #if ($overtimePeriod > 1)
1335:                 #set ($prdText = "${overtimePeriod}OT")
1336:             #else
1337:                 #set ($prdText = "OT")
1338:             #end
1339:         #end
1340:     #end
1341:     $prdText
1342: #end
1343: 
1344: #macro (showTeam $team)
1345:     #if ($team.attributeValue("link").length() > 0 &&  $linkTeams && $stats.view != "pdf")
1346:         <a href="$!linkTeamsBase?id=${team.attributeValue('teamId')}">$team.attributeValue("name")</a>
1347:     #else
1348:     	$team.attributeValue("name")
1349:     #end
1350: #end
1351: 
1352: ## PRINT BOXSCORE FOR A PERIOD
1353: ## period: The period number.
1354: #macro (printPeriodBoxScore $period)
1355:     #if ($stats.view == "pdf")
1356:         <p class="pagebreak">&nbsp;</p>
1357:         #set ($title = "#printPeriodName($period, true, true, $periodGroups) Box")
1358:         #printPdfHeader($title)
1359:         <div class="stats-fullbox">#printBoxScore($visitor $period)</div>
1360:         <div class="stats-fullbox">#printBoxScore($home $period)</div>
1361:     #else
1362:         #set ($class = "tab-panel clearfix")
1363:         #if ($stats.view == "period${period}")
1364:             #set ($class = "tab-panel active clearfix")
1365:         #end
1366:         <section class="${class}">
1367:             <h1 class="offscreen">Period${period} Box Score</h1>
1368:             <div class="player-stats" data-module="mod-team-tabs">
1369:         	    <div class="tab-labels">
1370:             		#printTabControl($visitor.valueOf("@name"), "team-label-period${period}-v")
1371:             		#printTabControl($home.valueOf("@name"), "team-label-period${period}-h")
1372:         		</div>
1373:                 #printBoxScore($visitor $period)
1374:                 #printBoxScore($home $period)
1375:             </div>
1376:         </section>
1377:     #end
1378: #end
1379: 
1380: ## PRINT BOXSCORE FOR ALL PERIODS
1381: #macro (printAllPeriodsBoxScore)
1382:     #foreach ($period in [1..$periodGroups])
1383:         #printPeriodBoxScore($period)
1384:     #end
1385:     ## For overtimes
1386:     #if ($periods > $periodRule)
1387:         #if ($isStatcrewStats)
1388:             ## Statcrew boxscores group summarize overtime periods stats into a unique node
1389:             #printPeriodBoxScore("ot")
1390:         #else
1391:             #set ($firstOTPeriod = $periodRule + 1)
1392:             #foreach ($period in [$firstOTPeriod..$periods])
1393:                 #printPeriodBoxScore($period)
1394:             #end
1395:         #end
1396:     #end
1397: #end
1398: 
1399: ## PRINT TAB FOR BOXSCORE FOR A PERIODS
1400: #macro (printBoxScoreTab $p)
1401:     #if ($home.selectNodes("player/statsbyprd[@prd='${p}']").size() > 0)
1402:         <li #if ($stats.view == "period${p}")class="active"#end><a href="${stats.pageUrl}${paramSep}view=period${p}" data-view="period${p}">#printPeriodName($p, true, true, $periodGroups)</a></li>
1403:     #end
1404: #end
1405: 
1406: ## PRINT TAB FOR BOXSCORE FOR ALL PERIODS
1407: #macro (printBoxScoreAllTabs)
1408:     #foreach ($period in [1..$periodGroups])
1409:         #printBoxScoreTab($period)
1410:     #end
1411:     ## For overtimes
1412:     #if ($periods > $periodRule)
1413:         #if ($isStatcrewStats)
1414:             ## Statcrew boxscores group summarize overtime periods stats into a unique node
1415:             #printBoxScoreTab("ot")
1416:         #else
1417:             #set ($firstOTPeriod = $periodRule + 1)
1418:             #foreach ($period in [$firstOTPeriod..$periods])
1419:                 #printBoxScoreTab($period)
1420:             #end
1421:         #end
1422:     #end
1423: #end
1424: 
1425: ## PRINT PLAYER
1426: #macro (printPlayerNodes $playerNodes $period)
1427:     #foreach ($player in $playerNodes)
1428:         #if ($period > 0)
1429:             #set ($statNode = $player.selectSingleNode("statsbyprd[@prd='${period}']"))
1430:         #else
1431:             #set ($statNode = $player.selectSingleNode("stats"))
1432:         #end
1433:         #set ($position = "")
1434:         #set ($pos = $player.valueOf("@pos").trim())
1435:         #if ($pos.length() > 0 && ($pos.equalsIgnoreCase("F") || $pos.equalsIgnoreCase("G") || $pos.equalsIgnoreCase("C")))
1436:             #set ($position = $pos)
1437:         #end
1438:         <tr>
1439:             <th scope="row" class="row-head pinned-col text">
1440: 				#if ($player.valueOf("@uni").length() > 0)
1441: 					<span class="uniform">$player.valueOf("@uni") - </span>
1442: 				#end
1443: 				#if ($player.valueOf("@playerId").length() > 0 && $linkPlayers && $player.valueOf("../@link").length() > 0)
1444: 					<a href="../players?id=${player.valueOf("@playerId")}" class="player-name">$player.valueOf("@name")</a>
1445: 				#else
1446: 					<span class="player-name">$player.valueOf("@name")</span>
1447:                 #end
1448: 				#if ($position.length() > 0)<span class="position" style="text-transform:lowercase"> - $position</span>#end
1449:             </th>
1450:             <td>$statNode.valueOf("@min")</td>
1451:             <td>#shooting($statNode.valueOf("@fgm") $statNode.valueOf("@fga"))</td>
1452:             <td>#shooting($statNode.valueOf("@fgm3") $statNode.valueOf("@fga3"))</td>
1453:             <td>#shooting($statNode.valueOf("@ftm") $statNode.valueOf("@fta"))</td>
1454:             <td>$statNode.valueOf("@oreb")</td>
1455:             <td>$statNode.valueOf("@dreb")</td>
1456:             <td>$statNode.valueOf("@treb")</td>
1457:             <td>$statNode.valueOf("@ast")</td>
1458:             <td>$statNode.valueOf("@stl")</td>
1459:             <td>$statNode.valueOf("@blk")</td>
1460:             <td>$statNode.valueOf("@to")</td>
1461:             <td>$statNode.valueOf("@pf")</td>
1462:             <td>#totalpoints($statNode.valueOf("@fgm") $statNode.valueOf("@fgm3") $statNode.valueOf("@ftm"))</td>
1463:         </tr>
1464: 	#end
1465: #end ## print player
1466: 
1467: ## PRINT PLAYER STATS
1468: #macro (printPlayerStats $team $type $period)
1469: 
1470:     #if ($type == 1) ## STARTERS
1471:    		#set ($starterNodes = $team.selectNodes("player[@gs='1'][@gp='1']"))
1472:    		#set ($startingPlayers = [])
1473:         #foreach ($i in [1..4])
1474:             #foreach ($node in $starterNodes)
1475:             	#set ($pos = $node.valueOf("@pos").trim())
1476:             	#if ($i == 1 && $pos.length() > 0 && $pos.equalsIgnoreCase("F"))
1477:              		#set ($bool = $startingPlayers.add($node))
1478:                 #elseif ($i == 2 && $pos.length() > 0 && $pos.equalsIgnoreCase("C"))
1479:                 	#set ($bool = $startingPlayers.add($node))
1480:                 #elseif ($i == 3 && $pos.length() > 0 && $pos.equalsIgnoreCase("G"))
1481:                 	#set ($bool = $startingPlayers.add($node))
1482:                 #elseif ($i == 4 && !$pos.equalsIgnoreCase("F") && !$pos.equalsIgnoreCase("C") && !$pos.equalsIgnoreCase("G"))
1483:                 	#set ($bool = $startingPlayers.add($node))
1484:                 #end
1485:             #end
1486: 		#end
1487: 
1488: 		#printPlayerNodes($startingPlayers, $period)
1489:     #end ## starters
1490: 
1491:     #if ($type == 2) ## RESERVES
1492:    		#set ($gamePlayedNodes = $team.selectNodes("player[@gp='1']"))
1493: 		#set ($teamNodes = [])
1494:    		#set ($reservePlayers = [])
1495: 
1496: 		#foreach ($node in $gamePlayedNodes)
1497: 			#if ($node.valueOf("@name") == 'TEAM')
1498: 				#set ($bool = $teamNodes.add($node))
1499: 			#elseif ($node.valueOf("@gs") != '1')
1500: 				#set ($bool = $reservePlayers.add($node))
1501: 			#end
1502: 		#end
1503: 
1504: 		#set ($bool = $reservePlayers.addAll($teamNodes))
1505: 		#printPlayerNodes($reservePlayers, $period)
1506: 	#end ## reserves
1507: #end ## print player stats
1508: 
1509: ## PRINT STATS TOTALS
1510: #macro (printStatTotals $team $period)
1511: 	#if ($period == 0)
1512: 		#set ($totalsNode = $teamNode.selectSingleNode("totals/stats"))
1513: 	#else
1514:         #if ($isStatcrewStats)
1515:             #set ($totalsNode = $teamNode.selectSingleNode("totals/statsbyprd[@prd='${period}']"))
1516:         #else
1517:             #set ($totalsNode = $document.selectSingleNode("bbgame/plays/period[@number='${period}']/summary[@vh='${vh}']"))
1518:         #end
1519: 	#end
1520:     <tr class="totals">
1521:         <th scope="rowgroup" class="row-head pinned-col text">TOTALS</th>
1522:         <td>&nbsp;</td>
1523:         <td>#shooting($totalsNode.valueOf("@fgm") $totalsNode.valueOf("@fga"))</td>
1524:         <td>#shooting($totalsNode.valueOf("@fgm3") $totalsNode.valueOf("@fga3"))</td>
1525:         <td>#shooting($totalsNode.valueOf("@ftm") $totalsNode.valueOf("@fta"))</td>
1526:         <td>$totalsNode.valueOf("@oreb")</td>
1527:         <td>$totalsNode.valueOf("@dreb")</td>
1528:         <td>$totalsNode.valueOf("@treb")</td>
1529:         <td>$totalsNode.valueOf("@ast")</td>
1530:         <td>$totalsNode.valueOf("@stl")</td>
1531:         <td>$totalsNode.valueOf("@blk")</td>
1532:         <td>$totalsNode.valueOf("@to")</td>
1533:         <td>$totalsNode.valueOf("@pf")</td>
1534:         <td>#totalpoints($totalsNode.valueOf("@fgm") $totalsNode.valueOf("@fgm3") $totalsNode.valueOf("@ftm"))</td>
1535:     </tr>
1536:     <tr class="totals">
1537:         <td class="pinned-col">&nbsp;</td>
1538:         <td>&nbsp;</td>
1539:     	<td>#shotpercent($totalsNode.valueOf("@fgm") $totalsNode.valueOf("@fga"))</td>
1540:     	<td>#shotpercent($totalsNode.valueOf("@fgm3") $totalsNode.valueOf("@fga3"))</td>
1541:     	<td>#shotpercent($totalsNode.valueOf("@ftm") $totalsNode.valueOf("@fta"))</td>
1542:     	<td colspan="9">&nbsp;</td>
1543:     </tr>
1544: #end ## print stats totals
1545: 
1546: #macro (printTabControl $teamName $id)
1547: 	#if ($stats.view != "pdf")
1548: 	   	<div class="tab-label" id="$id">$teamName</div>
1549:     #end
1550: #end
1551: 
1552: ## PRINT BOX SCORE
1553: #macro (printBoxScore $teamNode $period)
1554: 	#set ($teamName = $teamNode.valueOf("@name"))
1555: 	#set ($vh = $teamNode.valueOf("@vh"))
1556: 	#if ($vh == "V")
1557: 		#set ($teamClass = "visitor")
1558: 		#set ($teamLogo = $stats.visitorTeamLogo)
1559: 	#else
1560: 		#set ($teamClass = "home")
1561:         #set ($teamLogo = $stats.homeTeamLogo)
1562: 	#end
1563: 
1564: 	#set ($panelForVh = $vh.toLowerCase())
1565: 	#set ($panelFor = "team-label-boxscore-${panelForVh}")
1566: 	#if ($period > 0)
1567: 	    #set ($panelFor = "team-label-period${period}-${panelForVh}")
1568: 	#end
1569: 
1570: 	## STATS BY PERIOD
1571: 	<div class="stats-wrap clearfix">
1572:         <div class="stats-box full lineup ${teamClass} clearfix" data-panel-for="$panelFor">
1573:             <div class="scrollable">
1574:                 <div class="clearfix">
1575:                     <table>
1576:                         <caption class="caption">
1577:                     		<h2><span class="team-name">$teamName</span></h2>
1578:                         </caption>
1579: 						<thead>
1580:     						<tr>
1581:                                 <th scope="col" class="col-head pinned-col text">Player</th>
1582:                                 <th scope="col" class="col-head">MIN</th>
1583:                                 <th scope="col" class="col-head">FGM-A</th>
1584:                                 <th scope="col" class="col-head">3PM-A</th>
1585:                                 <th scope="col" class="col-head">FTM-A</th>
1586:                                 <th scope="col" class="col-head">OREB</th>
1587:                                 <th scope="col" class="col-head">DREB</th>
1588:                                 <th scope="col" class="col-head">REB</th>
1589:                                 <th scope="col" class="col-head">AST</th>
1590:                                 <th scope="col" class="col-head">STL</th>
1591:                                 <th scope="col" class="col-head">BLK</th>
1592:                                 <th scope="col" class="col-head">TO</th>
1593:                                 <th scope="col" class="col-head">PF</th>
1594:                                 <th scope="col" class="col-head">PTS</th>
1595:                             </tr>
1596: 						</thead>
1597: 						<tbody>
1598: 							<tr class="group-head">
1599: 								<th scope="rowgroup" class="row-head pinned-col text"><strong>STARTERS</strong></th>
1600: 								<td colspan="13">&nbsp;</td>
1601: 							</tr>
1602: 							#printPlayerStats($teamNode, 1, $period)
1603: 						</tbody>
1604: 						<tbody>
1605: 							<tr class="group-head">
1606: 								<th scope="rowgroup" class="row-head pinned-col text"><strong>RESERVES</strong></th>
1607: 								<td colspan="13">&nbsp;</td>
1608: 							</tr>
1609: 							#printPlayerStats($teamNode, 2, $period)
1610: 						</tbody>
1611:                         <tbody>
1612:                             #printStatTotals($teamNode, $period)
1613:                         </tbody>
1614:                     </table>
1615:                 </div>
1616:             </div>
1617:         </div>
1618: 	</div> ## stats-wrap
1619: #end ## print box score
1620: 
1621: ## PLAY BY PLAY
1622: #macro (printTabPlayByPlay)
1623:     <div class="stats-wrap clearfix">
1624:     #set ($vscore = 0)
1625:     #set ($hscore = 0)
1626:     #set ($score = "")
1627:     <div class="stats-box full">
1628: 		#if ($stats.view != "pdf")
1629: 		<div class="periods-links clearfix">
1630: 			<span class="label">Periods:</span>
1631: 			<ul>
1632: 			#foreach ($prd in $document.selectNodes("bbgame/plays/period"))
1633: 				<li><a href="#prd${prd.valueOf('@number')}">#printPeriodName($velocityCount, false, false, $periodRule)</a></li>
1634: 			#end
1635: 			</ul>
1636: 		</div>
1637: 		#end
1638:         #foreach ($prd in $document.selectNodes("bbgame/plays/period"))
1639:         <table role="presentation">
1640:             <caption class="caption">
1641:                 <h2><span id="prd${prd.valueOf('@number')}">#printPeriodName($velocityCount, true, false, $periodRule)</span></h2>
1642:             </caption>
1643:             #foreach ($play in $prd.selectNodes("play"))
1644: 
1645:                 #set ($actionsMap = {
1646:                     "REBOUND": {
1647:                         "DEF": "defensive rebound",
1648:                         "OFF": "offensive rebound",
1649:                         "DEADB": "deadball rebound"
1650:                     },
1651: 
1652:                     "MISS": {
1653:                         "JUMPER": "missed jump shot",
1654:                         "3PTR": "missed 3-pt. jump shot",
1655:                         "2PTR": "missed 2-pt. field goal",
1656:                         "LAYUP": "missed layup",
1657:                         "FT": "missed free throw",
1658:                         "DUNK": "missed dunk",
1659:                         "TIPIN": "missed tip-in"
1660:                     },
1661: 
1662:                     "GOOD": {
1663:                         "JUMPER": {"score": 2, "text": "made jump shot"},
1664:                         "3PTR": {"score": 3, "text": "made 3-pt. jump shot"},
1665:                         "2PTR": {"score": 2, "text": "made 2-pt. field goal"},
1666:                         "LAYUP": {"score": 2, "text": "made layup"},
1667:                         "FT": {"score": 1, "text": "made free throw"},
1668:                         "DUNK": {"score": 2, "text": "made dunk"},
1669:                         "TIPIN": {"score": 2, "text": "made tip-in"}
1670:                     },
1671: 
1672:                     "TURNOVER": "Turnover by",
1673:                     "STEAL": "Steal by",
1674:                     "ASSIST": "Assist by",
1675:                     "BLOCK": "Block by",
1676:                     "DEF PTS": "points (wrong basket by defense)",
1677: 
1678:                     "FOUL": {
1679:                         "TECH": "Technical Foul by",
1680:                         "NONTECH": "Foul by"
1681:                     }
1682:                 })
1683: 
1684:                 #set ($rowClass = "row")
1685:                 #set ($teamName = "")
1686:                 #set ($playText = "")
1687:                 #set ($isVisitorPlay = $play.attributeValue('vh') == "V")
1688:                 #set ($isHomePlay = $play.attributeValue('vh') == "H")
1689:                 #set ($playerVal = $!play.attributeValue("checkname"))
1690:                 #set ($playAction = $play.attributeValue("action"))
1691:                 #set ($playType = "")
1692:                 #if ($play.attributeValue('type'))
1693:                     #set ($playType = $play.attributeValue("type"))
1694:                 #end
1695: 
1696:                 #if($isVisitorPlay)
1697:                     #set ($rowClass = "row visitor")
1698:                     #set ($teamName = $visitorTeam)
1699:                 #else
1700:                     #set ($rowClass = "row home")
1701:                     #set ($teamName = $homeTeam)
1702:                 #end
1703: 
1704:                 #if ($actionsMap.containsKey($playAction))
1705:                     #set ($actionVal = $actionsMap.get($playAction))
1706:                     #if ($playAction.equals("FOUL"))
1707:                         #if ($playType && $actionVal.get($playType))
1708:                             #set ($playText = $actionVal.get($playType))
1709:                         #else
1710:                             #set ($playText = $actionVal.get("NONTECH"))
1711:                         #end
1712:                     #elseif ($playType && $actionVal.get($playType))
1713:                         #set ($actionVal = $actionVal.get($playType))
1714:                         #if ($actionVal.get("score"))
1715:                             #set ($playText = $actionVal.get("text"))
1716:                             #if ($isVisitorPlay)
1717:                                 #set ($vscore = $tool.math.add($vscore, $actionVal.get("score")))
1718:                             #else
1719:                                 #set ($hscore = $tool.math.add($hscore, $actionVal.get("score")))
1720:                             #end
1721:                         #else
1722:                             #set ($playText = $actionVal)
1723:                         #end
1724:                     #else
1725:                         #set ($playText = $actionVal)
1726:                     #end
1727:                 #end
1728: 
1729: 
1730:                 #if($!play.attributeValue('vscore') || $!play.attributeValue('hscore'))
1731:                 	#set ($rowClass = "${rowClass} score-changed")
1732:                     #if($isDakStats) ## keep running score for dakstats
1733:                         #set ($score = "<span class='v-score'>${vscore}</span><span class='sep'> - </span><span class='h-score'>${hscore}</span>")
1734:                     #else
1735:                         #set ($score = "<span class='v-score'>$!play.attributeValue('vscore')</span><span class='sep'> - </span><span class='h-score'>$!play.attributeValue('hscore')</span>")
1736:                     #end
1737:                 #end
1738: 
1739:                 <tr class="$rowClass">
1740:                     <td class="time">$!play.attributeValue("time")</td>
1741:                     #if($isHomePlay)
1742:                         <td class="play blank-cell">&nbsp;</td>
1743:                         <td class="score">$score</td>
1744:                     #end
1745:                     <td class="play">
1746:                         #if($isVisitorPlay && $stats.view != "pdf")
1747:                         	<img src="$stats.visitorTeamLogo" alt="$visitorTeam" class="team-logo visitor" />
1748:                         #end
1749:                         <span class="text">
1750:                             #if($!play.attributeValue("action") == "TIMEOUT")
1751:                                 <strong>$!play.attributeValue("type") $!play.attributeValue("action") by $teamName</strong>
1752: 
1753:                             #elseif ($!play.attributeValue("action") == "SUB")
1754:                                 $playerVal
1755:                                 #if ($!play.attributeValue("type") == "IN") enters the game
1756:                                 #elseif ($!play.attributeValue("type") == "OUT") goes to the bench
1757:                                 #elseif ($!play.attributeValue("type") == "STARTER") will be starting
1758:                                 #end
1759: 
1760:                             #elseif ($!play.attributeValue("action") == "TURNOVER" ||
1761:                                 $!play.attributeValue("action") == "STEAL" ||
1762:                                 $!play.attributeValue("action") == "ASSIST" ||
1763:                                 $!play.attributeValue("action") == "FOUL" ||
1764:                                 $!play.attributeValue("action") == "BLOCK")
1765:                                 $playText $playerVal
1766:                             #else
1767:                                 ## PLAIN TEXT DESCRIPTIONS
1768:                                 $playerVal $playText
1769:                             #end
1770:                          </span>
1771:                         #if($isHomePlay && $stats.view != "pdf")
1772:                             <img src="$stats.homeTeamLogo" alt="$homeTeam" class="team-logo home" />
1773:                         #end
1774:                     </td>
1775:                     #if($isVisitorPlay)
1776:                         <td class="score">$score</td>
1777:                         <td class="play blank-cell">&nbsp;</td>
1778:                     #end
1779:                 </tr> ## row
1780:             #end
1781:             #if ($stats.view != "pdf")
1782:                 <tr class="back-to-top"><td colspan="4"><a href="#pbp">back to top <span class="gicon-up"></span></a></td></tr>
1783:             #end
1784:             </table>
1785:         #end
1786:     </div>
1787: </div> ## stats-wrap
1788: #end ## print play by play
1789: 
1790: ## PRINT % GRAPH
1791: #macro (printPctGraph $made $attempts $label)
1792:     #set ($visMade = $visitorTotals.valueOf($made))
1793:     #set ($visAttempts = $visitorTotals.valueOf($attempts))
1794:     #set ($homeMade = $homeTotals.valueOf($made))
1795:     #set ($homeAttempts = $homeTotals.valueOf($attempts))
1796:     #set ($visBarVal = $tool.math.roundTo(1, $tool.math.mul($tool.math.div($visMade, $visAttempts), 100)))
1797:     #set ($homeBarVal = $tool.math.roundTo(1, $tool.math.mul($tool.math.div($homeMade, $homeAttempts), 100)))
1798: 
1799:     #if ($visBarVal && $homeBarVal)
1800:         <div class="stat-graph">
1801:             <div class="graph-label">$label</div>
1802:             <div class="team">$visitorTeam</div>
1803:             <div class="stat-bar vis">
1804:                 <div class="stat">$visBarVal%</div>
1805:                 <div class="bar"><div style="max-width:${visBarVal}%"></div></div>
1806:             </div>
1807:             <div class="stat-bar home">
1808:                 <div class="stat">$homeBarVal%</div>
1809:                 <div class="bar"><div style="max-width:${homeBarVal}%"></div></div>
1810:             </div>
1811:             <div class="team">$homeTeam</div>
1812:         </div>
1813:     #end
1814: #end
1815: 
1816: #macro (printPointsGraph $cat $label)
1817:     #set ($visVal = $tool.math.toInteger($visitorTotals.valueOf($cat)))
1818:     #set ($homeVal = $tool.math.toInteger($homeTotals.valueOf($cat)))
1819: 
1820:     #if ($visVal > $homeVal)
1821:         #set ($visBarVal = 100)
1822:         #set ($homeBarVal = $tool.math.mul($tool.math.div($homeVal, $visVal), 100))
1823:     #elseif ($homeVal > $visVal)
1824:         #set ($visBarVal = $tool.math.mul($tool.math.div($visVal, $homeVal), 100))
1825:         #set ($homeBarVal = 100)
1826:     #end
1827: 
1828:     #if ($visBarVal && $homeBarVal)
1829:         <div class="stat-graph">
1830:             <div class="graph-label">$label</div>
1831:             <div class="team">$visitorTeam</div>
1832:             <div class="stat-bar vis">
1833:                 <div class="stat">$visVal</div>
1834:                 <div class="bar"><div style="max-width:${visBarVal}%"></div></div>
1835:             </div>
1836:             <div class="stat-bar home">
1837:                 <div class="stat">$homeVal</div>
1838:                 <div class="bar"><div style="max-width:${homeBarVal}%"></div></div>
1839:             </div>
1840:             <div class="team">$homeTeam</div>
1841:         </div>
1842:     #end
1843: #end ## print graph
1844: 
1845: ## TEAM SUMMARY STATISTICS
1846: #macro (printTeamStats)
1847:     #macro (printSpecials $l $a)
1848:         #set ($hv = $homeTotals.valueOf($a))
1849:         #set ($vv = $visitorTotals.valueOf($a))
1850:         #if ($hv.length() > 0 && $vv.length() > 0)
1851:         <tr>
1852:             <th class="row-head text" scope="row">$l</th>
1853:             <td>$vv</td>
1854:             <td>$hv</td>
1855:         </tr>
1856:         #end
1857:     #end
1858:     <div class="stats-wrap clearfix">
1859:         <div class="stats-box half">
1860:             <table>
1861:             	<caption class="caption offscreen"><h2>Team Statistics</h2></caption>
1862:                 <tr>
1863:                     <th class="col-head" scope="col"><span class="offscreen">Stat</span></th>
1864:                     <th class="col-head" scope="col">$visitorTeam</th>
1865:                     <th class="col-head" scope="col">$homeTeam</th>
1866:                 </tr>
1867: 
1868:                 <tr>
1869:                     <th class="row-head text" scope="row">Field Goal</th>
1870:                     <td>#shooting($visitorTotals.valueOf("stats/@fgm") $visitorTotals.valueOf("stats/@fga"))</td>
1871:                     <td>#shooting($homeTotals.valueOf("stats/@fgm") $homeTotals.valueOf("stats/@fga"))</td>
1872:                 </tr>
1873: 
1874:                 <tr>
1875:                     <th class="row-head text" scope="row">Field Goal %</th>
1876:                     <td>#shotpercent($visitorTotals.valueOf("stats/@fgm") $visitorTotals.valueOf("stats/@fga"))</td>
1877:                     <td>#shotpercent($homeTotals.valueOf("stats/@fgm") $homeTotals.valueOf("stats/@fga"))</td>
1878:                 </tr>
1879: 
1880: 
1881:                 <tr>
1882:                     <th class="row-head text" scope="row">3 Point</th>
1883:                     <td>#shooting($visitorTotals.valueOf("stats/@fgm3") $visitorTotals.valueOf("stats/@fga3"))</td>
1884:                     <td>#shooting($homeTotals.valueOf("stats/@fgm3") $homeTotals.valueOf("stats/@fga3"))</td>
1885:                 </tr>
1886: 
1887:                 <tr>
1888:                     <th class="row-head text" scope="row">3 Point %</th>
1889:                     <td>#shotpercent($visitorTotals.valueOf("stats/@fgm3") $visitorTotals.valueOf("stats/@fga3"))</td>
1890:                     <td>#shotpercent($homeTotals.valueOf("stats/@fgm3") $homeTotals.valueOf("stats/@fga3"))</td>
1891:                 </tr>
1892: 
1893:                 <tr>
1894:                     <th class="row-head text" scope="row">Free Throw</th>
1895:                     <td>#shooting($visitorTotals.valueOf("stats/@ftm") $visitorTotals.valueOf("stats/@fta"))</td>
1896:                     <td>#shooting($homeTotals.valueOf("stats/@ftm") $homeTotals.valueOf("stats/@fta"))</td>
1897:                 </tr>
1898: 
1899:                 <tr>
1900:                     <th class="row-head text" scope="row">Free Throw %</th>
1901:                     <td>#shotpercent($visitorTotals.valueOf("stats/@ftm") $visitorTotals.valueOf("stats/@fta"))</td>
1902:                     <td>#shotpercent($homeTotals.valueOf("stats/@ftm") $homeTotals.valueOf("stats/@fta"))</td>
1903:                 </tr>
1904: 
1905: 
1906:                 <tr>
1907:                     <th class="row-head text" scope="row">Rebounds</th>
1908:                     <td>$visitorTotals.valueOf("stats/@treb")</td>
1909:                     <td>$homeTotals.valueOf("stats/@treb")</td>
1910:                 </tr>
1911: 
1912:                 <tr>
1913:                     <th class="row-head text" scope="row">Assists</th>
1914:                     <td>$visitorTotals.valueOf("stats/@ast")</td>
1915:                     <td>$homeTotals.valueOf("stats/@ast")</td>
1916:                 </tr>
1917: 
1918:                 <tr>
1919:                     <th class="row-head text" scope="row">Turnovers</th>
1920:                     <td>$!visitorTotals.valueOf("stats/@to")</td>
1921:                     <td>$!homeTotals.valueOf("stats/@to")</td>
1922:                 </tr>
1923: 
1924:                 #printSpecials("Points off Turnovers", "special/@pts_to")
1925:                 #printSpecials("2nd Chance Points", "special/@pts_ch2")
1926:                 #printSpecials("Points in the Paint", "special/@pts_paint")
1927:                 #printSpecials("Fastbreak Points", "special/@pts_fastb")
1928:                 #printSpecials("Bench Points", "special/@pts_bench")
1929:                 #printSpecials("Largest Lead", "special/@large_lead")
1930:                 #printSpecials("Time of Largest Lead", "special/@large_lead_t")
1931: 
1932:                 #if ($hasPeriods)
1933:                     <tr>
1934:                     	<th class="row-head text" scope="row">Trends</th>
1935:                         <td colspan="2">
1936:                             Ties: $tool.math.add($!visitorTotals.valueOf("special/@ties"),$!homeTotals.valueOf("special/@ties"));
1937:                             Lead Changes: $tool.math.add($!visitorTotals.valueOf("special/@leads"),$!homeTotals.valueOf("special/@leads"))
1938:                         </td>
1939:                     </tr>
1940:                 #end
1941:             </table>
1942:         </div>
1943: 
1944:         #if ($stats.view != "pdf")
1945:             ## TEAM STATS BAR GRAPHS
1946:             <div class="stats-box half">
1947:                 <div class="stat-graphs">
1948:                     #printPctGraph("stats/@fgm", "stats/@fga", "Field Goals %")
1949:                     #printPctGraph("stats/@fgm3", "stats/@fga3", "3 Point %")
1950:                     #printPointsGraph("stats/@treb", "Rebounds")
1951:                     #printPointsGraph("stats/@to", "Turnovers")
1952:                 </div>
1953:             </div>
1954:         #end
1955:     </div> ## stats-wrap
1956: #end ## print team stats
1957: 
1958: ## Game Information
1959: #macro (printGameInfo)
1960:     #set ($officials = $document.valueOf("bbgame/venue/officials/@text"))
1961:     #set ($attendance = $document.valueOf("bbgame/venue/@attend"))
1962:     #set ($time = $document.valueOf("bbgame/venue/@time"))
1963:     #set ($foulsV = $visitorTotals.valueOf("stats/@tf"))
1964:     #set ($foulsH = $homeTotals.valueOf("stats/@tf"))
1965:     #if ($tool.math.toInteger($foulsV) == 0)
1966:     	#set ($foulsV = "None")
1967:     #end
1968: 	#if ($tool.math.toInteger($foulsH) == 0)
1969: 		#set ($foulsH = "None")
1970: 	#end
1971: 
1972:     <div class="stats-wrap clearfix">
1973:         <div class="stats-box half">
1974:         	<table>
1975:         		<caption class="caption"><h2>Game Information</h2></caption>
1976:         		#if ($date)<tr><th class="row-head text" scope="row">Date/Time: </th><td class="text">$formatter.formatLongDate($date) #if ($time.length() > 0) - $!time #end</td></tr>#end
1977:                 #if ($location.length() > 0)<tr><th class="row-head text" scope="row">Location: </th><td class="text">$location</td></tr>#end
1978:             	<tr><th class="row-head text" scope="row">Technical fouls: </th><td class="text">${visitorTeam}-${foulsV} #printPlayerStat (${visitor}, "player/stats", "@tf"); ${homeTeam}-${foulsH} #printPlayerStat (${home}, "player/stats", "@tf").</td></tr>
1979:             	#if ($officials.length() > 0)<tr><th class="row-head text" scope="row">Officials: </th><td class="text">$officials</td></tr>#end
1980:             	#if ($tool.math.toInteger($attendance) > 0)<tr><th class="row-head text" scope="row">Attendance: </th><td class="text">$attendance</td></tr>#end
1981:             </table>
1982:         </div>
1983:     </div>
1984: #end ## print game info
1985: 
1986: #set ($titleVA = "at")
1987: #if ($isNeutralGame)
1988: 	#set ($titleVA = "vs.")
1989: #end
1990: 
1991: #set ($pageTitle = "$visname $titleVA $homename")
1992: 
1993: #if ($date)
1994: 	#set ($pageTitle = "${pageTitle} - ${formatter.formatLongDate($date)}")
1995: #end
1996: 
1997: #if ($time.length() > 0)
1998: 	#set ($pageTitle = "${pageTitle} - ${time}")
1999: #end
2000: <head>
2001:     <title>$pageTitle - Box Score</title>
2002: 	#if ($stats.inProgress)
2003:         <meta http-equiv="refresh" content="60" />
2004:     #end
2005:     #if ($stats.view == "pdf")
2006:         #include("statcrew-pdf-css-template")
2007:     #end
2008: </head>
2009: 
2010: #if ($stats.view == "pdf")
2011: 
2012: <div class='footer-left'>$visname vs. $homename</div>
2013: <div class='footer-right'><span id="pagenumber"></span> of <span id="pagecount"></span></div>
2014: <div class="stats-wrapper">
2015: 	#printPdfHeader("Box score")
2016: 	#parse("bbxml-monospace-template")
2017: 	#if ($hasPeriods)
2018: 		<p class="pagebreak">&nbsp;</p>
2019: 		#printPdfHeader("Play by Play")
2020: 		<div class="stats-fullbox">#printTabPlayByPlay()</div>
2021: 	#end
2022: 	#if ($hasTotals)
2023: 		<p class="pagebreak">&nbsp;</p>
2024: 		#printPdfHeader("Team Summary")
2025: 		<div class="stats-fullbox">#printTeamStats</div>
2026: 	#end
2027: 
2028:     #printAllPeriodsBoxScore()
2029: 
2030: </div> ## stats-wrapper
2031: 
2032: #else
2033: ## FULL BOXSCORE
2034: 
2035: #if ($showWiki == true)
2036: 	$!wiki.su
2037: #end
2038: 
2039: <article class="game-boxscore bkb clearfix">
2040: 
2041: 	## BOX SCORE HEADER
2042: 	<div class="head">
2043: 	    <h1>$visitorTeam #if ($isNeutralGame) vs. #else at #end $homeTeam #if ($dateVal.length() > 0)<span>$formatter.formatLongDate($date)</span>#end</h1>
2044: 
2045:         #set ($visClass = "")
2046:         #set ($homeClass = "")
2047: 	    #if ($visScore && $homeScore)
2048:             #if ($visScore > $homeScore)
2049:                 #set ($visClass = "winner")
2050:                 #set ($homeClass = "loser")
2051:             #elseif ($homeScore > $visScore)
2052:                 #set ($visClass = "loser")
2053:                 #set ($homeClass = "winner")
2054:             #end
2055: 	    #end
2056: 
2057: 	    <div class="teams clearfix">
2058:     		<div class="team visitor ${visClass} clearfix">
2059:     			<div class="team-logo"><img src="$stats.visitorTeamLogo" alt="" /></div>
2060:     			#if ($visitor.valueOf("@record").length() > 0)<span class="team-record">($visitor.valueOf("@record"))</span>#end
2061:     			#if ($visScore)<div class="team-score visitor">$visScore</div>#end
2062:     		</div>
2063:     		<div class="team home ${homeClass} clearfix">
2064:     			<div class="team-logo"><img src="$stats.homeTeamLogo" alt="" /></div>
2065:     			#if ($home.valueOf("@record").length() > 0)<span class="team-record">($home.valueOf("@record"))</span>#end
2066:                 #if ($homeScore)<div class="team-score home">$homeScore</div>#end
2067:     		</div>
2068: 
2069:     		## Mini boxscore
2070:     		<div class="linescore">
2071:     		<table>
2072:     			<tr>
2073:     				<th scope="col" class="col-head text">
2074:     					#if ($stats.final)
2075:     						Final
2076:     					#else
2077:     						#if ($inProgressPrd.length() > 0 && $inProgressClock.length() > 0)
2078:     							#printPeriodName($inProgressPrd, true, false, $periodRule) - $inProgressClock
2079:     						#end
2080:     					#end
2081:     				</th>
2082:     				#foreach ($period in $periodRange)
2083:     				#set ($overtimePeriod = 0)
2084:     					#if ($velocityCount > $periodRule)
2085:     						<th scope="col" class="col-head score">#printPeriodName($velocityCount, true, false, $periodRule)</th>
2086:     					#else
2087:     						<th scope="col" class="col-head score">$period</th>
2088:     					#end
2089:     				#end
2090:     				<th scope="col" class="col-head score total" aria-label="Total">T</th>
2091:     			</tr>
2092: 
2093:     			## TEAM SCORES
2094:     			#foreach ($team in $document.selectNodes("bbgame/team"))
2095:     			<tr #if($velocityCount == 1) class="$visClass" #else class="$homeClass" #end>
2096:     				<th scope="row" class="name row-head text">#showTeam($team)</th>
2097:     				#foreach ($period in $periodRange)
2098:     					<td class="score">$team.valueOf("linescore/lineprd[$period]/@score")</td>
2099:     				#end
2100:     				<td class="score total">$team.valueOf("linescore/@score")</td>
2101:     			</tr>
2102:     			#end
2103:     		</table>
2104:     		</div> ## mini boxscore
2105: 		</div> ## teams
2106: 	</div> ## head
2107: 
2108: 	## TABS
2109: 	#if ($hasPeriods || $hasTotals)
2110: 		<div class="tab-container primary clearfix" data-module="stats/tabs" data-type="primary">
2111: 			<div class="tab-nav" data-module="jscroll" data-momentum="false">
2112: 			<div class="clearfix">
2113: 				<ul class="clearfix">
2114: 					<li #if (!($stats.view.length() > 0) || $stats.view == "boxscore")class="active"#end><a href="${stats.pageUrl}${paramSep}view=boxscore" data-view="boxscore">Box Score</a></li>
2115: 					#if ($hasPeriods)
2116: 						<li #if ($stats.view == "plays")class="active"#end><a href="${stats.pageUrl}${paramSep}view=plays" data-view="plays" id="pbp">Play by Play</a></li>
2117: 					#end
2118: 					<li #if ($stats.view == "teamstats")class="active"#end><a href="${stats.pageUrl}${paramSep}view=teamstats" data-view="teamstats">Team Stats</a></li>
2119: 
2120: 					#printBoxScoreAllTabs()
2121: 
2122: 					<li data-skip="true"><a href="${stats.pageUrl}${paramSep}tmpl=bbxml-monospace-template" target="_blank">Coach's View</a></li>
2123: 				</ul>
2124: 			</div>
2125: 			</div>
2126: 			<div class="tab-panels">
2127: 
2128: 			## FULL BOX SCORE
2129: 			#set ($class = "tab-panel clearfix")
2130: 			#if (!($stats.view.length() > 0) || $stats.view == "boxscore")
2131: 				#set ($class = "tab-panel active clearfix")
2132: 			#end
2133: 			<section class="${class}">
2134: 				<h1 class="offscreen">Box Score</h1>
2135: 				<div class="player-stats" data-module="mod-team-tabs">
2136:             	    <div class="tab-labels">
2137:                 		#printTabControl($visitor.valueOf("@name"), "team-label-boxscore-v")
2138:                 		#printTabControl($home.valueOf("@name"), "team-label-boxscore-h")
2139:             		</div>
2140: 					#printBoxScore($visitor 0)
2141: 					#printBoxScore($home 0)
2142: 				</div>
2143: 				<div class="game-info">
2144: 					#printGameInfo
2145: 				</div>
2146: 			</section>
2147: 
2148: 			## PAY BY PLAY
2149: 			#if ($hasPeriods)
2150: 				#set ($class = "tab-panel clearfix")
2151: 				#if ($stats.view == "plays")
2152: 					#set ($class = "tab-panel active clearfix")
2153: 				#end
2154: 				<section class="${class}">
2155: 				<h1 class="offscreen">Play By Play</h1>
2156: 					<div class="plays">
2157: 						#printTabPlayByPlay
2158: 					</div>
2159: 				</section>
2160: 			#end
2161: 
2162: 			## TEAM STATS
2163:             #set ($class = "tab-panel clearfix")
2164:             #if ($stats.view == "teamstats")
2165:                 #set ($class = "tab-panel active clearfix")
2166:             #end
2167:             <section class="${class}">
2168:             <h1 class="offscreen">Team Stats</h1>
2169:                 <div class="team-stats">
2170:                     #printTeamStats
2171:                 </div>
2172:             </section>
2173: 
2174: 			## PERIODS BOXSCORE
2175:             #printAllPeriodsBoxScore()
2176: 			</div>
2177: 		</div>
2178: 	#end
2179: </article> ## game-boxscore
2180: #end ## pdf check
2181: 
2182: #set ($showWiki = true)
2183: #set ($showWiki = $showWikiVar)
2184: 
2185: #if ($showWiki == true)
2186:     $!wiki.su
2187: #end
2188: #end ## pt check
2189: 
2190: ## GLOBAL ADS SERVER
2191: #if ($website.ads.isAdvertisingEnabled('BOX_SCORES'))
2192: 	$website.ads.register('box_scores', '[[320,50],[728,90],[970,90]]', 'PS_WEB_INTERNAL_LEADERBOARD')
2193: #end