Lander

Augusta

Sat, Feb. 24, 2018
1:30 PM EST

Live statistics will be available in:



Overview

Lander

Team Record Conf. Record Last Game
3-1 0-0 W, 81-76 vs. Wingate

Augusta

Team Record Conf. Record Last Game
1-1 0-0 W, 61-51 at Benedict

Team Comparison

Points

75.5
65.0

Points Allowed

72.8
64.5

Field Goal %

42.8
41.2

3-point %

28.8
29.6

Free Throw %

73.0
77.8

Rebounds

31.3
34.0

Assists

16.3
13.0

Steals

13.0
10.5

Blocks

4.3
3.0

Turnovers

16.5
16.0
Lander (based on 4 games)
Augusta (based on 2 games)

Key Contributors

Mylea McKenith

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 ($tabPeriodRule = $tool.math.toInteger($periodRule))
1183: #set ($qh = $document.valueOf("bbgame/venue/rules/@qh"))
1184: 
1185: #if ($document.valueOf("bbgame/@source") == 'STAT CREW Basketball')
1186:     #set ($tabPeriodRule = 2)
1187: #end
1188: 
1189: #set ($linkPlayers = $stats.linkPlayers)
1190: #set ($linkPlayersBase = $stats.linkPlayersBase)
1191: #set ($linkTeams = $stats.linkTeams)
1192: #set ($linkTeamsBase = $stats.linkTeamsBase)
1193: 
1194: #if ($document.valueOf("bbgame/@source") == "DakStats Basketball")
1195:     #set ($isDakStats = true)
1196: #else
1197:     #set ($isDakStats = false)
1198: #end
1199: 
1200: #set ($periods = $tool.math.toInteger($home.selectNodes("linescore/lineprd").size()))
1201: #set ($periodRange = [1..$periods])
1202: 
1203: #set ($homeTeam = $home.valueOf("@name"))
1204: #set ($homeScore = $tool.math.toInteger($home.valueOf("linescore/@score")))
1205: #set ($homename = $document.valueOf("bbgame/venue/@homename"))
1206: #set ($visitorTeam = $visitor.valueOf("@name"))
1207: #set ($visScore = $tool.math.toInteger($visitor.valueOf("linescore/@score")))
1208: #set ($visname = $document.valueOf("bbgame/venue/@visname"))
1209: #set ($homeTotals = $home.selectSingleNode("totals"))
1210: #set ($visitorTotals = $visitor.selectSingleNode("totals"))
1211: 
1212: #set ($hasPeriods = $document.selectNodes("bbgame/plays/period").size() > 0)
1213: #set ($hasTotals = $homeTotals.selectNodes("*").size() > 0)
1214: #set ($hasStatsByPeriod = $document.selectNodes("//statsbyprd").size() > 0)
1215: #set ($isNeutralGame = $document.valueOf("bbgame/venue/@neutralgame"))
1216: #if ($isNeutralGame.length() > 0 && $isNeutralGame.equals("Y"))
1217:     #set ($isNeutralGame = true)
1218: #else
1219:     #set ($isNeutralGame = false)
1220: #end
1221: #set ($location = $document.valueOf("bbgame/venue/@location"))
1222: #set ($dateVal = $document.valueOf("bbgame/venue/@date"))
1223: #set ($date = $tool.date.toDate("MM/dd/yyyy", $dateVal))
1224: #set ($time = $document.valueOf("bbgame/venue/@time"))
1225: 
1226: #if ($stats.pageUrl.length() > 0 && !$stats.pageUrl.contains("?"))
1227:     #set ($paramSep = "?")
1228: #else
1229:     #set ($paramSep = "&")
1230: #end
1231: 
1232: #set ($showWiki = true)
1233: #set ($showWiki = $showWikiVar)
1234:     
1235: ## MACROS
1236: #macro (printPdfHeader $title)
1237: <div class="stats-fullbox">
1238:     <table>
1239:         <tr>
1240:             <td class="align-center"><h4>$title</h4></td>
1241:         </tr>
1242:     </table>
1243: </div>
1244: #end
1245: 
1246: ## SHOOTING STATS
1247: #macro (shooting $attempts $made)
1248:     #if ($attempts.length() > 0)
1249:         ${attempts}-${made}
1250:     #end
1251: #end
1252: 
1253: ## SHOOTING PERCENTAGE
1254: #macro (shotpercent $attempts $totalShots)
1255:     #if (($attempts.length() > 0 && $totalShots.length() > 0) && ($tool.number.toNumber($attempts) > 0 && $tool.number.toNumber($totalShots) > 0))
1256:         #set ($percent = $tool.math.div($attempts, $totalShots))
1257:         #set ($percent = $tool.math.mul($percent, 100))
1258:         $formatter.formatNumber($percent, 1)%
1259:     #else
1260:     0%
1261:     #end
1262: #end
1263: 
1264: ## PRINT PLAYER NAMES PER STAT - USED FOR TECHNICAL FOULS
1265: #macro (printPlayerStat $team $path $att)
1266:     #set ($printVal = "")
1267:     #foreach ($playerSubnode in $team.selectNodes($path))
1268:         #set ($attributeVal = $playerSubnode.valueOf($att))
1269:         #set ($playerName = $playerSubnode.valueOf("../@name"))
1270:         #if ($attributeVal.length() > 0 && $tool.math.toInteger($attributeVal) > 0)
1271:             #if ($tool.math.toInteger($attributeVal) > 1)
1272:                 #set ($singlePrintVal = "${playerName} ${attributeVal}")
1273:             #else
1274:                 #set ($singlePrintVal = "${playerName}")
1275:             #end
1276:             #if ($printVal.length() > 0) #set ($printVal = "${printVal}; ") #end
1277:             #set ($printVal = "${printVal} ${singlePrintVal}")
1278:         #end
1279:     #end
1280:     #if ($printVal.length() > 0)
1281:     ($printVal)
1282:     #end
1283: #end
1284: 
1285: ## POINTS
1286: #macro (totalpoints $fgm $fgm3 $ftm)
1287:     #if ($fgm.length() > 0)
1288:         $tool.math.add($tool.math.mul($fgm, 2), $tool.math.add($fgm3, $ftm))
1289:     #end
1290: #end
1291: 
1292: ## PERIOD NAME
1293: #macro (printPeriodName $c $printQuarterHalf $small $pRule)
1294:     #if ($tool.math.toInteger($c) <= $pRule)
1295:         #if ($c  == 1)
1296:             #set ($prdText = "1st")
1297:         #elseif ($c == 2)
1298:             #set ($prdText = "2nd")
1299:         #elseif ($c == 3)
1300:             #set ($prdText = "3rd")
1301:         #elseif ($c == 4)
1302:             #set ($prdText = "4th")
1303:         #end
1304:         #if ($printQuarterHalf)
1305:             #if ($pRule > 2)
1306:                 #if($small)
1307:                     #set ($prdText = "${prdText} Qtr")
1308:                 #else
1309:                     #set ($prdText = "${prdText} Quarter")
1310:                 #end
1311:             #else
1312:                 #set ($prdText = "${prdText} Half")
1313:             #end
1314:         #end
1315:     #else
1316:         #set ($overtimePeriod = $tool.math.sub($c, $pRule))
1317:         #if ($overtimePeriod > 1)
1318:             #set ($prdText = "${overtimePeriod}OT")
1319:         #else
1320:             #set ($prdText = "OT")
1321:         #end
1322:     #end
1323:     $prdText
1324: #end
1325: 
1326: #macro (showTeam $team)
1327:     #if ($team.attributeValue("link").length() > 0 &&  $linkTeams && $stats.view != "pdf")
1328:         <a href="$!linkTeamsBase?id=${team.attributeValue('teamId')}">$team.attributeValue("name")</a>
1329:     #else
1330:     	$team.attributeValue("name")
1331:     #end
1332: #end
1333: 
1334: ## PRINT PLAYER
1335: #macro (printPlayerNodes $playerNodes $period)
1336:     #foreach ($player in $playerNodes)
1337:         #if ($period > 0)
1338:             #set ($statNode = $player.selectSingleNode("statsbyprd[@prd='${period}']"))
1339:         #else
1340:             #set ($statNode = $player.selectSingleNode("stats"))                		
1341:         #end	
1342:         #set ($position = "")
1343:         #set ($pos = $player.valueOf("@pos").trim())
1344:         #if ($pos.length() > 0 && ($pos.equalsIgnoreCase("F") || $pos.equalsIgnoreCase("G") || $pos.equalsIgnoreCase("C")))
1345:             #set ($position = $pos)
1346:         #end
1347:         <tr>
1348:             <th scope="row" class="row-head pinned-col text">
1349: 				#if ($player.valueOf("@uni").length() > 0)
1350: 					<span class="uniform">$player.valueOf("@uni") - </span>
1351: 				#end
1352: 				#if ($player.valueOf("@playerId").length() > 0 && $linkPlayers && $player.valueOf("../@link").length() > 0)
1353: 					<a href="../players?id=${player.valueOf("@playerId")}" class="player-name">$player.valueOf("@name")</a>
1354: 				#else
1355: 					<span class="player-name">$player.valueOf("@name")</span>
1356:                 #end
1357: 				#if ($position.length() > 0)<span class="position" style="text-transform:lowercase"> - $position</span>#end
1358:             </th>
1359:             <td>$statNode.valueOf("@min")</td>
1360:             <td>#shooting($statNode.valueOf("@fgm") $statNode.valueOf("@fga"))</td>
1361:             <td>#shooting($statNode.valueOf("@fgm3") $statNode.valueOf("@fga3"))</td>
1362:             <td>#shooting($statNode.valueOf("@ftm") $statNode.valueOf("@fta"))</td>
1363:             <td>$statNode.valueOf("@oreb")</td>
1364:             <td>$statNode.valueOf("@dreb")</td>
1365:             <td>$statNode.valueOf("@treb")</td>
1366:             <td>$statNode.valueOf("@ast")</td>
1367:             <td>$statNode.valueOf("@stl")</td>
1368:             <td>$statNode.valueOf("@blk")</td>
1369:             <td>$statNode.valueOf("@to")</td>
1370:             <td>$statNode.valueOf("@pf")</td>
1371:             <td>#totalpoints($statNode.valueOf("@fgm") $statNode.valueOf("@fgm3") $statNode.valueOf("@ftm"))</td>
1372:         </tr>
1373: 	#end
1374: #end ## print player
1375: 
1376: ## PRINT PLAYER STATS
1377: #macro (printPlayerStats $team $type $period)   
1378:     
1379:     #if ($type == 1) ## STARTERS
1380:    		#set ($starterNodes = $team.selectNodes("player[@gs='1'][@gp='1']"))
1381:    		#set ($startingPlayers = [])
1382:         #foreach ($i in [1..4])
1383:             #foreach ($node in $starterNodes)
1384:             	#set ($pos = $node.valueOf("@pos").trim())
1385:             	#if ($i == 1 && $pos.length() > 0 && $pos.equalsIgnoreCase("F"))
1386:              		#set ($bool = $startingPlayers.add($node))                            
1387:                 #elseif ($i == 2 && $pos.length() > 0 && $pos.equalsIgnoreCase("C"))
1388:                 	#set ($bool = $startingPlayers.add($node))                           
1389:                 #elseif ($i == 3 && $pos.length() > 0 && $pos.equalsIgnoreCase("G"))
1390:                 	#set ($bool = $startingPlayers.add($node))                            
1391:                 #elseif ($i == 4 && !$pos.equalsIgnoreCase("F") && !$pos.equalsIgnoreCase("C") && !$pos.equalsIgnoreCase("G"))
1392:                 	#set ($bool = $startingPlayers.add($node))
1393:                 #end
1394:             #end
1395: 		#end
1396: 		
1397: 		#printPlayerNodes($startingPlayers, $period)
1398:     #end ## starters
1399:     
1400:     #if ($type == 2) ## RESERVES
1401:    		#set ($gamePlayedNodes = $team.selectNodes("player[@gp='1']"))
1402: 		#set ($teamNodes = [])                    	 
1403:    		#set ($reservePlayers = [])    
1404: 	                 	                
1405: 		#foreach ($node in $gamePlayedNodes)
1406: 			#if ($node.valueOf("@name") == 'TEAM')
1407: 				#set ($bool = $teamNodes.add($node))
1408: 			#elseif ($node.valueOf("@gs") != '1')
1409: 				#set ($bool = $reservePlayers.add($node))
1410: 			#end
1411: 		#end
1412: 		
1413: 		#set ($bool = $reservePlayers.addAll($teamNodes))
1414: 		#printPlayerNodes($reservePlayers, $period)
1415: 	#end ## reserves
1416: #end ## print player stats
1417: 
1418: ## PRINT STATS TOTALS
1419: #macro (printStatTotals $team $period)
1420: 	#if ($period == 0)
1421: 		#set ($totalsNode = $teamNode.selectSingleNode("totals/stats"))
1422: 	#else
1423:         #if ($document.valueOf("bbgame/@source") == 'STAT CREW Basketball' && ${period} == 2 && ${periodRule} == 4)
1424:             #set ($pStat = 3)
1425:         #else
1426:             #set ($pStat = $period)
1427:         #end
1428: 		#set ($totalsNode = $document.selectSingleNode("bbgame/plays/period[@number='${pStat}']/summary[@vh='${vh}']"))
1429: 	#end
1430:     <tr class="totals">
1431:         <th scope="rowgroup" class="row-head pinned-col text">TOTALS</th>
1432:         <td>&nbsp;</td>
1433:         <td>#shooting($totalsNode.valueOf("@fgm") $totalsNode.valueOf("@fga"))</td>
1434:         <td>#shooting($totalsNode.valueOf("@fgm3") $totalsNode.valueOf("@fga3"))</td>
1435:         <td>#shooting($totalsNode.valueOf("@ftm") $totalsNode.valueOf("@fta"))</td>
1436:         <td>$totalsNode.valueOf("@oreb")</td>
1437:         <td>$totalsNode.valueOf("@dreb")</td>
1438:         <td>$totalsNode.valueOf("@treb")</td>
1439:         <td>$totalsNode.valueOf("@ast")</td>
1440:         <td>$totalsNode.valueOf("@stl")</td>
1441:         <td>$totalsNode.valueOf("@blk")</td>
1442:         <td>$totalsNode.valueOf("@to")</td>
1443:         <td>$totalsNode.valueOf("@pf")</td>
1444:         <td>#totalpoints($totalsNode.valueOf("@fgm") $totalsNode.valueOf("@fgm3") $totalsNode.valueOf("@ftm"))</td>
1445:     </tr>
1446:     <tr class="totals">
1447:         <td class="pinned-col">&nbsp;</td>
1448:         <td>&nbsp;</td>
1449:     	<td>#shotpercent($totalsNode.valueOf("@fgm") $totalsNode.valueOf("@fga"))</td>
1450:     	<td>#shotpercent($totalsNode.valueOf("@fgm3") $totalsNode.valueOf("@fga3"))</td>
1451:     	<td>#shotpercent($totalsNode.valueOf("@ftm") $totalsNode.valueOf("@fta"))</td>
1452:     	<td colspan="9">&nbsp;</td>
1453:     </tr>
1454: #end ## print stats totals
1455: 
1456: ## PRINT BOX SCORE
1457: #macro (printBoxScore $teamNode $period)
1458: 	#set ($teamName = $teamNode.valueOf("@name"))
1459: 	#set ($vh = $teamNode.valueOf("@vh"))
1460: 	#if ($vh == "V")
1461: 		#set ($teamClass = "visitor")
1462: 		#set ($teamLogo = $stats.visitorTeamLogo) 
1463: 	#else
1464: 		#set ($teamClass = "home")
1465:         #set ($teamLogo = $stats.homeTeamLogo) 		
1466: 	#end
1467: 	                
1468: 	## STATS BY PERIOD
1469: 	<div class="stats-wrap clearfix">
1470: 		#if ($stats.view != "pdf")
1471: 			<input class="radio" type="radio" id="${teamClass}-lineup-period${period}" name="team-lineup-period${period}" #if ($vh == "V") checked="checked" #end>
1472: 			<label class="label ${teamClass}" for="${teamClass}-lineup-period${period}">$teamName</label>
1473: 		#end
1474:         <div class="stats-box full lineup ${teamClass} clearfix">
1475:             <div class="scrollable">
1476:                 <div class="clearfix">
1477:                     <table>
1478:                         <caption class="caption">
1479:                     		<h2><span class="team-name">$teamName</span></h2>
1480:                         </caption>
1481: 						<thead>
1482:     						<tr>
1483:                                 <th scope="col" class="col-head pinned-col text">Player</th>
1484:                                 <th scope="col" class="col-head">MIN</th>
1485:                                 <th scope="col" class="col-head">FGM-A</th>
1486:                                 <th scope="col" class="col-head">3PM-A</th>
1487:                                 <th scope="col" class="col-head">FTM-A</th>
1488:                                 <th scope="col" class="col-head">OREB</th>
1489:                                 <th scope="col" class="col-head">DREB</th>
1490:                                 <th scope="col" class="col-head">REB</th>
1491:                                 <th scope="col" class="col-head">AST</th>
1492:                                 <th scope="col" class="col-head">STL</th>
1493:                                 <th scope="col" class="col-head">BLK</th>
1494:                                 <th scope="col" class="col-head">TO</th>
1495:                                 <th scope="col" class="col-head">PF</th>
1496:                                 <th scope="col" class="col-head">PTS</th>
1497:                             </tr>
1498: 						</thead>
1499: 						<tbody>
1500: 							<tr class="group-head">
1501: 								<th scope="rowgroup" class="row-head pinned-col text"><strong>STARTERS</strong></th>
1502: 								<td colspan="13">&nbsp;</td>
1503: 							</tr>
1504: 							#printPlayerStats($teamNode, 1, $period)
1505: 						</tbody>
1506: 						<tbody>
1507: 							<tr class="group-head">
1508: 								<th scope="rowgroup" class="row-head pinned-col text"><strong>RESERVES</strong></th>
1509: 								<td colspan="13">&nbsp;</td>
1510: 							</tr>
1511: 							#printPlayerStats($teamNode, 2, $period)           
1512: 						</tbody>
1513:                         #if ($hasPeriods)
1514: 							<tbody>
1515: 								#printStatTotals($teamNode, $period)
1516: 							</tbody>
1517:                         #end
1518:                     </table>
1519:                 </div>
1520:             </div>
1521:         </div>
1522: 	</div> ## stats-wrap
1523: #end ## print box score
1524: 
1525: ## PLAY BY PLAY
1526: #macro (printTabPlayByPlay)
1527:     <div class="stats-wrap clearfix">
1528:     #set ($vscore = 0)
1529:     #set ($hscore = 0)
1530:     #set ($score = "")
1531:     <div class="stats-box full">
1532: 		#if ($stats.view != "pdf")
1533: 		<div class="periods-links clearfix">
1534: 			<span class="label">Periods:</span>
1535: 			<ul>
1536: 			#foreach ($prd in $document.selectNodes("bbgame/plays/period"))
1537: 				<li><a href="#prd${prd.valueOf('@number')}">#printPeriodName($velocityCount, false, false, $periodRule)</a></li>
1538: 			#end
1539: 			</ul>
1540: 		</div>
1541: 		#end        
1542:         #foreach ($prd in $document.selectNodes("bbgame/plays/period"))
1543:         <table role="presentation">
1544:             <caption class="caption">
1545:                 <h2><span id="prd${prd.valueOf('@number')}">#printPeriodName($velocityCount, true, false, $periodRule)</span></h2>
1546:             </caption>	
1547:             #foreach ($play in $prd.selectNodes("play")) 
1548:             
1549:                 #set ($actionsMap = {
1550:                     "REBOUND": {    
1551:                         "DEF": "defensive rebound",
1552:                         "OFF": "offensive rebound",
1553:                         "DEADB": "deadball rebound"
1554:                     },
1555:                     
1556:                     "MISS": {
1557:                         "JUMPER": "missed jump shot",
1558:                         "3PTR": "missed 3-pt. jump shot",
1559:                         "2PTR": "missed 2-pt. field goal",
1560:                         "LAYUP": "missed layup",
1561:                         "FT": "missed free throw",
1562:                         "DUNK": "missed dunk",
1563:                         "TIPIN": "missed tip-in"
1564:                     },
1565:                     
1566:                     "GOOD": {
1567:                         "JUMPER": {"score": 2, "text": "made jump shot"},
1568:                         "3PTR": {"score": 3, "text": "made 3-pt. jump shot"},
1569:                         "2PTR": {"score": 2, "text": "made 2-pt. field goal"},
1570:                         "LAYUP": {"score": 2, "text": "made layup"},
1571:                         "FT": {"score": 1, "text": "made free throw"},
1572:                         "DUNK": {"score": 2, "text": "made dunk"},
1573:                         "TIPIN": {"score": 2, "text": "made tip-in"}
1574:                     },  
1575:                     
1576:                     "TURNOVER": "Turnover by",
1577:                     "STEAL": "Steal by",
1578:                     "ASSIST": "Assist by",
1579:                     "BLOCK": "Block by",
1580:                     "DEF PTS": "points (wrong basket by defense)",
1581:                 
1582:                     "FOUL": { 
1583:                         "TECH": "Technical Foul by", 
1584:                         "NONTECH": "Foul by" 
1585:                     }   
1586:                 })
1587:                 
1588:                 #set ($rowClass = "row")
1589:                 #set ($teamName = "")                
1590:                 #set ($playText = "")
1591:                 #set ($isVisitorPlay = $play.attributeValue('vh') == "V")
1592:                 #set ($isHomePlay = $play.attributeValue('vh') == "H")
1593:                 #set ($playerVal = $!play.attributeValue("checkname"))
1594:                 #set ($playAction = $play.attributeValue("action"))
1595:                 #set ($playType = $play.attributeValue("type"))
1596: 				
1597:                 #if($isVisitorPlay)
1598:                     #set ($rowClass = "row visitor")
1599:                     #set ($teamName = $visitorTeam)
1600:                 #else
1601:                     #set ($rowClass = "row home")
1602:                     #set ($teamName = $homeTeam)                                        
1603:                 #end
1604:                 
1605:                 #if ($actionsMap.containsKey($playAction))
1606:                     #set ($actionVal = $actionsMap.get($playAction))
1607:                     #if ($playAction.equals("FOUL"))
1608:                         #if ($playType && $actionVal.get($playType))
1609:                             #set ($playText = $actionVal.get($playType))
1610:                         #else
1611:                             #set ($playText = $actionVal.get("NONTECH"))
1612:                         #end
1613:                     #elseif ($playType && $actionVal.get($playType))
1614:                         #set ($actionVal = $actionVal.get($playType))
1615:                         #if ($actionVal.get("score"))
1616:                             #set ($playText = $actionVal.get("text"))
1617:                             #if ($isVisitorPlay)
1618:                                 #set ($vscore = $tool.math.add($vscore, $actionVal.get("score")))
1619:                             #else
1620:                                 #set ($hscore = $tool.math.add($hscore, $actionVal.get("score")))
1621:                             #end
1622:                         #else
1623:                             #set ($playText = $actionVal)
1624:                         #end
1625:                     #else
1626:                         #set ($playText = $actionVal)                
1627:                     #end
1628:                 #end
1629:                
1630:                 
1631:                 #if($!play.attributeValue('vscore') || $!play.attributeValue('hscore'))
1632:                 	#set ($rowClass = "${rowClass} score-changed")
1633:                     #if($isDakStats) ## keep running score for dakstats
1634:                         #set ($score = "<span class='v-score'>${vscore}</span><span class='sep'> - </span><span class='h-score'>${hscore}</span>") 
1635:                     #else
1636:                         #set ($score = "<span class='v-score'>$!play.attributeValue('vscore')</span><span class='sep'> - </span><span class='h-score'>$!play.attributeValue('hscore')</span>")
1637:                     #end                	
1638:                 #end
1639: 
1640:                 <tr class="$rowClass">
1641:                     <td class="time">$!play.attributeValue("time")</td>
1642:                     #if($isHomePlay) 
1643:                         <td class="play blank-cell">&nbsp;</td>
1644:                         <td class="score">$score</td>                         
1645:                     #end
1646:                     <td class="play">
1647:                         #if($isVisitorPlay && $stats.view != "pdf")   
1648:                         	<img src="$stats.visitorTeamLogo" alt="$visitorTeam" class="team-logo visitor" />                                          
1649:                         #end             
1650:                         <span class="text">                                                                        
1651:                             #if($!play.attributeValue("action") == "TIMEOUT")
1652:                                 <strong>$!play.attributeValue("type") $!play.attributeValue("action") by $teamName</strong>
1653: 
1654:                             #elseif ($!play.attributeValue("action") == "SUB") 
1655:                                 $playerVal
1656:                                 #if ($!play.attributeValue("type") == "IN") enters the game
1657:                                 #elseif ($!play.attributeValue("type") == "OUT") goes to the bench
1658:                                 #elseif ($!play.attributeValue("type") == "STARTER") will be starting
1659:                                 #end
1660: 
1661:                             #elseif ($!play.attributeValue("action") == "TURNOVER" ||
1662:                                 $!play.attributeValue("action") == "STEAL" ||
1663:                                 $!play.attributeValue("action") == "ASSIST" ||
1664:                                 $!play.attributeValue("action") == "FOUL" ||
1665:                                 $!play.attributeValue("action") == "BLOCK")
1666:                                 $playText $playerVal
1667:                             #else
1668:                                 ## PLAIN TEXT DESCRIPTIONS
1669:                                 $playerVal $playText
1670:                             #end 
1671:                          </span>  
1672:                         #if($isHomePlay && $stats.view != "pdf")   
1673:                             <img src="$stats.homeTeamLogo" alt="$homeTeam" class="team-logo home" />                                            
1674:                         #end                            
1675:                     </td>                      
1676:                     #if($isVisitorPlay) 
1677:                         <td class="score">$score</td>                         
1678:                         <td class="play blank-cell">&nbsp;</td>
1679:                     #end                        
1680:                 </tr> ## row
1681:             #end
1682:             #if ($stats.view != "pdf")
1683:                 <tr class="back-to-top"><td colspan="4"><a href="#pbp">back to top <span class="gicon-up"></span></a></td></tr>
1684:             #end
1685:             </table>
1686:         #end
1687:     </div>
1688: </div> ## stats-wrap
1689: #end ## print play by play
1690: 
1691: ## PRINT % GRAPH
1692: #macro (printPctGraph $made $attempts $label)
1693:     #set ($visMade = $visitorTotals.valueOf($made))
1694:     #set ($visAttempts = $visitorTotals.valueOf($attempts))  
1695:     #set ($homeMade = $homeTotals.valueOf($made))
1696:     #set ($homeAttempts = $homeTotals.valueOf($attempts))     
1697:     #set ($visBarVal = $tool.math.roundTo(1, $tool.math.mul($tool.math.div($visMade, $visAttempts), 100)))
1698:     #set ($homeBarVal = $tool.math.roundTo(1, $tool.math.mul($tool.math.div($homeMade, $homeAttempts), 100)))
1699:     
1700:     #if ($visBarVal && $homeBarVal)
1701:         <div class="stat-graph">
1702:             <div class="graph-label">$label</div>
1703:             <div class="team">$visitorTeam</div>                
1704:             <div class="stat-bar vis">
1705:                 <div class="stat">$visBarVal%</div>
1706:                 <div class="bar"><div style="max-width:${visBarVal}%"></div></div>
1707:             </div>
1708:             <div class="stat-bar home">
1709:                 <div class="stat">$homeBarVal%</div>
1710:                 <div class="bar"><div style="max-width:${homeBarVal}%"></div></div>                   
1711:             </div>      
1712:             <div class="team">$homeTeam</div>                 
1713:         </div>  
1714:     #end
1715: #end
1716: 
1717: #macro (printPointsGraph $cat $label) 
1718:     #set ($visVal = $tool.math.toInteger($visitorTotals.valueOf($cat)))
1719:     #set ($homeVal = $tool.math.toInteger($homeTotals.valueOf($cat)))
1720:     
1721:     #if ($visVal > $homeVal)
1722:         #set ($visBarVal = 100)
1723:         #set ($homeBarVal = $tool.math.mul($tool.math.div($homeVal, $visVal), 100))
1724:     #elseif ($homeVal > $visVal) 
1725:         #set ($visBarVal = $tool.math.mul($tool.math.div($visVal, $homeVal), 100))
1726:         #set ($homeBarVal = 100)
1727:     #end   
1728:     
1729:     #if ($visBarVal && $homeBarVal)
1730:         <div class="stat-graph">
1731:             <div class="graph-label">$label</div>
1732:             <div class="team">$visitorTeam</div>                
1733:             <div class="stat-bar vis">
1734:                 <div class="stat">$visVal</div>
1735:                 <div class="bar"><div style="max-width:${visBarVal}%"></div></div>
1736:             </div>
1737:             <div class="stat-bar home">
1738:                 <div class="stat">$homeVal</div>
1739:                 <div class="bar"><div style="max-width:${homeBarVal}%"></div></div>                   
1740:             </div>      
1741:             <div class="team">$homeTeam</div>                 
1742:         </div>
1743:     #end
1744: #end ## print graph
1745: 
1746: ## TEAM SUMMARY STATISTICS
1747: #macro (printTeamStats)
1748:     #macro (printSpecials $l $a)
1749:         #set ($hv = $homeTotals.valueOf($a))
1750:         #set ($vv = $visitorTotals.valueOf($a))
1751:         #if ($hv.length() > 0 && $vv.length() > 0)
1752:         <tr>
1753:             <th class="row-head text" scope="row">$l</th>                        
1754:             <td>$vv</td>
1755:             <td>$hv</td>
1756:         </tr>
1757:         #end
1758:     #end
1759:     <div class="stats-wrap clearfix">
1760:         <div class="stats-box half">
1761:             <table>
1762:             	<caption class="caption offscreen"><h2>Team Statistics</h2></caption>
1763:                 <tr>
1764:                     <th class="col-head" scope="col"><span class="offscreen">Stat</span></th>                            
1765:                     <th class="col-head" scope="col">$visitorTeam</th>
1766:                     <th class="col-head" scope="col">$homeTeam</th>
1767:                 </tr>
1768: 
1769:                 <tr>
1770:                     <th class="row-head text" scope="row">Field Goal</th>                            
1771:                     <td>#shooting($visitorTotals.valueOf("stats/@fgm") $visitorTotals.valueOf("stats/@fga"))</td>
1772:                     <td>#shooting($homeTotals.valueOf("stats/@fgm") $homeTotals.valueOf("stats/@fga"))</td>
1773:                 </tr>
1774:                 
1775:                 <tr>
1776:                     <th class="row-head text" scope="row">Field Goal %</th>                            
1777:                     <td>#shotpercent($visitorTotals.valueOf("stats/@fgm") $visitorTotals.valueOf("stats/@fga"))</td>
1778:                     <td>#shotpercent($homeTotals.valueOf("stats/@fgm") $homeTotals.valueOf("stats/@fga"))</td>
1779:                 </tr>
1780: 
1781: 
1782:                 <tr>
1783:                     <th class="row-head text" scope="row">3 Point</th>                            
1784:                     <td>#shooting($visitorTotals.valueOf("stats/@fgm3") $visitorTotals.valueOf("stats/@fga3"))</td>
1785:                     <td>#shooting($homeTotals.valueOf("stats/@fgm3") $homeTotals.valueOf("stats/@fga3"))</td>
1786:                 </tr>
1787: 
1788:                 <tr>
1789:                     <th class="row-head text" scope="row">3 Point %</th>                            
1790:                     <td>#shotpercent($visitorTotals.valueOf("stats/@fgm3") $visitorTotals.valueOf("stats/@fga3"))</td>
1791:                     <td>#shotpercent($homeTotals.valueOf("stats/@fgm3") $homeTotals.valueOf("stats/@fga3"))</td>
1792:                 </tr>
1793: 
1794:                 <tr>
1795:                     <th class="row-head text" scope="row">Free Throw</th>                            
1796:                     <td>#shooting($visitorTotals.valueOf("stats/@ftm") $visitorTotals.valueOf("stats/@fta"))</td>
1797:                     <td>#shooting($homeTotals.valueOf("stats/@ftm") $homeTotals.valueOf("stats/@fta"))</td>
1798:                 </tr>
1799: 
1800:                 <tr>
1801:                     <th class="row-head text" scope="row">Free Throw %</th>                            
1802:                     <td>#shotpercent($visitorTotals.valueOf("stats/@ftm") $visitorTotals.valueOf("stats/@fta"))</td>
1803:                     <td>#shotpercent($homeTotals.valueOf("stats/@ftm") $homeTotals.valueOf("stats/@fta"))</td>
1804:                 </tr>
1805: 
1806: 
1807:                 <tr>
1808:                     <th class="row-head text" scope="row">Rebounds</th>                            
1809:                     <td>$visitorTotals.valueOf("stats/@treb")</td>
1810:                     <td>$homeTotals.valueOf("stats/@treb")</td>
1811:                 </tr>
1812: 
1813:                 <tr>
1814:                     <th class="row-head text" scope="row">Assists</th>                            
1815:                     <td>$visitorTotals.valueOf("stats/@ast")</td>
1816:                     <td>$homeTotals.valueOf("stats/@ast")</td>
1817:                 </tr>
1818: 
1819:                 <tr>
1820:                     <th class="row-head text" scope="row">Turnovers</th>                            
1821:                     <td>$!visitorTotals.valueOf("stats/@to")</td>
1822:                     <td>$!homeTotals.valueOf("stats/@to")</td>
1823:                 </tr>
1824: 
1825:                 #printSpecials("Points off Turnovers", "special/@pts_to")
1826:                 #printSpecials("2nd Chance Points", "special/@pts_ch2")
1827:                 #printSpecials("Points in the Paint", "special/@pts_paint")
1828:                 #printSpecials("Fastbreak Points", "special/@pts_fastb")
1829:                 #printSpecials("Bench Points", "special/@pts_bench")
1830:                 #printSpecials("Largest Lead", "special/@large_lead")
1831:                 #printSpecials("Time of Largest Lead", "special/@large_lead_t")
1832: 
1833:                 #if ($hasPeriods)
1834:                     <tr>
1835:                     	<th class="row-head text" scope="row">Trends</th> 
1836:                         <td colspan="2">
1837:                             Ties: $tool.math.add($!visitorTotals.valueOf("special/@ties"),$!homeTotals.valueOf("special/@ties"));
1838:                             Lead Changes: $tool.math.add($!visitorTotals.valueOf("special/@leads"),$!homeTotals.valueOf("special/@leads"))
1839:                         </td>
1840:                     </tr>
1841:                 #end
1842:             </table>
1843:         </div>
1844:         
1845:         #if ($stats.view != "pdf")
1846:             ## TEAM STATS BAR GRAPHS
1847:             <div class="stats-box half">
1848:                 <div class="stat-graphs">
1849:                     #printPctGraph("stats/@fgm", "stats/@fga", "Field Goals %")
1850:                     #printPctGraph("stats/@fgm3", "stats/@fga3", "3 Point %")            
1851:                     #printPointsGraph("stats/@treb", "Rebounds")
1852:                     #printPointsGraph("stats/@to", "Turnovers")                
1853:                 </div>
1854:             </div>
1855:         #end
1856:     </div> ## stats-wrap
1857: #end ## print team stats
1858: 
1859: ## Game Information
1860: #macro (printGameInfo)
1861:     #set ($officials = $document.valueOf("bbgame/venue/officials/@text"))
1862:     #set ($attendance = $document.valueOf("bbgame/venue/@attend"))
1863:     #set ($time = $document.valueOf("bbgame/venue/@time"))
1864:     #set ($foulsV = $visitorTotals.valueOf("stats/@tf"))
1865:     #set ($foulsH = $homeTotals.valueOf("stats/@tf"))
1866:     #if ($tool.math.toInteger($foulsV) == 0)
1867:     	#set ($foulsV = "None")
1868:     #end
1869: 	#if ($tool.math.toInteger($foulsH) == 0)
1870: 		#set ($foulsH = "None")
1871: 	#end           
1872: 		          
1873:     <div class="stats-wrap clearfix">
1874:         <div class="stats-box half">                   
1875:         	<table>
1876:         		<caption class="caption"><h2>Game Information</h2></caption>
1877:         		#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
1878:                 #if ($location.length() > 0)<tr><th class="row-head text" scope="row">Location: </th><td class="text">$location</td></tr>#end
1879:             	<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>
1880:             	#if ($officials.length() > 0)<tr><th class="row-head text" scope="row">Officials: </th><td class="text">$officials</td></tr>#end 
1881:             	#if ($tool.math.toInteger($attendance) > 0)<tr><th class="row-head text" scope="row">Attendance: </th><td class="text">$attendance</td></tr>#end
1882:             </table>
1883:         </div>
1884:     </div>                
1885: #end ## print game info
1886: 
1887: <head>
1888:     <title>$visname #if ($isNeutralGame) vs. #else at #end $homename | Box Score #if ($date.length() > 0) | $date #end</title>
1889:     #if ($stats.inProgress)
1890:         <meta http-equiv="refresh" content="60" />
1891:     #end
1892:     #if ($stats.view == "pdf")
1893:         #include("statcrew-pdf-css-template")
1894:     #end
1895: </head>
1896: 
1897: #if ($stats.view == "pdf")
1898:     
1899: <div class='footer-left'>$visname vs. $homename</div>
1900: <div class='footer-right'><span id="pagenumber"></span> of <span id="pagecount"></span></div>		    
1901: <div class="stats-wrapper">
1902: 	#printPdfHeader("Box score")
1903: 	#parse("bbxml-monospace-template")
1904: 	#if ($hasPeriods)
1905: 		<p class="pagebreak">&nbsp;</p>
1906: 		#printPdfHeader("Play by Play")
1907: 		<div class="stats-fullbox">#printTabPlayByPlay()</div>
1908: 	#end
1909: 	#if ($hasTotals)
1910: 		<p class="pagebreak">&nbsp;</p>
1911: 		#printPdfHeader("Team Summary")
1912: 		<div class="stats-fullbox">#printTeamStats</div>
1913: 	#end
1914: 	#foreach ($p in [1..$tabPeriodRule])
1915: 		<p class="pagebreak">&nbsp;</p>
1916: 		#set ($title = "#printPeriodName($p, true, true, $tabPeriodRule) Box")
1917: 		#printPdfHeader($title)
1918: 		<div class="stats-fullbox">#printBoxScore($visitor $p)</div>
1919: 		<div class="stats-fullbox">#printBoxScore($home $p)</div>
1920: 	#end                
1921: </div> ## stats-wrapper               
1922: 
1923: #else
1924: ## FULL BOXSCORE
1925: 
1926: #if ($showWiki == true)
1927: 	$!wiki.su
1928: #end
1929: 
1930: <article class="game-boxscore bkb clearfix">	
1931: 	
1932: 	## BOX SCORE HEADER
1933: 	<div class="head">
1934: 	    <h1>$visitorTeam #if ($isNeutralGame) vs. #else at #end $homeTeam #if ($dateVal.length() > 0)<span>$formatter.formatLongDate($date)</span>#end</h1>
1935: 
1936:         #set ($visClass = "")
1937:         #set ($homeClass = "")	    
1938: 	    #if ($visScore && $homeScore)
1939:             #if ($visScore > $homeScore)
1940:                 #set ($visClass = "winner")
1941:                 #set ($homeClass = "loser")
1942:             #elseif ($homeScore > $visScore)
1943:                 #set ($visClass = "loser")
1944:                 #set ($homeClass = "winner")
1945:             #end
1946: 	    #end
1947: 	    
1948: 	    <div class="teams clearfix">
1949:     		<div class="team visitor ${visClass} clearfix">                		        		
1950:     			<div class="team-logo"><img src="$stats.visitorTeamLogo" alt="" /></div>
1951:     			#if ($visitor.valueOf("@record").length() > 0)<span class="team-record">($visitor.valueOf("@record"))</span>#end
1952:     			#if ($visScore)<div class="team-score visitor">$visScore</div>#end
1953:     		</div>
1954:     		<div class="team home ${homeClass} clearfix">                                
1955:     			<div class="team-logo"><img src="$stats.homeTeamLogo" alt="" /></div>
1956:     			#if ($home.valueOf("@record").length() > 0)<span class="team-record">($home.valueOf("@record"))</span>#end
1957:                 #if ($homeScore)<div class="team-score home">$homeScore</div>#end    			    
1958:     		</div>  
1959:     	
1960:     		## Mini boxscore
1961:     		<div class="linescore">
1962:     		<table>
1963:     			<tr>
1964:     				<th scope="col" class="col-head text">
1965:     					#if ($stats.final)
1966:     						Final
1967:     					#else
1968:     						#if ($inProgressPrd.length() > 0 && $inProgressClock.length() > 0)
1969:     							#printPeriodName($inProgressPrd, true, false, $tabPeriodRule) - $inProgressClock
1970:     						#end
1971:     					#end
1972:     				</th>
1973:     				#foreach ($period in $periodRange)
1974:     				#set ($overtimePeriod = 0)
1975:     					#if ($velocityCount > $periodRule)
1976:     						<th scope="col" class="col-head score">#printPeriodName($velocityCount, true, false, $tabPeriodRule)</th>
1977:     					#else
1978:     						<th scope="col" class="col-head score">$period</th>
1979:     					#end
1980:     				#end
1981:     				<th scope="col" class="col-head score total" aria-label="Total">T</th>
1982:     			</tr>
1983:     
1984:     			## TEAM SCORES
1985:     			#foreach ($team in $document.selectNodes("bbgame/team"))
1986:     			<tr #if($velocityCount == 1) class="$visClass" #else class="$homeClass" #end>
1987:     				<th scope="row" class="name row-head text">#showTeam($team)</th>
1988:     				#foreach ($period in $periodRange)
1989:     					<td class="score">$team.valueOf("linescore/lineprd[$period]/@score")</td>
1990:     				#end
1991:     				<td class="score total">$team.valueOf("linescore/@score")</td>
1992:     			</tr>
1993:     			#end
1994:     		</table>
1995:     		</div> ## mini boxscore   
1996: 		</div> ## teams 
1997: 	</div> ## head
1998: 
1999: 	## TABS
2000: 	#if ($hasPeriods || $hasTotals)
2001: 		<div class="tab-container primary clearfix" data-module="stats/tabs" data-type="primary">
2002: 			<div class="tab-nav" data-module="jscroll" data-momentum="false">
2003: 			<div class="clearfix">
2004: 				<ul class="clearfix">
2005: 					<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>
2006: 					#if ($hasPeriods)
2007: 						<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>
2008: 					#end
2009: 					<li #if ($stats.view == "teamstats")class="active"#end><a href="${stats.pageUrl}${paramSep}view=teamstats" data-view="teamstats">Team Stats</a></li>
2010: 					
2011: 					#foreach ($p in [1..$tabPeriodRule])
2012: 					    #if ($home.selectNodes("player/statsbyprd[@prd='${p}']").size() > 0)
2013: 					        <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, $tabPeriodRule)</a></li>
2014: 						#end
2015: 					#end
2016: 					
2017: 					<li data-skip="true"><a href="${stats.pageUrl}${paramSep}tmpl=bbxml-monospace-template" target="_blank">Coach's View</a></li>
2018: 				</ul>
2019: 			</div>
2020: 			</div>
2021: 			<div class="tab-panels">
2022: 
2023: 			## FULL BOX SCORE
2024: 			#set ($class = "tab-panel clearfix")
2025: 			#if (!($stats.view.length() > 0) || $stats.view == "boxscore")
2026: 				#set ($class = "tab-panel active clearfix")
2027: 			#end
2028: 			<section class="${class}">
2029: 				<h1 class="offscreen">Box Score</h1>
2030: 				<div class="player-stats">
2031: 					#printBoxScore($visitor 0)
2032: 					#printBoxScore($home 0)	
2033: 				</div>		
2034: 				<div class="game-info">
2035: 					#printGameInfo		
2036: 				</div>				
2037: 			</section>
2038: 
2039: 			## PAY BY PLAY
2040: 			#if ($hasPeriods)
2041: 				#set ($class = "tab-panel clearfix")
2042: 				#if ($stats.view == "plays")
2043: 					#set ($class = "tab-panel active clearfix")
2044: 				#end
2045: 				<section class="${class}">
2046: 				<h1 class="offscreen">Play By Play</h1>
2047: 					<div class="plays">
2048: 						#printTabPlayByPlay
2049: 					</div>
2050: 				</section>
2051: 			#end
2052: 
2053: 			## TEAM STATS
2054:             #set ($class = "tab-panel clearfix")
2055:             #if ($stats.view == "teamstats")
2056:                 #set ($class = "tab-panel active clearfix")
2057:             #end
2058:             <section class="${class}">
2059:             <h1 class="offscreen">Team Stats</h1>
2060:                 <div class="team-stats">
2061:                     #printTeamStats
2062:                 </div>
2063:             </section>			
2064: 
2065: 			## PERIODS BOXSCORE
2066: 			#foreach ($period in [1..$periodRule])
2067: 			    #if ($home.selectNodes("player/statsbyprd[@prd='${period}']").size() > 0)
2068:     				#set ($class = "tab-panel clearfix")
2069:     				#if ($stats.view == "period${period}")
2070:     					#set ($class = "tab-panel active clearfix")
2071:     				#end
2072:     				<section class="${class}">
2073:     					<h1 class="offscreen">Period${period} Box Score</h1>
2074:     					<div class="player-stats">
2075:     						#printBoxScore($visitor $period)
2076:     						#printBoxScore($home $period)
2077:     					</div>
2078:     				</section>
2079: 				#end 
2080: 			#end
2081: 			</div>
2082: 		</div>
2083: 	#end
2084: </article> ## game-boxscore
2085: #end ## pdf check 
2086: 
2087: #set ($showWiki = true)
2088: #set ($showWiki = $showWikiVar)
2089: 
2090: #if ($showWiki == true)
2091:     $!wiki.su
2092: #end
2093: #end ## pt check