Michigan Tech

Purdue Northwest

Thu, Jan. 31, 2019
8:00 PM EST

Live statistics will be available in:



Overview

Michigan Tech

Team Record Conf. Record Last Game
1-1 0-0 W, 75-67 vs. McKendree

Purdue Northwest

Team Record Conf. Record Last Game
0-2 0-0 L, 99-83 at William Jewell

Team Comparison

Points

64.0
78.0

Points Allowed

70.5
101.0

Field Goal %

36.1
41.0

3-point %

31.8
21.6

Free Throw %

77.8
68.9

Rebounds

37.0
33.0

Assists

12.0
9.0

Steals

6.0
5.0

Blocks

3.5
2.0

Turnovers

14.5
11.0
Michigan Tech (based on 2 games)
Purdue Northwest (based on 2 games)

Key Contributors

Isaac Appleby

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