Saskatchewan

Alberta

Sat, Feb. 3, 2018
5:00 PM MST

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


Overview

Saskatchewan

Team Record Conf. Record Last Game
0-8 0-8 L, 3-0 at Calgary

Alberta

Team Record Conf. Record Last Game
7-1 7-1 W, 3-1 vs. UBC

Team Comparison

Kills/set

11.48
12.03

Hitting Pct.

.165
.270

Aces/set

1.34
1.55

Digs/set

8.00
8.61

Blocks/set

1.59
2.29
Saskatchewan (based on 8 games)
Alberta (based on 8 games)

Key Contributors


Kills

Colin Fraser
83140
Taryq Sani
Dylan Mortensen
7987
Alex McMullin

Hitting Pct.

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