" /> Pacific Westestern Athletic Association

CBC

Camosun

Sun, Jan. 12, 2020
3:00 PM PST

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


Overview

CBC

Team Record Conf. Record Last Game
0-2 0-2 L, 3-2 vs. UFV

Camosun

Team Record Conf. Record Last Game
2-0 2-0 W, 3-2 at VIU

Team Comparison

Kills/set

8.00
11.63

Hitting Pct.

.173
.298

Aces/set

2.13
0.88

Digs/set

7.50
8.88

Blocks/set

1.50
1.13
CBC (based on 2 games)
Camosun (based on 2 games)

Key Contributors


Kills

Noah Bouius
2130
Vitor Pereira
Jakob Boschmann
1425
Eduardo Bida

Hitting Pct.

There was a problem with a Velocity script
Pagestatcrew-vbxml-template
ErrorError invoking method 'get(java.lang.Integer)' in java.util.ArrayList at statcrew-vbxml-template[line 380, column 90]
Page source:
1: #if ($stats.view == 'pt')
2: ##    #set ($pregame = true)
3: ##    #set ($startTime = '2014-11-25 07:00:00.000000 PM')
4: 
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:     #if ($location != '')
16:         #set ($neutral = true)
17:     #else
18:         #set ($neutral = false)
19:     #end
20:     #if ($document.getRootElement().valueOf("primetime/@videoProvider").length() > 0 && $document.getRootElement().valueOf("primetime/@videoProvider") != "none")
21:         #set ($hasVideo = true)
22:     #end
23:     #if ($request.getParameter("paused") == 'y')
24:         #set ($paused = true)
25:     #else
26:         #set ($paused = false)
27:     #end
28: 
29:     #if ($pregame)
30:         #set ($visitorTeamId = $document.getRootElement().valueOf("team[@vh='V']/@teamId"))
31:         #set ($homeTeamId = $document.getRootElement().valueOf("team[@vh='H']/@teamId"))
32: 
33:         #if ($!options.get("primetime_preview_hide").equalsIgnoreCase("hide"))
34:             #set ($shouldStatsShow = false)
35:         #else
36:             #set ($shouldStatsShow = $preview.shouldStatsShow($homeTeamId,$visitorTeamId))
37:         #end
38:     #end
39: 
40:     <head>
41:         <script type="text/javascript" src='$website.cdn("/info/jquery-2.1.1.js")'></script>
42:         <script type="text/javascript" src='$website.cdn("/info/notifications/jquery.noty.packaged.min.js")'></script>
43:         <script type="text/javascript" src='$website.cdn("/info/dataTables/js/jquery.dataTables.js")'></script>
44:         <script type="text/javascript" src='$website.cdn("/info/momentjs/moment.js")'></script>
45:         <script type="text/javascript" src='$website.cdn("/info/primetime3/js/full_screen_api.js")'></script>
46:         <script type="text/javascript" src='$website.cdn("/info/primetime3/js/flipclock.min.js")'></script>
47: 
48:         $website.addCss($website.cdn("/info/dataTables/css/jquery.dataTables.css"))
49:         $website.addCss($website.cdn("/info/primetime3/css/flipclock.css"))
50: 
51:         <script type="text/javascript" src="/info/primetime3/js/pt3-embed.js"></script>
52: 
53:         <script type="text/javascript">var jQuery_2_1 = $.noConflict(true);</script>
54:         <script type="text/javascript" src="/info/primetime3/js/add-ons.js"></script>
55:         <script type="text/javascript" src="/info/primetime3/js/pt3-util.js"></script>
56: 
57:         <script src="/info/primetime3/js/highcharts.js"></script>
58:         <script src="/info/primetime3/js/highcharts-more.js"></script>
59:         <script src="/info/primetime3/js/solid-gauge.js"></script>
60: 
61:         <script type="text/javascript" src="/info/primetime3/js/pt3-preview-charts.js"></script>
62: 
63:         $website.addCss("/info/primetime3/css/pt3-styles.css")
64: 
65:         $website.addCss("/info/primetime3/css/pt3-responsive.css")
66: 
67:         <script type="text/javascript" src="/info/primetime3/js/restive.js"></script>
68:         <script type="text/javascript" src="/info/primetime3/js/pt3-restive.js"></script>
69: 
70:         <script type="text/javascript">
71:             var conf = new Object();
72:             conf.locale = '${locale}';
73:             conf.videoProvider = '${videoProvider}';
74:             conf.videoId = '${videoId}';
75:             conf.eventId = '$document.getRootElement().valueOf("network/@eventId")';
76:             conf.eventIdHashCode = '$eventIdHashCode';
77:             conf.visitorTeamLogo = '$stats.visitorTeamLogo';
78:             conf.homeTeamLogo = '$stats.homeTeamLogo';
79:             conf.visitorTeamColor = '#121212';
80:             conf.homeTeamColor = '#6D6D6D';
81:             conf.startTime = '$startTime';
82:             conf.pregame = $pregame;
83:             conf.tba = $tba;
84:             conf.localDate = '$localDate';
85:             conf.localTime = '$localTime';
86:             conf.visitor = '${tool.esc.javascript($document.getRootElement().valueOf("team[@vh='V']/@name"))}';
87:             conf.home = '${tool.esc.javascript($document.getRootElement().valueOf("team[@vh='H']/@name"))}';
88:             conf.currentDate = new Date();
89:             conf.statusFinal = $stats.final;
90:             conf.neutral = $neutral;
91:             conf.paused = $paused;
92: 
93:             conf.visitorTeamLighterColor = $.fn.increase_brightness(conf.visitorTeamColor, 30);
94:             conf.homeTeamLighterColor = $.fn.increase_brightness(conf.homeTeamColor, 30);
95:         </script>
96: 
97:         <script type="text/javascript" src="/info/primetime3/js/pt3-boxscore-client.js"></script>
98:         <script type="text/javascript" src="/info/primetime3/js/pt3-volleyball-template.js"></script>
99:     </head>
100: 
101:     #if ($pregame && !$shouldStatsShow)
102:         <div id="primetime-wrapper" class="primetime-pre-game clearfix">
103:             <div class="primetime-overflow clearfix">
104:                 <div id="primetime-header" class="grid-row">
105:                     <div class="grid-col grid-col-hdr">
106: 
107:                         <div class="pt-header clearfix">
108:                             <div class="pt-team pt-team-away visitor-team-color" style="background: $document.getRootElement().valueOf("team[@vh='V']/@color")">
109:                                 <img src="$stats.visitorTeamLogo" alt="" class="team-logo visitor-team-logo" />
110:                                 <h3 class="team-name visitor-team-name">$document.getRootElement().valueOf("team[@vh='V']/@name")</h3>
111:                             </div>
112: 
113:                             <div class="pt-team pt-team-home home-team-color" style="background: $document.getRootElement().valueOf("team[@vh='H']/@color")">
114:                                 <img src="$stats.homeTeamLogo" alt="" class="team-logo home-team-logo" />
115:                                 <h3 class="team-name home-team-name">$document.getRootElement().valueOf("team[@vh='H']/@name")</h3>
116:                             </div>
117: 
118:                             <div class="pt-match-scoreboard clearfix">
119:                                 <div class="pt-mtach-info pt-pregame">
120:                                     <center>
121:                                         <div>
122:                                             $localDate <br>
123:                                             #if ($tba)
124:                                                 TBA
125:                                             #else
126:                                                 $localTime
127:                                             #end
128:                                         </div>
129:                                     </center>
130:                                 </div>
131:                             </div>
132:                         </div>
133:                     </div>
134:                 </div>
135:                 <div class="grid-row-container clearfix">
136:                     <div class="grid-row">
137:                         <div class="content">
138:                             <div class="pt-last-play clearfix" style="display: none">
139:                                     <span class="pt-label clearfix" style="text-align: center !important; width: 100% ">
140:                                         This event doesn't have a set start time, but PrimeTime will be available once the event begins.
141:                                     </span>
142:                             </div>
143:                             <div class="text">
144:                                 <h3>
145:                                     Live statistics will be available at the start of the event in:
146:                                 </h3>
147:                                 <center>
148:                                     <div class="clock"></div><br/>
149:                                     #if ($tba)
150:                                         Days
151:                                     #end
152:                                 </center>
153:                             </div>
154:                         </div>
155:                     </div>
156:                     <div class="pt-game-info grid-row clearfix">
157:                         <div class="pt-tabs-panes clearfix">
158:                             <div id="stats-tabs" class="pt-tabs-pane clearfix">
159:                                 <div id="divGameInformation" class="grid-row">
160:                                     <div class="grid-col grid-col-gi grid-col1">
161:                                         <h3 class="grid-title">
162:                                             Game Information
163:                                         </h3>
164:                                         <div class="grid-content clearfix">
165:                                             <div class="pt-game-information clearfix">
166:                                                 <div class="pt-row clearfix">
167:                                                     <center>
168:                                                         <div class="game-location pt-col">
169:                                                             <span class="date">
170:                                                                 $localDate<br />
171:                                                                 #if ($tba)
172:                                                                     TBA
173:                                                                 #else
174:                                                                     $localTime
175:                                                                 #end
176:                                                             </span>
177:                                                             <h3>Date & Time</h3>
178:                                                         </div>
179:                                                         #if ($location != '')
180:                                                             <div class="game-venue pt-col">
181:                                                             <span class="venue">
182:                                                                 $location<br />
183:                                                                 (Neutral)
184:                                                             </span>
185:                                                                 <h3>Location</h3>
186:                                                             </div>
187:                                                         #end
188:                                                     </center>
189:                                                 </div>
190:                                             </div>
191:                                         </div>
192:                                     </div>
193:                                 </div>
194:                             </div>
195:                         </div>
196:                     </div>
197:                 </div>
198: 
199:                 <div id="primetime-footer" class="grid-row">
200:                     <div class="grid-col grid-col-ftr">
201:                         <a href="/"><img src="/info/primetime3/images/presto-logo.png" alt="prestosports website" /></a>
202:                     </div>
203:                 </div>
204:             </div>
205:         ## GENERAL INFORMATION
206:         </div>
207:     #elseif ($pregame && $shouldStatsShow)
208:         #set ($visitorTeamId = $document.getRootElement().valueOf("team[@vh='V']/@teamId"))
209:         #set ($homeTeamId = $document.getRootElement().valueOf("team[@vh='H']/@teamId"))
210: 
211:         #set ($teamStats = ["kps", "hpt", "saps", "dps", "bps"])
212:         #set ($teamStatsLabels = {"kps": "Kills/set", "hpt": "Hitting Pct.", "saps": "Aces/set", "dps": "Digs/set", "bps":"Blocks/set"})
213:         #set ($topStats = ["k", "hpt", "sa", "d", "bt"])
214: 
215:         #set ($visitorStats = $preview.getTeam($visitorTeamId).setTeamStats($teamStats).setTopStats($topStats).calculate())
216:         #set ($homeStats = $preview.getTeam($homeTeamId).setTeamStats($teamStats).setTopStats($topStats).calculate())
217: 
218:         <div id="primetime-wrapper" class="primetime-pre-game primetime-volleyball clearfix">
219:             <div class="primetime-overflow clearfix">
220:                 <div id="primetime-header" class="grid-row">
221:                     <div class="grid-col grid-col-hdr">
222:                         <div class="pt-header clearfix">
223:                             <div class="pt-team pt-team-away visitor-team-color" style="background: $document.getRootElement().valueOf("team[@vh='V']/@color")">
224:                                 <img src="$stats.visitorTeamLogo" alt="" class="team-logo visitor-team-logo" />
225:                                 <h3 class="team-name visitor-team-name">$document.getRootElement().valueOf("team[@vh='V']/@name")</h3>
226:                             </div>
227: 
228:                             <div class="pt-team pt-team-home home-team-color" style="background: $document.getRootElement().valueOf("team[@vh='H']/@color")">
229:                                 <img src="$stats.homeTeamLogo" alt="" class="team-logo home-team-logo" />
230:                                 <h3 class="team-name home-team-name">$document.getRootElement().valueOf("team[@vh='H']/@name")</h3>
231:                             </div>
232: 
233:                             <div class="pt-match-scoreboard clearfix">
234:                                 <div class="pt-mtach-info pt-pregame">
235:                                     <center>
236:                                         <div>
237:                                             $localDate <br>
238:                                             #if ($tba)
239:                                                 TBA
240:                                             #else
241:                                                 $localTime
242:                                             #end
243:                                         </div>
244:                                     </center>
245:                                 </div>
246:                             </div>
247:                         </div>
248:                     </div>
249:                 </div>
250:                 <div class="grid-row-container clearfix">
251:                     <div class="grid-row preview">
252:                         <div class="content">
253:                             <div class="pt-last-play clearfix" style="display: none">
254:                                     <span class="pt-label clearfix" style="text-align: center !important; width: 100% ">
255:                                         This event doesn't have a set start time, but PrimeTime will be available once the event begins.
256:                                     </span>
257:                             </div>
258:                             <div class="text">
259:                                 <h3>
260:                                     Live statistics will be available at the start of the event in:
261:                                 </h3>
262:                                 <center>
263:                                     <div class="clock"></div><br/>
264:                                     #if ($tba)
265:                                         Days
266:                                     #end
267:                                 </center>
268:                             </div>
269:                         </div>
270:                     </div>
271: 
272:                     <!-- Team Overview -->
273:                     <div class="grid-row pt-overview">
274:                         <h2>Overview</h2>
275:                         <div class="grid-col grid-col-e grid-col2 background-black">
276:                             <h3>$document.getRootElement().valueOf("team[@vh='V']/@name")</h3>
277:                             <div class="container clearfix pt-live-action">
278:                                 <table>
279:                                     <thead>
280:                                     <tr>
281:                                         <th>Team Record</th>
282:                                         <th>Conf. Record</th>
283:                                         <th>Last Game</th>
284:                                     </tr>
285:                                     </thead>
286:                                     <tbody>
287:                                     <tr>
288:                                         <td>${visitorStats.overallRecord}</td>
289:                                         <td>${visitorStats.conferenceRecord}</td>
290:                                         <td style="text-align: center">
291:                                             ${visitorStats.lastGame.APResult}
292:                                             <span>
293:                                                 #if ($visitorStats.lastGame.neutralSite.length() > 0 || $visitorStats.lastGame.home)
294:                                                     vs.
295:                                                 #else
296:                                                     at
297:                                                 #end
298:                                                 ${visitorStats.lastGame.opponent.name}
299:                                             </span>
300:                                         </td>
301:                                     </tr>
302:                                     </tbody>
303:                                 </table>
304:                             </div>
305:                             <br />
306:                         </div>
307:                         <div class="grid-col grid-col-e grid-col2 background-gray">
308:                             <h3>$document.getRootElement().valueOf("team[@vh='H']/@name")</h3>
309:                             <div class="pt-live-action">
310:                                 <table>
311:                                     <thead>
312:                                     <tr>
313:                                         <th>Team Record</th>
314:                                         <th>Conf. Record</th>
315:                                         <th>Last Game</th>
316:                                     </tr>
317:                                     </thead>
318:                                     <tbody>
319:                                     <tr>
320:                                         <td>${homeStats.overallRecord}</td>
321:                                         <td>${homeStats.conferenceRecord}</td>
322:                                         <td style="text-align: center">
323:                                             ${homeStats.lastGame.APResult}
324:                                             <span>
325:                                                 #if ($homeStats.lastGame.neutralSite.length() > 0 || $homeStats.lastGame.home)
326:                                                     vs.
327:                                                 #else
328:                                                     at
329:                                                 #end
330:                                                 ${homeStats.lastGame.opponent.name}
331:                                             </span>
332:                                         </td>
333:                                     </tr>
334:                                     </tbody>
335:                                 </table>
336:                             </div>
337:                             <br />
338:                         </div>
339:                     </div>
340: 
341:                     <!-- Team Comaprison -->
342:                     <div class="grid-row">
343:                         <div class="grid-col team-compare">
344:                             <h2>Team Comparison</h2>
345: 
346:                             <div class="charts-line">
347:                                 <div class="charts-inner">
348:                                     #foreach ($key in $teamStats)
349:                                         <div class="chart-container">
350:                                             <h3>${teamStatsLabels[$key]}</h3>
351:                                             <div class="stats-chart ts-$key"></div>
352:                                             <div class="stats-values">
353:                                                 <div class="stats-value visitor">${formatter.formatNumber($visitorStats.teamStats[$key], $formats.get($key))}</div>
354:                                                 <div class="stats-value home">${formatter.formatNumber($homeStats.teamStats[$key], $formats.get($key))}</div>
355:                                             </div>
356:                                         </div>
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: 
368:                     <!-- Key Contributors -->
369:                     <div class="grid-row">
370:                         <div class="grid-col grid-col1 game-leaders grid-col">
371:                             <h2>Key Contributors</h2>
372:                             #macro (gameLeaders $category $label $visitorPlayers $homePlayers $quantityPlayers $displayFormat)
373:                                 #set ($quantityPlayers = $quantityPlayers - 1)
374:                                 <div class="game-leaders">
375:                                     <br/>
376:                                     <h3>$label</h3>
377:                                     <div class="grid-col top1">
378:                                         <div class="grid-col charts">
379:                                             #foreach ($i in [0..$quantityPlayers])
380:                                                 #set ($visitorTopPlayer = $visitorPlayers[$i])
381:                                                 #set ($homeTopPlayer = $homePlayers[$i])
382:                                                 <div class="grid-col chart">
383:                                                     <div class="stats-player visitor">
384:                                                         <div class="player-name">${visitorTopPlayer.firstName} ${visitorTopPlayer.lastName}</div>
385:                                                         <div class="stats-chart visitor ${category}-top${i}"></div>
386:                                                     </div>
387:                                                     <!-- Using the format '#' directly since the wyg has set 0.0 as format on the stats metadata object -->
388:                                                     <div class="label"><span>${formatter.formatNumber($visitorTopPlayer.stats[$category], $displayFormat)}</span><span class="title"></span><span>${formatter.formatNumber($homeTopPlayer.stats[$category], $displayFormat)}</span></div>
389:                                                     <div class="stats-player home">
390:                                                         <div class="player-name">${homeTopPlayer.firstName} ${homeTopPlayer.lastName}</div>
391:                                                         <div class="stats-chart home ${category}-top${i}"></div>
392:                                                     </div>
393:                                                 </div>
394:                                             #end
395:                                         </div>
396:                                     </div>
397:                                 </div>
398:                             #end
399: 
400:                             #gameLeaders('k' 'Kills' $visitorStats.topStats['k'] $homeStats.topStats['k'] 2 $formats.get('k'))
401:                             #gameLeaders('hpt' 'Hitting Pct.' $visitorStats.topStats['hpt'] $homeStats.topStats['hpt'] 2 $formats.get('hpt'))
402:                             #gameLeaders('sa' 'Aces' $visitorStats.topStats['sa'] $homeStats.topStats['sa'] 2 $formats.get('sa'))
403:                             #gameLeaders('d' 'Digs' $visitorStats.topStats['d'] $homeStats.topStats['d'] 2 $formats.get('d'))
404:                             #gameLeaders('bt' 'Blocks' $visitorStats.topStats['bt'] $homeStats.topStats['bt'] 2 $formats.get('bt'))
405: 
406:                             <div class="legend grid-col clearfix">
407:                                 <div class="stats-value visitor">$document.getRootElement().valueOf("team[@vh='V']/@name") (based on ${visitorStats.gamesPlayed} games)</div>
408:                                 <div class="stats-value home">$document.getRootElement().valueOf("team[@vh='H']/@name") (based on ${homeStats.gamesPlayed} games)</div>
409:                             </div>
410:                         </div>
411:                     </div>
412: 
413:                     <!-- Game Information -->
414:                     <div class="pt-game-info grid-row clearfix">
415:                         <div class="pt-tabs-panes clearfix">
416:                             <div id="stats-tabs" class="pt-tabs-pane clearfix">
417:                                 <div id="divGameInformation" class="grid-row">
418:                                     <div class="grid-col grid-col-gi grid-col1">
419:                                         <h2 class="grid-title">
420:                                             Game Information
421:                                         </h2>
422:                                         <div class="grid-content clearfix">
423:                                             <div class="pt-game-information clearfix">
424:                                                 <div class="pt-row clearfix">
425:                                                     <center>
426:                                                         <div class="game-location pt-col">
427:                                                                     <span class="date">
428:                                                                         $localDate<br />
429:                                                                         #if ($tba)
430:                                                                             TBA
431:                                                                         #else
432:                                                                             $localTime
433:                                                                         #end
434:                                                                     </span>
435:                                                             <h3>Date & Time</h3>
436:                                                         </div>
437:                                                         #if ($location != '')
438:                                                             <div class="game-venue pt-col">
439:                                                                     <span class="venue">
440:                                                                         $location<br />
441:                                                                         (Neutral)
442:                                                                     </span>
443:                                                                 <h3>Location</h3>
444:                                                             </div>
445:                                                         #end
446:                                                     </center>
447:                                                 </div>
448:                                             </div>
449:                                         </div>
450:                                     </div>
451:                                 </div>
452:                             </div>
453:                         </div>
454:                     </div>
455:                 </div>
456: 
457:                 <div id="primetime-footer" class="grid-row">
458:                     <div class="grid-col grid-col-ftr">
459:                         <a href="/"><img src="/info/primetime3/images/presto-logo.png" alt="prestosports website" /></a>
460:                     </div>
461:                 </div>
462:             </div>
463:             <script type="text/javascript">
464:                 (function($) {
465:                     $(document).ready(function() {
466:                         Highcharts.setOptions({
467:                             colors: [conf.homeTeamColor, conf.visitorTeamColor]
468:                         });
469: 
470:                         #foreach ($key in $teamStats)
471:                             $.fn.buildDonutChart('.stats-chart.ts-$key', ${visitorStats.teamStats[$key]}, ${homeStats.teamStats[$key]});
472:                         #end
473: 
474:                         // Key Contributors
475:                         #macro (playerStatsScript $category $visitorPlayers $homePlayers $visitorLimit $homeLimit $playersLimit)
476:                             #set ($playersLimit = $playersLimit - 1)
477:                             #foreach ($i in [0..$playersLimit])
478:                                 #set ($visitorTopPlayer = $visitorPlayers[$i])
479:                                 #set ($homeTopPlayer = $homePlayers[$i])
480:                                 $.fn.buildVisitorBarChart('.${category}-top${i}.visitor', ${visitorTopPlayer.stats[$category]}, $visitorLimit, conf.visitorTeamLighterColor);
481:                                 $.fn.buildHomeBarChart('.${category}-top${i}.home', ${homeTopPlayer.stats[$category]}, $homeLimit, conf.homeTeamLighterColor);
482:                             #end
483:                         #end
484: 
485:                         #playerStatsScript('k' $visitorStats.topStats['k'] $homeStats.topStats['k'] 650 650 2)
486:                         #playerStatsScript('hpt' $visitorStats.topStats['hpt'] $homeStats.topStats['hpt'] .500 .500 2)
487:                         #playerStatsScript('sa' $visitorStats.topStats['sa'] $homeStats.topStats['sa'] 90 90 2)
488:                         #playerStatsScript('d' $visitorStats.topStats['d'] $homeStats.topStats['d'] 800 800 2)
489:                         #playerStatsScript('bt' $visitorStats.topStats['bt'] $homeStats.topStats['bt'] 200 200 2)
490: 
491:                         $('.stats-value.visitor').css("background-color", conf.visitorTeamColor);
492:                         $('.stats-value.visitor.light').css("background-color", conf.visitorTeamLighterColor);
493:                         $('.stats-value.home').css("background-color", conf.homeTeamColor);
494:                         $('.stats-value.home.light').css("background-color", conf.homeTeamLighterColor);
495:                     });
496:                 })(jQuery);
497:             </script>
498:         </div>
499: 
500:     #else
501:         <div id="primetime-wrapper">
502:             <div class="primetime-overflow primetime-volleyball clearfix">
503: 
504:                 ## HEADER
505:                 <div id="primetime-header" class="grid-row">
506:                     <div class="grid-col grid-col-hdr">
507: 
508:                         <div class="primetime-screen-controls clearfix">
509:                             <a href="#" class="full-screen-button pt-icon-resize-full"><span class="text">Switch</span></a>
510:                             <a href="#" class="normal-screen-button pt-icon-resize-small"><span class="text">Switch</span></a>
511:                             <a href="#" class="expand-button pt-icon-link-ext"><span class="text">Switch</span></a>
512:                         </div>
513: 
514:                         <div class="pt-header clearfix">
515: 
516:                             <div class="pt-team pt-team-away visitor-team-color"><img src="$stats.visitorTeamLogo" alt="" class="team-logo visitor-team-logo" /><span
517:                                     class="team-record visitor-team-record"></span>
518:                                 <h3 class="team-name visitor-team-name"></h3>
519:                             </div>
520: 
521:                             <div class="pt-team pt-team-home home-team-color">
522:                                 <span class="team-record home-team-record"></span>
523:                                 <img src="$stats.homeTeamLogo" alt="" class="team-logo home-team-logo" />
524:                                 <h3 class="team-name home-team-name"></h3>
525:                             </div>
526: 
527:                             <div class="pt-match-scoreboard clearfix">
528:                                 <p class="team-score visitor-team-score"></p>
529:                                 <p class="team-score home-team-score"></p>
530: 
531:                                 <div class="pt-mtach-info">
532:                                     <span class="time scoreboard-time"></span><br />
533:                                     <span class="period scoreboard-period" style="width: 100%"></span>
534:                                 </div>
535: 
536:                             </div>
537: 
538:                             <div id="pt-page-nav" class="pt-page-nav">
539:                                 <a href="#" class="pt-menu">Menu</a>
540:                                 <ul class="clearfix">
541:                                     <li><a href="#live-action-title" data-stroke="1" data-id="#live-action-title">Live Action</a></li>
542:                                     <li><a href="#box-score-title" data-stroke="2" data-id="#box-score-title">Line Score</a></li>
543:                                     <li><a href="#set-summary" data-stroke="3" data-id="#set-summary-title" data-tab-id="#stats-tabs">Set summary</a></li>
544:                                     <li><a href="#team-comparison-title" data-stroke="4" data-id="#team-comparison-title" data-tab-id="#stats-tabs">Team Comparison</a></li>
545:                                     <li><a href="#individual-stats-title" data-stroke="5" data-id="#individual-stats-title" data-tab-id="#stats-tabs">Individual Stats</a></li>
546:                                     <li><a href="#game-info-title" data-stroke="6" data-id="#game-info-title" data-tab-id="#stats-tabs">Game Information</a></li>
547:                                     <li><a href="#play-by-play-title" data-stroke="7" data-id="#play-by-play-title" data-tab-id="#pbp-tabs">Play by Play</a></li>
548:                                 </ul>
549:                             </div>
550:                         </div>
551:                     </div>
552:                 </div>
553: 
554:                 <div class="grid-row-container clearfix">
555:                     #set ($gridRowClass = "grid-row no-video")
556:                     #if ($hasVideo)
557:                         #set ($gridRowClass = "grid-row")
558:                     #end
559: 
560:                     <div class="$gridRowClass">
561:                         #set ($gridCounter = 0)
562: 
563:                         #if ($hasVideo)
564:                             #set ($gridCounter = $gridCounter + 1)
565:                             <div class="grid-col grid-col-v grid-col${gridCounter}">
566:                                 <h3 id="video-field-title" class="grid-title">Broadcast<span class="close">x</span></h3>
567:                                 <div class="grid-content clearfix">
568:                                     <div class='embed-container'>
569: 
570:                                     </div>
571:                                 </div>
572:                             ## GRID CONTENT
573:                             </div>
574:                         ## VIDEO COL
575:                         #end
576: 
577:                         #set ($gridCounter = $gridCounter + 1)
578: 
579:                         <div class="grid-col grid-col-cd grid-col${gridCounter}">
580:                             <h3 id="live-action-title" class="grid-title">
581:                                 Live Action<span class="close">x</span>
582:                             </h3>
583:                             <div class="grid-content clearfix">
584:                                 <div class="clearfix">
585:                                     <div class="container clearfix pt-live-action">
586:                                         <table>
587:                                             <thead>
588:                                             <tr>
589:                                                 <th><span class="team-name visitor-team-name"></span></th>
590:                                                 <th><span class="team-name home-team-name"></span></th>
591:                                                 <th style="text-align: left">Plays</th>
592:                                             </tr>
593:                                             </thead>
594:                                             <tbody>
595:                                             </tbody>
596:                                         </table>
597:                                     </div>
598:                                 </div>
599:                             </div>
600:                         </div>
601:                     </div>
602: 
603:                     <div class="grid-row">
604:                         #set ($gridCounter = $gridCounter + 1)
605:                         <div class="grid-col grid-col${gridCounter}">
606:                             <h3 id="box-score-title" class="grid-title">
607:                                 Line Score<span class="close">x</span>
608:                             </h3>
609:                             <div class="grid-content clearfix">
610:                                 <div class="pt-line-score clearfix">
611:                                     <table id="scoreByPeriod">
612:                                         <thead>
613:                                         <tr>
614:                                             <th>&nbsp;</th>
615:                                         </tr>
616:                                         </thead>
617:                                         <tbody>
618:                                         <tr class="visitor">
619:                                             <td><img src="" alt=""
620:                                                      class="team-logo visitor-team-logo" />
621:                                                 <span class="team-name visitor-team-name"></span></td>
622:                                         </tr>
623:                                         <tr class="home">
624:                                             <td><img src="" alt=""
625:                                                      class="team-logo home-team-logo" />
626:                                                 <span class="team-name home-team-name"></span></td>
627:                                         </tr>
628:                                         </tbody>
629:                                     </table>
630:                                 </div>
631:                             </div>
632:                         ## GRID CONTENT
633:                         </div>
634:                     </div>
635: 
636:                     <div class="pt-game-info grid-row clearfix">
637:                         <ul class="pt-tabs clearfix">
638:                             <li id="statisticsTab" class="current"><a href="#stats-tabs">Statistics</a></li>
639:                             <li id="playByPlayTab"><a href="#pbp-tabs">Play By Play</a></li>
640:                         </ul>
641: 
642:                         <div class="pt-tabs-panes clearfix">
643:                             <div id="stats-tabs" class="pt-tabs-pane clearfix">
644:                                 ## GRID ROW
645: 
646:                                 #set ($gridCounter = $gridCounter + 1)
647:                                 <div class="grid-row">
648:                                     <div id="set-summary" class="grid-col grid-col-is grid-col8">
649:                                         <h3 class="grid-title" id="set-summary-title">
650:                                             Set summary<span class="close">x</span>
651:                                         </h3>
652:                                         <div class="grid-content clearfix">
653:                                             <div class="pt-team-stats clearfix">
654:                                                 <div class="pt-team-col pt-stats-team active clearfix">
655:                                                     <div class="pt-team clearfix">
656:                                                         <img src="" alt=""
657:                                                              class="team-logo visitor-team-logo active" />
658:                                                         <h3 class="team-name visitor-team-name"></h3>
659:                                                     </div>
660: 
661:                                                     <div class="pt-stats-tabs clearfix">
662:                                                         <div class="pt-panes clearfix">
663:                                                             <div class="pt-row">
664:                                                                 <table class="visitorSet display">
665:                                                                     <thead>
666:                                                                     <tr>
667:                                                                         <th>Set</th>
668:                                                                         <th>K</th>
669:                                                                         <th>E</th>
670:                                                                         <th>TA</th>
671:                                                                         <th>PCT</th>
672:                                                                         <th>PTS</th>
673:                                                                     </tr>
674:                                                                     </thead>
675:                                                                     <tbody>
676: 
677:                                                                     </tbody>
678:                                                                 </table>
679:                                                             </div>
680:                                                         </div>
681:                                                     </div>
682:                                                 </div>
683: 
684:                                                 <div class="pt-team-col pt-stats-team  pt-home-team clearfix">
685: 
686:                                                     <div class="pt-team clearfix">
687:                                                         <img src="" alt=""
688:                                                              class="team-logo home-team-logo active" />
689:                                                         <h3 class="team-name home-team-name"></h3>
690:                                                     </div>
691: 
692:                                                     <div class="pt-stats-tabs clearfix">
693: 
694:                                                         <div class="pt-panes clearfix">
695: 
696:                                                             <div class="pt-row">
697:                                                                 <table class="homeSet display">
698:                                                                     <thead>
699:                                                                         <tr>
700:                                                                             <th>Set</th>
701:                                                                             <th>K</th>
702:                                                                             <th>E</th>
703:                                                                             <th>TA</th>
704:                                                                             <th>PCT</th>
705:                                                                             <th>PTS</th>
706:                                                                         </tr>
707:                                                                     </thead>
708:                                                                     <tbody>
709: 
710:                                                                     </tbody>
711:                                                                 </table>
712:                                                             </div>
713:                                                         </div>
714:                                                     </div>
715:                                                 </div>
716:                                             </div>
717:                                         </div>
718:                                     ## GRID CONTENT
719:                                     </div>
720:                                 ## INDIVISUAL STATS
721:                                 </div>
722: 
723:                                 <div id="divTeamComparison" class="grid-row">
724:                                     <div class="grid-col grid-col-tc grid-col7">
725:                                         <h3 id="team-comparison-title" class="grid-title">
726:                                             Team Comparison<span class="close">x</span>
727:                                         </h3>
728:                                         <div class="grid-content clearfix">
729:                                             <div class="pt-team-compare clearfix">
730:                                                 <table id="teamCompare">
731: 
732:                                                     <thead>
733:                                                         <tr>
734:                                                             <th><img src="" alt=""
735:                                                                      class="team-logo visitor-team-logo" /><br /> <span
736:                                                                     class="team-name visitor-team-name">Team 1</span></th>
737:                                                             <th>Team Comparison</th>
738:                                                             <th><img src="" alt=""
739:                                                                      class="team-logo home-team-logo" /><br /> <span
740:                                                                     class="team-name home-team-name">Team 2</span></th>
741:                                                         </tr>
742:                                                     </thead>
743: 
744:                                                     <tbody>
745:                                                         <tr class="stats-attacks">
746:                                                             <td></td>
747:                                                             <td class="stats-cat">Attacks</td>
748:                                                             <td></td>
749:                                                         </tr>
750: 
751:                                                         <tr class="stats-kills">
752:                                                             <td></td>
753:                                                             <td class="stats-cat">Kills</td>
754:                                                             <td></td>
755:                                                         </tr>
756: 
757:                                                         <tr class="stats-attack-errors">
758:                                                             <td></td>
759:                                                             <td class="stats-cat">Attack Errors</td>
760:                                                             <td></td>
761:                                                         </tr>
762: 
763:                                                         <tr class="stats-hit">
764:                                                             <td></td>
765:                                                             <td class="stats-cat">Hit Pct</td>
766:                                                             <td></td>
767:                                                         </tr>
768: 
769:                                                         <tr class="stats-assists">
770:                                                             <td></td>
771:                                                             <td class="stats-cat">Assists</td>
772:                                                             <td></td>
773:                                                         </tr>
774: 
775:                                                         <tr class="stats-aces">
776:                                                             <td></td>
777:                                                             <td class="stats-cat">Serve Aces</td>
778:                                                             <td></td>
779:                                                         </tr>
780: 
781:                                                         <tr class="stats-serve-errors">
782:                                                             <td></td>
783:                                                             <td class="stats-cat">Serve Errors</td>
784:                                                             <td></td>
785:                                                         </tr>
786: 
787:                                                         <tr class="stats-digs">
788:                                                             <td></td>
789:                                                             <td class="stats-cat">Digs.</td>
790:                                                             <td></td>
791:                                                         </tr>
792: 
793: 
794:                                                         <tr class="stats-reception-errors">
795:                                                             <td></td>
796:                                                             <td class="stats-cat">Reception Errors</td>
797:                                                             <td></td>
798:                                                         </tr>
799: 
800:                                                         <tr class="stats-total-blocks">
801:                                                             <td></td>
802:                                                             <td class="stats-cat">Total Blocks</td>
803:                                                             <td></td>
804:                                                         </tr>
805: 
806:                                                         <tr class="stats-block-solo">
807:                                                             <td></td>
808:                                                             <td class="stats-cat">Block Solo</td>
809:                                                             <td></td>
810:                                                         </tr>
811: 
812:                                                         <tr class="stats-block-assists">
813:                                                             <td></td>
814:                                                             <td class="stats-cat">Block Assists</td>
815:                                                             <td></td>
816:                                                         </tr>
817: 
818:                                                         <tr class="stats-block-errors">
819:                                                             <td></td>
820:                                                             <td class="stats-cat">Blocking Errors</td>
821:                                                             <td></td>
822:                                                         </tr>
823: 
824:                                                     </tbody>
825: 
826:                                                 </table>
827:                                             </div>
828:                                         </div>
829:                                     ## GRID CONTENT
830:                                     </div>
831:                                 ## TEAM COMOARE
832:                                 </div>
833:                                 <div id="divIndividualStats" class="grid-row">
834:                                     <div class="grid-col grid-col-is grid-col8">
835:                                         <h3 id="individual-stats-title" class="grid-title">
836:                                             Individual Stats &nbsp;&nbsp;
837:                                                 <span>
838:                                                     <img class="switchStats horizontal active" src="/info/primetime3/images/horizontal_view.png" />
839:                                                     &nbsp;
840:                                                     <img class="switchStats vertical" src="/info/primetime3/images/vertical_view.png" />
841:                                                 </span>
842:                                                 <span class="close">x</span>
843:                                         </h3>
844:                                         <div class="grid-content clearfix">
845:                                             <div class="pt-team-stats clearfix">
846: 
847:                                                 <div id="visitorTeamIndividualStats" class="clearfix active pt-stats-team">
848: 
849:                                                     <div class="pt-team clearfix">
850:                                                         <img src="" alt=""
851:                                                              class="team-logo visitor-team-logo active" />
852:                                                         <h3 class="team-name visitor-team-name"></h3>
853:                                                     </div>
854:                                                     <div class="pt-row">
855:                                                         <table class="visitorPlayerStats display">
856:                                                             <thead>
857:                                                                 <tr>
858:                                                                     <th>#</th>
859:                                                                     <th>Player</th>
860:                                                                     <th>K</th>
861:                                                                     <th>E</th>
862:                                                                     <th class="toHide">TA</th>
863:                                                                     <th>Hit%</th>
864:                                                                     <th>A</th>
865:                                                                     <th>SA</th>
866:                                                                     <th class="toHide">SE</th>
867:                                                                     <th class="toHide">RE</th>
868:                                                                     <th>D</th>
869:                                                                     <th class="toHide">BS</th>
870:                                                                     <th class="toHide">BA</th>
871:                                                                     <th>TB</th>
872:                                                                     <th class="toHide">BE</th>
873:                                                                     <th class="toHide">BHE</th>
874:                                                                     <th class="toHide">PTS</th>
875:                                                                 </tr>
876:                                                             </thead>
877:                                                             <tbody>
878: 
879:                                                             </tbody>
880:                                                         </table>
881:                                                         <br />
882:                                                     </div>
883:                                                 </div>
884:                                                 <div id="homeTeamIndividualStats" class="clearfix pt-stats-team">
885:                                                     <div class="pt-team clearfix">
886:                                                         <img src="" alt=""
887:                                                              class="team-logo home-team-logo" />
888:                                                         <h3 class="team-name home-team-name"></h3>
889:                                                     </div>
890:                                                     <div class="pt-row">
891:                                                         <table class="homePlayerStats display">
892:                                                             <thead>
893:                                                                 <tr>
894:                                                                     <th>#</th>
895:                                                                     <th>Player</th>
896:                                                                     <th>K</th>
897:                                                                     <th>E</th>
898:                                                                     <th class="toHide">TA</th>
899:                                                                     <th>Hit%</th>
900:                                                                     <th>A</th>
901:                                                                     <th>SA</th>
902:                                                                     <th class="toHide">SE</th>
903:                                                                     <th class="toHide">RE</th>
904:                                                                     <th>D</th>
905:                                                                     <th class="toHide">BS</th>
906:                                                                     <th class="toHide">BA</th>
907:                                                                     <th>TB</th>
908:                                                                     <th class="toHide">BE</th>
909:                                                                     <th class="toHide">BHE</th>
910:                                                                     <th class="toHide">PTS</th>
911:                                                                 </tr>
912:                                                             </thead>
913:                                                             <tbody>
914: 
915:                                                             </tbody>
916:                                                         </table>
917:                                                     </div>
918:                                                 </div>
919: 
920:                                             </div>
921:                                         </div>
922:                                         ## GRID CONTENT
923:                                     </div>
924:                                     ## INDIVISUAL STATS
925:                                 </div>
926:                                 <div id="divGameInformation" class="grid-row">
927:                                     <div class="grid-col grid-col-gi grid-col9">
928:                                         <h3 id="game-info-title" class="grid-title">
929:                                             Game Information<span class="close">x</span>
930:                                         </h3>
931:                                         <div class="grid-content clearfix">
932:                                             <div class="pt-game-information clearfix">
933: 
934:                                                 <div class="pt-row clearfix">
935:                                                     <center>
936:                                                     <div class="date-time pt-col">
937:                                                         <span id="gameInformationDate" class="date"></span>
938:                                                         <span id="gameInformationTime" class="time"></span>
939:                                                         <h3>Date & Time</h3>
940:                                                     </div>
941: 
942:                                                     <div class="game-location pt-col">
943:                                                         <span id="gameInformationLocation" class="location"></span>
944:                                                         <h3>Location</h3>
945:                                                     </div>
946: 
947:                                                     <div class="game-venue pt-col">
948:                                                         <span id="gameInformationVenue" class="venue"></span>
949:                                                         <h3>Venue</h3>
950:                                                     </div>
951: 
952:                                                     <div class="weather pt-col">
953: 
954:                                                         <div class="weather-condition">
955: 													<span id="gameInformationTemperature"
956:                                                           class="temp"></span>
957:                                                             <span id="gameInformationCondition" class="condition"></span>
958:                                                         </div>
959:                                                         <h3>Weather</h3>
960:                                                     </div>
961:                                                     </center>
962:                                                 </div>
963: 
964:                                             </div>
965:                                         </div>
966:                                     ## GRID CONTENT
967:                                     </div>
968:                                 ## GENERAL INFORMATION
969:                                 </div>
970:                             </div> <!-- Game information -->
971:                             <div id="pbp-tabs" class="pt-tabs-pane clearfix">
972:                                 <div class="grid-row">
973:                                     #set ($gridCounter = $gridCounter + 1)
974:                                     <div class="grid-col grid-col-ds grid-col${gridCounter}">
975:                                         <h3 id="play-by-play-title" class="grid-title">
976:                                             Play by Play<span class="close">x</span>
977:                                         </h3>
978:                                         <div class="grid-content clearfix">
979:                                             <div id="playByPlay" class="clearfix">
980:                                                 <select id="filterPeriod" class="dropdownFilter">
981:                                                     <option value="" selected>ALL SETS</option>
982:                                                     <option value="1">1 Set</option>
983:                                                     <option value="2">2 Set</option>
984:                                                     <option value="3">3 Set</option>
985:                                                     <option value="4">4 Set</option>
986:                                                     <option value="5">5 Set</option>
987:                                                 </select>
988:                                                 <select id="filterTeam" class="dropdownFilter">
989:                                                     <option value="" selected>BOTH TEAMS</option>
990:                                                     <option value="" class="team-name visitor-team-name"></option>
991:                                                     <option value="" class="team-name home-team-name"></option>
992:                                                 </select>
993:                                             </div>
994:                                             <div class="pt-play-by-play volley clearfix">
995:                                                 <table>
996:                                                     <thead>
997:                                                     <tr>
998:                                                         <th><span class="team-name visitor-team-name"></span><span>&nbsp;Score</span></th>
999:                                                         <th>Play</th>
1000:                                                         <th><span class="team-name home-team-name"></span><span>&nbsp;Score</span></th>
1001:                                                     </tr>
1002:                                                     </thead>
1003:                                                     <tbody>
1004:                                                     </tbody>
1005:                                                 </table>
1006:                                             </div>
1007:                                         </div>
1008:                                     ## GRID CONTENT
1009:                                     </div>
1010:                                 ## DRIVE SUMMARY
1011:                                 </div>
1012:                             </div>
1013:                         </div> <!-- Tab Panes -->
1014:                     </div> <!-- Game Info -->
1015:                 </div> <!-- Row container -->
1016: 
1017:                 <div id="primetime-footer" class="grid-row">
1018:                     <div class="grid-col grid-col-ftr">
1019:                         <a href="/"><img src="/info/primetime3/images/presto-logo.png" alt="prestosports website" /></a>
1020:                     </div>
1021:                 </div>
1022:             </div> <!-- Primetime Overflow -->
1023:         </div><!-- Primetime Wrapper -->
1024:     #end
1025:     
1026:     #set ($showWiki = true)
1027:     #set ($showWiki = $showWikiVar)
1028:     #if ($showWiki == true)
1029:         $wiki.su 
1030:     #end
1031:     ## END OF PRIMETIME	    
1032: 
1033: #else
1034: ##COMMON FUNCTIONS
1035: #macro (changeViewScript)
1036: ## CORRECT WRONG VIEW WITH REPLACESTATE
1037: <script type="text/javascript">
1038:     $(function () {
1039:         if (!$('.stats-tabs li.active').length) {
1040:             if (history.replaceState) {
1041:                 history.replaceState({}, '', '?view=' + $('.stats-tabs li:first').addClass('active').children('a').data('view'));
1042:             } else {
1043:                 $('.stats-tabs li:first').addClass('active');
1044:             }
1045:         }
1046:     })
1047: </script>
1048: #end
1049: 
1050: #macro (printPdfHeader $title)
1051: <div class="stats-fullbox clearfix">
1052:     <table>
1053:         <tr>
1054:             <td class="align-center"><h4>$title</h4></td>
1055:         </tr>
1056:     </table>
1057: </div>
1058: #end
1059: 
1060: ##COMMON FUNCTIONS VOLLEYBALL
1061: 
1062: ## ATTACKS
1063: #macro (attackgameHeader $column $name)
1064: <tr>
1065:     <td colspan="5">$name</td>
1066: </tr>
1067: <tr>
1068:     <th $column >Set</th>
1069:     <th $column >K</th>
1070:     <th $column >E</th>
1071:     <th $column >TA</th>
1072:     <th $column >PCT</th>
1073: </tr>
1074: #end
1075: #macro (attackgameBody $row $column $stat)
1076: <tr class="$row">
1077:     <td $column>$!stat.valueOf("@game")</td>
1078:     <td $column>$!stat.valueOf("@k")</td>
1079:     <td $column>$!stat.valueOf("@e")</td>
1080:     <td $column>$!stat.valueOf("@ta")</td>
1081:     <td $column>$!stat.valueOf("@pct")</td>
1082: </tr>
1083: #end
1084: 
1085: #macro (attackgame $team)
1086: <table class="all-center">
1087:     #attackgameHeader('class="align-right"',"TEAM ATTACK PER SET")
1088:     #foreach ($stat in $team.selectNodes("attackbygame/attackgame"))
1089:     #attackgameBody($row,'class="align-right"',$stat)
1090: #end
1091: </table>
1092: #end ##macro
1093: 
1094: ##
1095: #set ($home = $document.selectSingleNode("vbgame/team[@vh='H']"))
1096: #set ($visitor = $document.selectSingleNode("vbgame/team[@vh='V']"))
1097: #set ($homeTeam = $home.valueOf("@name"))
1098: #set ($visitorTeam = $visitor.valueOf("@name"))
1099: #set ($homeid = $document.valueOf("vbgame/venue/@homeid"))
1100: #set ($visitorid = $document.valueOf("vbgame/venue/@visid"))
1101: 
1102: #set ($linkPlayers = $stats.linkPlayers)
1103: #set ($linkPlayersBase = $stats.linkPlayersBase)
1104: #set ($linkTeams = $stats.linkTeams)
1105: #set ($linkTeamsBase = $stats.linkTeamsBase)
1106: 
1107: #set ($setsPlayed = $document.valueOf("vbgame/status/@game"))
1108: #set ($setsPlayed = $tool.math.toInteger($setsPlayed))
1109: #set ($hasPlayByPlay = $document.selectNodes("vbgame/plays/game").size() > 0)
1110: #set ($isNeutralGame = $document.valueOf("vbgame/venue/@neutralgame"))
1111: #if ($isNeutralGame.length() > 0 && $isNeutralGame.equals("Y"))
1112:   #set ($isNeutralGame = true)
1113: #else
1114:   #set ($isNeutralGame = false)
1115: #end
1116: 
1117: #if ($stats.pageUrl.length() > 0 && !$stats.pageUrl.contains("?"))
1118: 	#set ($paramSep = "?")
1119: #else
1120: 	#set ($paramSep = "&")
1121: #end
1122: 
1123: ## Dak Stats or Stat Crew PS-6428
1124: #if ($!visitor.selectNodes("linescore/lineprd").size() > 0)
1125: 
1126: 	#set ($linegameSel = 'lineprd')
1127: 	#set ($attgameSel = 'attackbygame')
1128: 
1129: #else
1130:     ## Default Stat Crew
1131:     #set ($linegameSel = 'linegame')
1132:     #set ($attgameSel = 'attackgame')
1133: 
1134: #end
1135: 
1136: #macro (attackgameBoxscore $team)
1137: <table class="all-center">
1138:     #attackgameHeader("","<h4>$team.valueOf('@name')</h4>")
1139:     #foreach ($stat in $team.selectNodes("attackbygame/${attgameSel}"))
1140:         #if ($velocityCount % 2 == 0)
1141:             #set ($row = "even")
1142:         #else
1143:             #set ($row = "odd")
1144:         #end
1145:         #attackgameBody($row,"",$stat)
1146:     #end
1147: </table>
1148: #end ##macro
1149: 
1150: #macro (printSetName $s)
1151: #if ($s == 1)
1152:   <span>1st</span>
1153: #elseif ($s == 2)
1154:   <span>2nd</span>
1155: #elseif ($s == 3)
1156:   <span>3rd</span>
1157: #else
1158:   <span>${s}th</span>
1159: #end
1160: #end
1161: 
1162: 
1163: #set ($visname = $document.valueOf("vbgame/venue/@visname"))
1164: #set ($homename = $document.valueOf("vbgame/venue/@homename"))
1165: #set ($location = $document.valueOf("vbgame/venue/@location").trim())
1166: #set ($arena = $document.valueOf("vbgame/venue/@arena").trim())
1167: #set ($date = $document.valueOf("vbgame/venue/@date"))
1168: #set ($time = $document.valueOf("vbgame/venue/@start"))
1169: #set ($schedNote = $document.valueOf("vbgame/venue/@schednote"))
1170: 
1171: #if ($browser.getIphone() || $browser.getMobile()) ##MOBILE VERSION
1172: 
1173: ## serve dependencies if missing
1174: <script>
1175: if (!$('link[href="/info/mobile/stats/mobile-stats.css"]').length) {
1176:   $('head').eq(0).append('<link rel="stylesheet" type="text/css" href="/info/responsive-temp-mobile-stats.css" />');
1177: }
1178: 
1179: if (typeof $.mobileSite === "undefined") {
1180:   var script = document.createElement('script');
1181:   script.src = "/info/mobile/mobile-js/mobile-site.js";
1182:   $('body').eq(0).append(script);
1183: }
1184: 
1185: if (typeof $LAB === "undefined") {
1186:   var script = document.createElement('script');
1187:   script.src = "/info/mobile/mobile-js/LAB.min.js";
1188:   $('body').eq(0).append(script);
1189: }
1190: </script>
1191: 
1192: ## TEAM LINK 
1193: #macro (mobile_showTeam $team)
1194: 
1195:     #if ($team.attributeValue("link").length() > 0 and $linkTeams)
1196:        ##<a href="$!linkTeamsBase?id=${team.attributeValue("teamId")}">
1197:     #end
1198: 	#if($!team.attributeValue("rank").length() > 0)($!team.attributeValue("rank")) #end
1199:     $team.attributeValue("name")
1200:     #if ($team.attributeValue("link").length() > 0 and $linkTeams)
1201:         ##</a>
1202:     #end
1203: #end
1204: 
1205: #macro (printMobileHeader)
1206: 
1207: <div class="teams">
1208: 	<div class="frame clearfix">
1209: 		<div class="team">
1210: 			#mobile_showTeam($visitor)
1211: 		</div>
1212: 		<div class="versus">
1213: 			#if ($isNeutralGame)
1214: 				vs.
1215: 			#else
1216: 				at
1217: 			#end
1218: 		</div>
1219: 		<div class="team right">
1220: 			#mobile_showTeam($home)
1221: 		</div>
1222: 	</div>
1223: </div>
1224: <div class="board">
1225: 	<div class="frame clearfix">
1226: 		<div class="result">
1227: 			$visitor.valueOf("linescore/@score")
1228: 		</div>
1229: 		
1230: 		<div class="timer">
1231: 			#if($stats.final)
1232: 				<div class="time">Final</div>
1233: 			#else
1234: 				<div class="time">#printSetName($setsPlayed)</div>
1235: 			#end
1236: 		</div>
1237: 		
1238: 		<div class="result">
1239: 			$home.valueOf("linescore/@score")
1240: 		</div>
1241: 	</div>
1242: </div>
1243: 
1244: #end
1245: 
1246: <script type="text/javascript"> 
1247: 	mobileConf.page = 'boxscore';
1248: 	mobileConf.pageParams = {
1249: 		deepLinking : true
1250: 		#if ($stats.inProgress)
1251: 			, inprogress : true
1252: 		#end
1253: 	}
1254: </script>
1255: 
1256: <div class="swipe-header">
1257: 	<a href="#" id="swipe-left"></a>
1258: 	<a href="#" id="swipe-right"></a>
1259: 	<ul class="dot-nav">
1260: 		<li class="dot-nav-1 active"></li>
1261: 		<li class="dot-nav-2"></li>
1262: 		<li class="dot-nav-3"></li>
1263: 	</ul>
1264: </div>
1265: <div id="swipe-wrapper">
1266: <div id="live2">
1267:     <div class="swipe-screen" data-view="scoring">
1268:         <div class="score_board">
1269: 			
1270: 			#printMobileHeader()
1271:             					
1272: 				<div class="table">
1273: 					<div class="frame">
1274: 						<div class="clearfix">
1275: 							<div class="cell cell_s">&#160;</div>
1276: 							<div class="cell cell_m">&#160;</div>
1277: 							<div class="cell cell_l">SCORE BY SET</div>
1278: 							<div class="cell cell_m">&#160;</div>
1279: 							<div class="cell cell_s">&#160;</div>
1280: 						</div>
1281: 
1282: 						#foreach ($set in [1..$setsPlayed])
1283: 						## #foreach ($set in $sets)
1284: 							## #set ($s = $set.valueOf("@number"))
1285: 							<div class="clearfix">
1286: 								<div class="cell cell_s">&#160;</div>
1287: 								<div class="cell cell_m">
1288: 									$!visitor.valueOf("linescore/${linegameSel}[$set]/@points")
1289: 								</div>
1290: 								<div class="cell cell_l">
1291: 									#printSetName($set)
1292: 								</div>
1293: 								<div class="cell cell_m">
1294: 									$!home.valueOf("linescore/${linegameSel}[$set]/@points")
1295: 								</div>
1296: 								<div class="cell cell_s">&#160;</div>
1297: 							</div>			
1298: 						#end
1299: 
1300: 						
1301: 						<div class="clearfix">
1302: 							<div class="cell cell_s">&#160;</div>
1303: 							<div class="cell cell_m">$visitor.valueOf("linescore/@score")</div>
1304: 							<div class="cell cell_l">Score</div>
1305: 							<div class="cell cell_m">$home.valueOf("linescore/@score")</div>
1306: 							<div class="cell cell_s">&#160;</div>
1307: 						</div>
1308: 					</div>
1309: 				</div>	
1310: 
1311: 	#if ($hasPlayByPlay)			
1312:             <div class="recent">
1313: 		<div class="frame">
1314:                     <div class="toggle clearfix">
1315:                         <div class="title">Recent Plays</div>
1316:                         <div class="arrow">
1317:                             <img src="/info/mobile/stats/images/arrow_down2.gif" class="recent_arrow_down" width="13" height="9"/>
1318:                             <img src="/info/mobile/stats/images/arrow_up2.gif" class="recent_arrow_up" style="display: none;" width="13" height="9"/>
1319:                         </div>
1320:                     </div>
1321: 
1322: 
1323: 
1324: 					<div class="plays recent_plays reverse" style="display:none">	
1325:                     #set ($toShowCounter = 0)
1326:                     #set ($sets = $document.selectNodes("vbgame/plays/game"))
1327: 					#foreach ($set in $sets)
1328: 						#foreach ($play in $set.selectNodes("play"))
1329:                             #set ($toShowCounter = $toShowCounter + 1)
1330: 							<div class="clearfix #if ($toShowCounter > 5) hidden #end">
1331: 								<div class="cell cell_s">
1332: 									#if($play.valueOf('@point') == "$visitorid")
1333: 										$play.valueOf("@vscore")-$play.valueOf("@hscore")
1334: 									#end
1335: 								</div>
1336: 								<div class="cell cell_l2">$play.valueOf("@text") #if($play.valueOf("@point").length() > 0)Point $play.valueOf("@point")#end</div>
1337: 								<div class="cell cell_s">
1338: 									#if($play.valueOf('@point') == "$homeid")
1339: 										$play.valueOf("@vscore")-$play.valueOf("@hscore")
1340: 									#end
1341: 								</div>
1342: 							</div>
1343: 						#end
1344: 					#end
1345: 					</div>
1346:                 </div>
1347: 		<div class="button active hidden" id="load-more-plays">
1348: 			<div class="team">More Plays</div>
1349: 		</div>
1350: 
1351:             </div>
1352: 		#end
1353:         </div>
1354:     </div>
1355:     <!-- END SCORE BOARD-->
1356:     
1357:     <!-- BEGING LINE UP -->
1358:     <div class="swipe-screen" data-view="boxscore">
1359: 		#printMobileHeader()
1360:         <div class="team_stats">
1361:             <div class="teams clearfix"> 
1362: 				<div class="button active clearfix" id="button-1">
1363:                     <div class="team">#mobile_showTeam($visitor)</div>
1364:                     <div class="end">
1365:                         <div>&#160;</div>
1366:                     </div>
1367:                 </div>
1368:                 <div class="button clearfix" id="button-2">
1369:                     <div class="team">#mobile_showTeam($home)</div>
1370:                     <div class="end">
1371:                         <div>&#160;</div>
1372:                     </div>
1373:                 </div> 
1374:                 <!-- BEGING STATS -->
1375:                 #macro (mobile_printStat $stat)
1376:                     <div class="row">
1377:                         <div class="toggle clearfix">
1378:                             <div class="data">$!stat.valueOf("@uni")</div>
1379:                             <div class="name">
1380:                                 #if ($stat.valueOf("@playerId").length() > 0 and $linkPlayers)
1381:                                    ##<a href="$!linkPlayersBase?id=${stat.valueOf("../@playerId")}">
1382:                                 #end
1383:                                 $stat.valueOf("@name")
1384: 				#if ($stat.valueOf("@playerId").length() > 0 and $linkPlayers)
1385: 				   ##</a>
1386:                                 #end
1387: 				#if ($stat.valueOf("@pos").length() > 0 && $stat.valueOf("@ms").length() > 0)
1388: 					- $!stat.valueOf("@pos")
1389: 				#end
1390:                             </div>
1391:                             <div class="data">$!stat.valueOf("attack/@k")</div>
1392:                             <div class="data">$!stat.valueOf("attack/@pct")</div>
1393:                             <div class="data">$!stat.valueOf("set/@a")</div>
1394:                             <div class="data arrow">&#160;</div>
1395:                         </div>
1396: 
1397:                         <div class="more" style="display: none">
1398:                             <div class="group clearfix">
1399:                                 <div class="data">
1400:                                     <div class="name">#</div>
1401:                                     <div class="value">$!stat.valueOf("@uni")</div>
1402:                                 </div>
1403:                                 <div class="data">
1404:                                     <div class="name">SP</div>
1405:                                     <div class="value">$!stat.valueOf("@gp")</div>
1406:                                 </div>
1407:                                 <div class="data">
1408:                                     <div class="name">K</div>
1409:                                     <div class="value">$!stat.valueOf("attack/@k")</div>
1410:                                 </div>
1411:                                 <div class="data">
1412:                                     <div class="name">E</div>
1413:                                     <div class="value">$!stat.valueOf("attack/@e")</div>
1414:                                 </div>
1415:                                 <div class="data">
1416:                                     <div class="name">TA</div>
1417:                                     <div class="value">$!stat.valueOf("attack/@ta")</div>
1418:                                 </div>
1419:                                 <div class="data">
1420:                                     <div class="name">PCT</div>
1421:                                     <div class="value">$!stat.valueOf("attack/@pct")</div>
1422:                                 </div>
1423:                                 <div class="data">
1424:                                     <div class="name">A</div>
1425:                                     <div class="value">$!stat.valueOf("set/@a")</div>
1426:                                 </div>
1427:                             </div>
1428:                             <div class="group clearfix">
1429:                                 <div class="data">
1430:                                     <div class="name">SA</div>
1431:                                     <div class="value">$!stat.valueOf("serve/@sa")</div>
1432:                                 </div>
1433:                                 <div class="data">
1434:                                     <div class="name">SE</div>
1435:                                     <div class="value">$!stat.valueOf("serve/@se")</div>
1436:                                 </div>
1437:                                 <div class="data">
1438:                                     <div class="name">RE</div>
1439:                                     <div class="value">$!stat.valueOf("defense/@re")</div>
1440:                                 </div>
1441:                                 <div class="data">
1442:                                     <div class="name">D</div>
1443:                                     <div class="value">$!stat.valueOf("defense/@dig")</div>
1444:                                 </div>
1445:                                 <div class="data">
1446:                                     <div class="name">BS-BA</div>
1447:                                     <div class="value">$!stat.valueOf("block/@bs")-$!stat.valueOf("block/@ba")</div>
1448:                                 </div>
1449:                                 <div class="data">
1450:                                     <div class="name">BE</div>
1451:                                     <div class="value">$!stat.valueOf("block/@be")</div>
1452:                                 </div>
1453:                                 <div class="data">
1454:                                     <div class="name">PTS</div>
1455:                                     <div class="value">$!stat.valueOf("misc/@pts")</div>
1456:                                 </div>
1457:                             </div>
1458:                         </div>
1459:                     </div>
1460:                 #end
1461:                 
1462:                 
1463:                 #macro (mobile_playerstats $team)
1464:                     <div class="titles clearfix">
1465:                         <div class="data">#</div>
1466:                         <div class="name">PLAYERS</div>
1467:                         <div class="data">K</div>
1468:                         <div class="data">PCT</div>
1469:                        <div class="data">AST</div>
1470:                         <div class="data">&#160;</div>
1471:                     </div>
1472:                     
1473:                     #foreach ($stat in $team.selectNodes("player"))
1474: 			#if ($stat.selectNodes("attack").size() > 0)
1475:                         #if ($stat.valueOf("@gp").length() > 0)
1476:                             #if ($stat.valueOf("@name") == 'TEAM')
1477:                                 #set ($teamStat = $stat)
1478:                             #else
1479:                                 #mobile_printStat($stat)
1480:                             #end
1481:                         #end
1482: 			#end
1483:                     #end
1484:                     
1485:                     ##TEAM STAT
1486:                     #if ($teamStat)
1487:                         #mobile_printStat($teamStat)
1488:                     #end
1489:                 #end
1490: 
1491:                 ## VISITOR STATISTICS
1492:                 <div class="table" id="table_team_stats_1">#mobile_playerstats($document.selectSingleNode("vbgame/team[@vh='V']"))</div>
1493: 
1494:                 ## HOME STATISTICS
1495:                 <div class="table" id="table_team_stats_2" style="display: none">#mobile_playerstats($document.selectSingleNode("vbgame/team[@vh='H']"))</div>
1496: 
1497:                 
1498:                 <!-- END STATS -->
1499:             </div>
1500:         </div>
1501:     </div>
1502:     <!-- END LINE UP -->
1503:     
1504:     <!-- BEGING TEAM STATS -->
1505:     <div class="swipe-screen" data-view="summary">
1506: 		#printMobileHeader()
1507:         <div class="line_up">			
1508:             <div class="table">
1509:                 <div class="row clearfix">
1510:                     <div class="data">$!visitor.valueOf("totals/attack/@k")</div>
1511:                     <div class="text">KILLS</div>
1512:                     <div class="data">$!home.valueOf("totals/attack/@k")</div>
1513:                 </div>
1514:                 <div class="row clearfix">
1515:                     <div class="data">$!visitor.valueOf("totals/attack/@e")</div>
1516:                     <div class="text">HIT ERRORS</div>
1517:                     <div class="data">$!home.valueOf("totals/attack/@e")</div>
1518:                 </div>
1519:                 <div class="row clearfix">
1520:                     <div class="data">$!visitor.valueOf("totals/attack/@ta")</div>
1521:                     <div class="text">ATTACKS</div>
1522:                     <div class="data">$!home.valueOf("totals/attack/@ta")</div>
1523:                 </div>
1524:                 <div class="row clearfix">
1525:                     <div class="data">$!visitor.valueOf("totals/attack/@pct")</div>
1526:                     <div class="text">HIT %</div>
1527:                     <div class="data">$!home.valueOf("totals/attack/@pct")</div>
1528:                 </div>
1529:                 <div class="row clearfix">
1530:                     <div class="data">$!visitor.valueOf("totals/set/@a")</div>
1531:                     <div class="text">ASSISTS</div>
1532:                     <div class="data">$!home.valueOf("totals/set/@a")</div>
1533:                 </div>
1534:                 <div class="row clearfix">
1535:                     <div class="data">$!visitor.valueOf("totals/serve/@sa")</div>
1536:                     <div class="text">SERVICE ACES</div>
1537:                     <div class="data">$!home.valueOf("totals/serve/@sa")</div>
1538:                 </div>
1539:                 <div class="row clearfix">
1540:                     <div class="data">$!visitor.valueOf("totals/serve/@se")</div>
1541:                     <div class="text">SERVICE ERRORS</div>
1542:                     <div class="data">$!home.valueOf("totals/serve/@se")</div>
1543:                 </div>
1544:                 <div class="row clearfix">
1545:                     <div class="data">$!visitor.valueOf("totals/defense/@dig")</div>
1546:                     <div class="text">DIGS</div>
1547:                     <div class="data">$!home.valueOf("totals/defense/@dig")</div>
1548:                 </div>
1549:                 <div class="row clearfix">
1550:                     <div class="data">$!visitor.valueOf("totals/defense/@re")</div>
1551:                     <div class="text">RECEIVE ERRORS</div>
1552:                     <div class="data">$!home.valueOf("totals/defense/@re")</div>
1553:                 </div>
1554:                 <div class="row clearfix">
1555:                     <div class="data">$!visitor.valueOf("totals/block/@bs")</div>
1556:                     <div class="text">SOLO  BLOCKS</div>
1557:                     <div class="data">$!home.valueOf("totals/block/@bs")</div>
1558:                 </div>
1559:                 <div class="row clearfix">
1560:                     <div class="data">$!visitor.valueOf("totals/block/@ba")</div>
1561:                     <div class="text">BLOCK ASSISTS</div>
1562:                     <div class="data">$!home.valueOf("totals/block/@ba")</div>
1563:                 </div>
1564:                 <div class="row clearfix">
1565:                     <div class="data">$!visitor.valueOf("totals/block/@be")</div>
1566:                     <div class="text">BLOCK ERRORS</div>
1567:                     <div class="data">$!home.valueOf("totals/block/@be")</div>
1568:                 </div>
1569:                 <div class="row clearfix">
1570:                     <div class="data">$!visitor.valueOf("totals/block/@tb")</div>
1571:                     <div class="text">BLOCKS</div>
1572:                     <div class="data">$!home.valueOf("totals/block/@tb")</div>
1573:                 </div>
1574:                 <div class="row clearfix">
1575:                     <div class="data">$!visitor.valueOf("totals/misc/@bhe")</div>
1576:                     <div class="text">BHE</div>
1577:                     <div class="data">$!home.valueOf("totals/misc/@bhe")</div>
1578:                 </div>
1579:                 <div class="row clearfix">
1580:                     <div class="data">$!visitor.valueOf("totals/misc/@pts")</div>
1581:                     <div class="text">POINTS</div>
1582:                     <div class="data">$!home.valueOf("totals/misc/@pts")</div>
1583:                 </div>
1584:             </div>
1585:             
1586:              <div class="recent">
1587:                 <div class="frame">
1588:                     <div class="other">
1589:                         <div class="toggle clearfix">
1590:                             <div class="row title">
1591:                                 Other Information
1592:                                  <div class="arrow">
1593:                                     <img src="/info/mobile/stats/images/arrow_down2.gif" class="recent_arrow_down" width="13" height="9"/>
1594:                                     <img src="/info/mobile/stats/images/arrow_up2.gif" class="recent_arrow_up" style="display: none;" width="13" height="9"/>
1595:                                 </div>
1596:                             </div>
1597:                         </div>
1598:                         
1599:                         <div class="recent_plays plays" style="display: none;">
1600:                             #if($location.length() > 0)
1601:                             <div class="row clearfix">
1602:                                 <div class="data">Location</div>
1603:                                 <div class="text">$document.valueOf("vbgame/venue/@location") </div>
1604:                             #end 
1605:                             </div>
1606: 							#if($arena.length() > 0 && $arena != ' ')
1607: 								<div class="row clearfix">
1608: 									<div class="data">Arena</div>
1609: 									<div class="text">$arena</div>
1610: 								</div>
1611: 							#end
1612: 
1613:                             <div class="row clearfix">
1614:                                 <div class="data">Game Length</div>
1615:                                 <div class="text">$document.valueOf("vbgame/venue/@duration")</div>
1616:                             </div>
1617:                             <div class="row clearfix">
1618:                                 <div class="data">Attendance</div>
1619:                                 <div class="text">$document.valueOf("vbgame/venue/@attend")</div>
1620:                             </div>
1621:                             #foreach ($official in $document.selectNodes("vbgame/venue/officials"))
1622:                                 <div class="row clearfix">
1623:                                     <div class="data">$official.valueOf("@title")</div>
1624:                                     <div class="text">$official.valueOf("@name")</div>
1625:                                 </div>
1626:                             #end
1627:                         </div>
1628:                     </div>
1629:                 </div>
1630:             </div>
1631:         </div>
1632:     </div>
1633: </div>
1634: </div>
1635: 
1636: #set ($showWiki = true)
1637: #set ($showWiki = $showWikiVar)
1638: 
1639: #if ($showWiki == true)
1640: 	$!wiki.su 
1641: #end
1642: 
1643: 
1644: #else
1645: 
1646:     ##WEBSITE VERSION
1647: 
1648:     #if ($stats.view != "pdf")
1649:         #set ($showWiki = true)
1650:         #set ($showWiki = $showWikiVar)
1651: 
1652:         #if ($showWiki == true)
1653:             $!wiki.su
1654:         #end
1655: 	#end
1656: 	
1657: 	#set ($titleVa = "at")
1658:     #if ($isNeutralGame)
1659:     	#set ($titleVa = "vs.")
1660:     #end
1661: 	
1662: 	#set ($pageTitle = "$visname $titleVa $homename")
1663: 
1664:     #if ($date.length() > 0)
1665:     	#set ($dateObj = $tool.date.toDate("MM/dd/yyyy", $date))
1666:     	#set ($pageTitle = "${pageTitle} - ${formatter.formatLongDate($dateObj)}")
1667:     #end	
1668:     
1669:     #if ($time.length() > 0) 
1670:     	#set ($pageTitle = "${pageTitle} - ${time}") 
1671:     #end
1672: 
1673:     <html>
1674:     <head>
1675:         <title>$pageTitle - Box Score</title>
1676:         #if ($stats.inProgress)
1677:             <meta http-equiv="refresh" content="60"/>
1678:         #end
1679:         #if ($stats.view == "pdf")
1680:             #include("statcrew-pdf-css-template")
1681:         #end
1682:     </head>
1683:     <body>
1684: 
1685:         #if ($stats.view == "pdf")
1686:             <div class='footer-left'>$visname vs. $homename</div>
1687:             <div class='footer-right'><span id="pagenumber"></span> of <span
1688:                     id="pagecount"></span></div>
1689:         #end
1690:             <div class="stats-wrapper clearfix">
1691:             #if ($stats.view != "pdf")
1692:                 #if ($visname.length() > 0 && $homename.length() > 0)
1693:                     <div class="align-center">
1694:                         <strong>$visname #if($isNeutralGame)vs.#else at #end $homename</strong>
1695:                         #if($location.length() > 0 && $location != ',')
1696:                             <br />@ $!location
1697:                         #end
1698:                         #if($arena.length() > 0)
1699:                             ($!arena)
1700:                         #end
1701:                         <br />$!date
1702:                         #if($time.length() > 0)
1703:                             at $!time
1704:                         #end
1705:                         #if($schedNote.length() > 0)
1706:                             $!schedNote
1707:                         #end
1708:                     </div><br />
1709:                 #end
1710: 
1711:                 #macro (showTeam $team)
1712:                   #if ($team.attributeValue("link").length() > 0 and $linkTeams)
1713:                     <a href="$!linkTeamsBase?id=${team.attributeValue("teamId")}">
1714:                   #end
1715:                   $team.attributeValue("name")
1716:                   #if ($team.attributeValue("link").length() > 0 and $linkTeams)
1717:                   </a>
1718:                   #end
1719:                 #end
1720: 
1721: 
1722:                 ## BOX SCORE
1723:                 <table class="all-center" role="presentation">
1724:                  <tr>
1725:                   <td style="width:50%">
1726:                    <span class="stats-header">#if($!visitor.valueOf("@rank").length() > 0)($!visitor.valueOf("@rank")) #end#showTeam($visitor)<br />$visitor.valueOf("linescore/@score")</span>
1727:                   </td>
1728:                   <td>
1729:                    <span class="stats-header">#if($home.valueOf("@rank").length() > 0)($!home.valueOf("@rank")) #end#showTeam($home)<br />$home.valueOf("linescore/@score")</span>
1730:                   </td>
1731:                  </tr>
1732:                 </table>
1733: 
1734:                 ## GAME SCORES
1735:                 <div class="stats-fullbox clearfix">
1736:                 <table>
1737:                  <tr>
1738:                   <th class="align-left">
1739:                   #if($stats.final)
1740:                     Final
1741:                   #else
1742:                     In Progress - #printSetName($setsPlayed)
1743:                   #end
1744:                   </th>
1745:                   #foreach ($set in [1..$setsPlayed])
1746:                   <th style="width:60px;">$set</th>
1747:                   #end
1748:                   <th style="width:80px;">Score</th>
1749:                  </tr>
1750: 
1751:                 ## team scores
1752:                 #foreach ($team in $document.selectNodes("vbgame/team"))
1753:                  <tr>
1754:                   #set ($teamRecord = $team.valueOf("@record"))
1755:                   <td class="nowrap">$team.valueOf("@name") #if($teamRecord.length() > 0)($teamRecord)#end</td>
1756:                   #foreach ($linegame in $team.selectNodes("linescore/${linegameSel}"))
1757:                   <td class="align-center">$linegame.valueOf("@points")</td>
1758:                   #end
1759:                   <td class="align-center">$team.valueOf("linescore/@score")</td>
1760:                  </tr>
1761:                 #end
1762:                 </table>
1763:                 </div>
1764: 
1765: 
1766:                 ## TABS
1767:                 <div class="stats-tabs clearfix">
1768:                 <ul class="clearfix">
1769:                   <li #if (!($stats.view.length() > 0) || $stats.view == "boxscore") class="active" #end><a data-view="boxscore" href="${stats.pageUrl}">Box Score</a></li>
1770:                 #if ($hasPlayByPlay)
1771:                   <li #if ($stats.view == "plays") class="active" #end><a data-view="plays" href="${stats.pageUrl}${paramSep}view=plays" id="pbp">Play by Play</a></li>
1772:                 #end
1773:                 <li><a target="_blank" href="$stats.pageUrl?tmpl=vbxml-monospace-template">Coach's View</a></li>
1774:                 </ul>
1775:                 </div>
1776:             #end
1777: 
1778:             #macro (printTabPlayByPlay)
1779:                 ## PLAY BY PLAY
1780: 
1781:                 #set ($sets = $document.selectNodes("vbgame/plays/game"))
1782:                 <div class="stats-fullbox clearfix">
1783:                     <table>
1784: 
1785:                         #if ($stats.view != "pdf")
1786:                             <tr>
1787:                                 <td colspan="3">
1788:                                     <strong>Set: </strong>
1789:                                     #foreach ($set in $sets)
1790:                                         #if ($velocityCount > 1)&#160;|&#160;#end
1791:                                         #set ($s = $set.valueOf("@number"))
1792:                                         <a href="#set${s}">#printSetName($s)</a>
1793:                                     #end
1794:                                 </td>
1795:                             </tr>
1796:                         #end
1797:                         #foreach ($set in $sets)
1798:                             #set ($s = $set.valueOf("@number"))
1799:                             <tr>
1800:                                 <th>$visitorid</th>
1801:                                 <th id="set${s}">-- #printSetName($s) --</th>
1802:                                 <th>$homeid</th>
1803:                             </tr>
1804:                             #foreach ($play in $set.selectNodes("play"))
1805:                                 #if ($velocityCount % 2 == 0)
1806:                                     #set ($row = "even")
1807:                                 #else
1808:                                     #set ($row = "odd")
1809:                                 #end
1810:                                 <tr class="$row">
1811:                                     #if ($play.valueOf("@point").length() > 0)
1812:                                         <td class="align-center bold nowrap" >#if($play.valueOf("@point") == $visitorid)$play.valueOf("@vscore")-$play.valueOf("@hscore")#end</td>
1813:                                         <td>$play.valueOf("@text") Point $play.valueOf("@point")</td>
1814:                                         <td class="align-center bold nowrap" >#if($play.valueOf("@point") == $homeid)$play.valueOf("@vscore")-$play.valueOf("@hscore")#end</td>
1815:                                     #else
1816:                                         <td>&#160;</td>
1817:                                         <td>
1818:                                             $play.valueOf("@text")
1819:                                         </td>
1820:                                         <td>&#160;</td>
1821:                                     #end
1822:                                 </tr>
1823:                             #end
1824:                             #if ($stats.view != "pdf")
1825:                                 <tr><td colspan="3" class="align-center"><a href="#pbp">back to top</a></td></tr>
1826:                             #end
1827:                         #end
1828:                     </table>
1829:                 </div>
1830:             #end
1831: 
1832:             #macro (printTabBoxscore)
1833:                 ## DEFAULT VIEW
1834: 
1835:                 #set ($showLiberoLegend = false)
1836:                 #set ($showStartersLegend = false)
1837:                 #if ($document.selectNodes("//player[@ms='1']").size() > 0)
1838:                     #set ($showStartersLegend = true)
1839:                 #end
1840:                 #if ($document.selectNodes("//player[@pos='LB']").size() > 0)
1841:                     #set ($showLiberoLegend = true)
1842:                 #end
1843: 
1844:                 <div class="clearfix">
1845:                     ## VISITOR STATISTICS
1846:                     <div class="stats-halfbox-left">#attackgameBoxscore($document.selectSingleNode("vbgame/team[@vh='V']"))</div>
1847:                     ## HOME STATISTICS
1848:                     <div class="stats-halfbox-right">#attackgameBoxscore($document.selectSingleNode("vbgame/team[@vh='H']"))</div>
1849:                     <div class="clear"></div>
1850:                 </div>
1851: 
1852: 
1853:                 #macro (playerstats $team)
1854:                 <table>
1855:                     <tr>
1856:                         <td colspan="17" class="align-center">
1857:                             <h4>
1858:                                 $team.valueOf("@name")
1859:                             </h4>
1860:                         </td>
1861:                     </tr>
1862:                     <tr>
1863:                         <th colspan="3">&#160;</th>
1864:                         <th colspan="4">-- Attack --</th>
1865:                         <th>&#160;</th>
1866:                         <th colspan="3">-- Serve --</th>
1867:                         <th>&#160;</th>
1868:                         <th colspan="3">-- Block --</th>
1869:                         <th>&#160;</th>
1870:                         <th>&#160;</th>
1871:                     </tr>
1872:                     <tr>
1873:                         <th>#</th>
1874:                         <th>Player</th>
1875:                         <th>SP</th>
1876:                         <th>K</th>
1877:                         <th>E</th>
1878:                         <th>TA</th>
1879:                         <th>K%</th>
1880:                         <th>A</th>
1881:                         <th>SA</th>
1882:                         <th>SE</th>
1883:                         <th>RE</th>
1884:                         <th>DIGS</th>
1885:                         <th>BS</th>
1886:                         <th>BA</th>
1887:                         <th>BE</th>
1888:                         <th>BHE</th>
1889:                         <th>PTS</th>
1890:                     </tr>
1891:                     #set ($counter = 0)
1892:                     #foreach ($stat in $team.selectNodes("player"))
1893:                         #set ($setsplayed  =  $stat.numberValueOf("@gp"))
1894:                         #if ($setsplayed > 0)
1895:                             #set ($counter = $counter + 1)
1896:                             #if ($counter % 2 == 0)
1897:                                 #set ($row = "even")
1898:                             #else
1899:                                 #set ($row = "odd")
1900:                             #end
1901:                             <tr class="$row">
1902:                                 <td class="align-center">$!stat.valueOf("@uni")</td>
1903:                                 <td class="nowrap">
1904:                                     #if ($stat.valueOf("@playerId").length() > 0 and $linkPlayers and $stat.valueOf("../@link").length() > 0)
1905:                                     <a href="$!linkPlayersBase?id=${stat.valueOf("@playerId")}">
1906:                                     #end
1907:                                     $stat.valueOf("@name")
1908:                                     #if ($stat.valueOf("@playerId").length() > 0 and $linkPlayers and $stat.valueOf("../@link").length() > 0)
1909:                                     </a>
1910:                                     #end
1911:                                     #if ($stat.valueOf("@pos") == "LB")^#end
1912:                                     #if ($stat.valueOf("@ms") == "1")*#end
1913:                                 </td>
1914:                                 <td class="align-center">$!stat.valueOf("@gp")</td>
1915:                                 <td class="align-center">$!stat.valueOf("attack/@k")</td>
1916:                                 <td class="align-center">$!stat.valueOf("attack/@e")</td>
1917:                                 <td class="align-center">$!stat.valueOf("attack/@ta")</td>
1918:                                 <td class="align-center">$!stat.valueOf("attack/@pct")</td>
1919:                                 <td class="align-center">$!stat.valueOf("set/@a")</td>
1920:                                 <td class="align-center">$!stat.valueOf("serve/@sa")</td>
1921:                                 <td class="align-center">$!stat.valueOf("serve/@se")</td>
1922:                                 <td class="align-center">$!stat.valueOf("defense/@re")</td>
1923:                                 <td class="align-center">$!stat.valueOf("defense/@dig")</td>
1924:                                 <td class="align-center">$!stat.valueOf("block/@bs")</td>
1925:                                 <td class="align-center">$!stat.valueOf("block/@ba")</td>
1926:                                 <td class="align-center">$!stat.valueOf("block/@be")</td>
1927:                                 <td class="align-center">$!stat.valueOf("misc/@bhe")</td>
1928:                                 <td class="align-center">$!stat.valueOf("misc/@pts")</td>
1929:                             </tr>
1930:                         #end ## end $setsplayed
1931:                     #end
1932:                     <tr class="stats-highlight totals">
1933:                         <td colspan="3">Totals</td>
1934:                         <td class="align-center">$!team.valueOf("totals/attack/@k")</td>
1935:                         <td class="align-center">$!team.valueOf("totals/attack/@e")</td>
1936:                         <td class="align-center">$!team.valueOf("totals/attack/@ta")</td>
1937:                         <td class="align-center">$!team.valueOf("totals/attack/@pct")</td>
1938:                         <td class="align-center">$!team.valueOf("totals/set/@a")</td>
1939:                         <td class="align-center">$!team.valueOf("totals/serve/@sa")</td>
1940:                         <td class="align-center">$!team.valueOf("totals/serve/@se")</td>
1941:                         <td class="align-center">$!team.valueOf("totals/defense/@re")</td>
1942:                         <td class="align-center">$!team.valueOf("totals/defense/@dig")</td>
1943:                         <td class="align-center">$!team.valueOf("totals/block/@bs")</td>
1944:                         <td class="align-center">$!team.valueOf("totals/block/@ba")</td>
1945:                         <td class="align-center">$!team.valueOf("totals/block/@be")</td>
1946:                         <td class="align-center">$!team.valueOf("totals/misc/@bhe")</td>
1947:                         <td class="align-center">$!team.valueOf("totals/misc/@pts")</td>
1948:                     </tr>
1949:                 </table>
1950: 
1951:                 #end ##macro
1952: 
1953: 
1954:                 ## VISITOR STATISTICS
1955:                 <div class="stats-fullbox clearfix">#playerstats($document.selectSingleNode("vbgame/team[@vh='V']"))</div>
1956:                 ## HOME STATISTICS
1957:                 <div class="stats-fullbox clearfix">#playerstats($document.selectSingleNode("vbgame/team[@vh='H']"))</div>
1958: 
1959: 
1960:                 ## OTHER INFORMATION
1961:                 <div class="stats-fullbox summary clearfix">
1962:                     <table>
1963:                         <tr><th class="align-left">Other Information</th></tr>
1964:                         <tr>
1965:                             <td>
1966:                                 #if ($document.valueOf("vbgame/venue/@arena").length() > 0)
1967:                                     <span class="bold">Arena: </span>$document.valueOf("vbgame/venue/@arena")<br />
1968:                                 #end
1969:                                 <span class="bold">Attendance: </span>$document.valueOf("vbgame/venue/@attend")<br />
1970:                                 <span class="bold">Time: </span>$document.valueOf("vbgame/venue/@duration")
1971:                                 #foreach ($official in $document.selectNodes("vbgame/venue/officials/official"))
1972:                                     <br />
1973:                                     <span class="bold">$official.valueOf("@title"): </span>$official.valueOf("@name")
1974:                                 #end
1975:                             </td>
1976:                         </tr>
1977:                     </table>
1978:                 </div>
1979: 
1980:                 #if ($showStartersLegend)<div class="legend">* = Starter</div>#end
1981:                 #if ($showLiberoLegend)<div class="legend">^ = Libero</div>#end
1982:             #end
1983: 
1984:             #if ($stats.view == "plays" && $hasPlayByPlay)
1985:                 #printTabPlayByPlay()
1986:             #elseif ($stats.view == "pdf")
1987:                 #printPdfHeader("Box score")
1988:                 #parse("vbxml-monospace-template")
1989:                 #if ($hasPlayByPlay)
1990:                     <p class="pagebreak">&nbsp;</p>
1991:                     #printPdfHeader("Play by Play")
1992:                     #printTabPlayByPlay()
1993:                 #end
1994:             #else
1995:                 #printTabBoxscore()
1996:             #end ## ENDS VIEW CHECK
1997: 
1998:             </div>
1999: 
2000:             #if ($stats.view != "pdf")
2001:                 #set ($showWiki = true)
2002:                 #set ($showWiki = $showWikiVar)
2003: 
2004:                 #if ($showWiki == true)
2005:                     $!wiki.su
2006:                 #end
2007: 
2008:                 #changeViewScript()
2009:             #end
2010:         </body>
2011:     </html>
2012: 
2013: #end ## mobile
2014: #end