-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcase-exports.html
682 lines (589 loc) · 28.7 KB
/
case-exports.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
<!DOCTYPE html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>Evidence Library 4 Web</title>
<link rel="stylesheet" href="css/app.css" />
<link href="css/font-awesome.css" rel="stylesheet" />
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Libre+Baskerville:400italic" />
<link rel="stylesheet" href="css/jquery-ui-1.10.4.custom.min.css" />
<link href="css/jquery.qtip.css" rel="stylesheet" />
<link rel="stylesheet" href="css/test.css" />
<link href="css/print.css" type="text/css" rel="stylesheet" media="print" />
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon"/>
<script src="js/modernizr.js"></script>
<!--[if gte IE 9]>
<style type="text/css">
.gradient {filter: none;}
</style>
<![endif]-->
</head>
<body>
<section class="main-section row-offcanvas clearfix search-icon-hidden">
<header id="header" class="">
<nav class="tab-bar" data-topbar>
<section class="middle tab-bar-section">
<h1 class="title"><a href="javascript:void(0);"><img id="logo" src="images/WG_ELW_logo.png" /></a></h1>
</section>
<section class="right-small show-for-medium-down"> <a class="right-offcanvas-toggle menu-icon" href="javascript:void(0);"><i class="fa fa-bars fa-lg"></i></a> </section>
</nav>
<nav class="nav-bar menu-sidebar-offcanvas offcanvas-sidebar">
<section class="nav-bar-section clearfix">
<h3 class="show-for-medium-down">Main Menu</h3>
<!-- Right Nav Section -->
<ul class="right">
<li><a href="index.html">Events</a> </li>
<li><a href="cases.html">Cases</a> </li>
<!--li><a href="event-exports.html">Event Exports <span class="label round">1</span></a></li>
<li><a href="case-exports.html">Case Exports <span class="label round">2</span></a></li-->
<li class="active"><a href="exports.html">Export Worksheet <span class="label round">2</span></a> </li>
<li><a href="queue.html">My Exports <span class="label round">2</span></a> </li>
<li class="has-dropdown"> <a href="javascript:void(0);">Manage</a>
<ul class="dropdown">
<li class=""><a href="vista.html"><i class="fa fa-cogs"></i> VISTA Dashboard</a> </li>
<li class=""><a href="vista2.html"><i class="fa fa-cogs"></i> USB Dashboard</a> </li>
<li class=""><a href="kiosk.html"><i class="fa fa-cogs"></i> Kiosk Mode</a> </li>
<li><a href="config.html"><i class="fa fa-cogs"></i> Share Configuration</a> </li>
<li><a href="javascript:void(0);"><i class="fa fa-cogs"></i> Submenu Item</a> </li>
</ul>
</li>
<li class="user-profile">
<a href="javascript:void(0);"><img src="images/avatar-icon.png" class="user-avatar" alt="" />Officer Lastname</a>
</li>
<li class="user-logout"><a href="login.html" class="has-tip tip-left" title="Logout of ELWeb"><i class="fa fa-power-off fa-lg"></i></a></li>
</ul>
</section>
</nav>
</header>
<!-- end header #head.class_name -->
<div id="content-outer-wrapper" class="no-sidebar checkered-background export-page-wrapper">
<a class="exit-off-canvas"></a>
<div class="row" id="content-wrapper">
<div class="small-12 medium-12 large-12 columns">
<div class="row clearfix" id="content-header">
<div id="system-msg">This is just an example notification message.</div>
<!-- end div#error-msg -->
<div class="small-12 medium-8 large-6 columns">
<h3><i class="fa fa-download"></i> <strong>Select Items</strong> to Export</h3>
</div><!-- end columns -->
<div class="small-12 medium-4 large-6 columns">
<div class="controls right-controls">
<div class="control">
<div class="button-group">
<a href="javascript:void(0);" id="expand-all" class="button secondary"><i class="fa fa-eye"></i> Expand All</a>
<a href="javascript:void(0);" id="collapse-all" class="button secondary"><i class="fa fa-eye-slash"></i> Collapse All</a>
</div>
</div><!-- end div.control labeled -->
</div><!-- end div.controls -->
</div>
</div>
<!-- end row -->
<div class="row" id="main-content">
<div class="small-12 medium-12 large-12 columns">
<div class="panel radius export-panel clearfix">
<!-- CASE EXPORT EXAMPLE -->
<div class="item export-item">
<label for="item-select2" class="item-select">
<div class="count-wrap">2</div>
<input type="checkbox" class="item-select-checkbox" name="item-select2" id="item-select2" value="" checked />
</label>
<div class="item-thumb"> <i class="fa fa-briefcase"></i> </div>
<!-- end div.item-thumb -->
<div class="row">
<div class="small-12 medium-12 large-12 columns">
<ul class="item-list">
<li><span>Case #: </span><strong>65468751</strong> </li>
<li><span>Created By: </span><strong>Clay Carrington</strong> </li>
<li><span>Created On: </span><strong>01/09/2014 11:03:40</strong> </li>
</ul>
</div>
<!-- end columns -->
</div>
<!-- end row -->
<div class="data-icon-group">
<a href="javascript:void(0);" id="" class="data-icon button gray-gradient">
<i class="fa fa-files-o"></i> <span>2 Attached Items</span>
</a>
<div class="data-icon"><i class="fa fa-video-camera"></i> <span>Video Size: 198.74MB</span> </div>
<div class="data-icon has-tip tip-top" data-tooltip title="Total Export Size: 198.74MB">Total Case Size: 298.74MB</div>
</div>
<!-- end div.data-icon-group -->
</div>
<!-- end event -->
<!-- CASE ITEM EXPORT EXAMPLE -->
<div class="linked-events">
<div class="linked-events-title"><i class="fa fa-files-o"></i> Case Attachments</div><!-- end div.linked-events-title -->
<div class="item export-item">
<label for="item-select21" class="item-select">
<div class="count-wrap">2-1</div>
<!--a href="javascript:void(0);" id="" class="linked-events-delete"><i class="fa fa-times error has-tip tip-right" title="Remove this item from Export Worksheet"></i></a--> <input type="checkbox" class="item-select-checkbox" name="item-select21" id="item-select21" value="" checked />
</label>
<div class="item-thumb">
<i class="fa fa-file"></i>
</div>
<!-- end div.item-thumb -->
<div class="row">
<div class="small-12 medium-12 large-12 columns">
<h3 class="case-title">File: screenshot_name-10-30-2014.jpg</h3>
<ul class="no-bullet list-columns">
<li><span>Added By: </span><strong>Matthew Sells</strong></li>
<li><span>Added On: </span><strong>01/09/14 11:03</strong></li>
</ul>
</div>
<!-- end columns -->
</div>
<div class="data-icon-group">
<div class="data-icon has-tip tip-top" data-tooltip title="Attachment Export Size: 198.74MB">198.74MB</div>
</div>
<!-- end div.data-icon-group -->
</div>
<!-- end event -->
<!-- end event -->
<div class="item export-item">
<label for="item-select22" class="item-select">
<div class="count-wrap">2-2</div>
<input type="checkbox" class="item-select-checkbox" name="item-select22" id="item-select22" value="" checked />
</label>
<div class="item-thumb"> <img src="images/event.jpg" class="" alt="" /> </div>
<!-- end div.item-thumb -->
<div class="row">
<div class="small-12 medium-12 large-12 columns">
<ul class="item-list">
<li><span>Date: </span><strong>01/09/2014 11:03:40</strong> </li>
<li><span>Officer: </span><strong>Adam Rushlow</strong> </li>
<li><span>Vehicle/Device: </span><strong>Camry</strong> </li>
<li><span>Category: </span><strong>DUI</strong> </li>
<li class="hide-for-large-thumbs"><span>Badge #: </span><strong>#3948</strong> </li>
<li><span>Event ID: </span><strong>00:1d:96:00:7d:07-55822749</strong> </li>
</ul>
</div>
<!-- end columns -->
</div>
<div class="data-icon-group">
<div class="data-icon"><i class="fa fa-video-camera"></i> Cameras: <span>
<label for="camera1B2">
<input id="camera1B2" checked="checked" type="checkbox" />
Front 720,</label>
</span> <span>
<label for="camera2B2">
<input id="camera2B2" checked="checked" type="checkbox" />
Rear 480,</label>
</span> <span>
<label for="auxB2">
<input id="auxB2" checked="checked" type="checkbox" />
Aux</label>
</span> </div>
<div class="data-icon"><i class="fa fa-clock-o"></i> <span>Duration: 00:41:01</span> </div>
<div class="data-icon has-tip tip-top" data-tooltip title="Total Export Size: 198.74MB">198.74MB</div>
</div>
<!-- end div.data-icon-group -->
</div>
<!-- end event -->
</div>
<!-- end div.linked-events -->
</div>
<!-- end div.panel radius -->
<div class="row" data-equalizer>
<div class="small-12 medium-7 large-9 columns">
<h4 class="panel-top-title dark-title"><i class="fa fa-gears"></i> Export Options</h4>
<div class="panel radius" id="export-video-options" data-equalizer-watch>
<div class="alert-box radius info" >
All Video Events in your Case Export will be provided in MP4 format (Including subtitles and the Watch Guard Video player).
</div><!-- end div.panel -->
<div class="row">
<div class="small-12 medium-12 large-12 columns">
<h4 class="">Select A Destination</h4>
<div id="export-destinations" class="clearfix">
<a href="javascript:void(0);" class="export-destination" data-value="1">
<img src="images/disk-drive.png" class="dest-icon" alt="" />
<div class="dest-title">Local Computer</div>
<div class="dest-desc">Local or Network</div>
</a>
<a href="javascript:void(0);" class="export-destination" data-value="2" >
<img src="images/disks.png" class="dest-icon" alt="" />
<div class="dest-title">Burn to Disc</div>
<div class="dest-desc">CD, DVD or BluRay</div>
</a>
<a href="javascript:void(0);" class="export-destination" data-value="3">
<img src="images/dvd-burner.png" class="dest-icon" alt="" />
<div class="dest-title">DVD Robot</div>
<div class="dest-desc">Queue for Burning</div>
</a>
</div>
<div id="export-destination-options" class="clearfix">
<div class="export-destination-option option1">
<label for="">Default Download Location:</label>
<div class="row">
<div class="small-12 medium-12 large-12 columns">
<div class="inline-block">C://usershare/My Documents/Exports/</div>
<a href="javascript:void(0);" class="button secondary tiny inline-block">Change Location</a>
</div><!-- end columns -->
</div><!-- end row -->
<label class="onoffswitch alert-yes" for="download-complete">
<input type="checkbox" name="download-complete" class="onoffswitch-checkbox" id="download-complete" checked />
<div class="onoffswitch-container">
<div class="onoffswitch-slide">
<span class="onoffswitch-active">Yes</span>
<span class="onoffswitch-switch"></span>
<span class="onoffswitch-inactive">No</span>
</div><!-- end div.onoffswitch-slide -->
</div><!-- end div.onoffswitch-container -->
<div class="label-msg"><i class="fa fa-info-circle"></i> Automatically download when the export is complete?</div>
</label>
</div><!-- end option -->
<div class="export-destination-option option2">
<div id="media-types">
<label for="">Select your Media Type:</label>
<a href="javascript:void(0);" id="media-cd" class="media-type"><img src="images/cd-icon.png" class="" alt="" />
<!-- div class="disc-count">3</div -->
<div class="export-disc-title cd-title">4 CDs</div>
<div class="disc-size">700 MB</div>
</a>
<a href="javascript:void(0);" id="media-dvd" class="media-type"><img src="images/dvd-icon.png" class="" alt="" />
<div class="default-device"><i class="fa fa-bookmark"></i> Default</div>
<!-- div class="disc-count">2</div -->
<div class="export-disc-title dvd-title">2 DVDs</div>
<div class="disc-size">4.7 GB</div>
</a>
<a href="javascript:void(0);" id="media-dvd-dl" class="media-type incompat"><img src="images/dvd-dl-icon.png" class="" alt="" />
<!-- div class="disc-count">1</div -->
<div class="export-disc-title dvd9-title">1 DVD-DL</div>
<div class="disc-size">8.5 GB</div>
</a>
<a href="javascript:void(0);" id="media-bluray" class="media-type incompat"><img src="images/bluray-icon.png" class="" alt="" />
<!-- div class="disc-count">1</div -->
<div class="export-disc-title bluray-title">1 BluRay</div>
<div class="disc-size">25 GB</div>
</a>
</div><!-- end div#media-types -->
<label class="onoffswitch alert-yes" for="burn-disc" id="burn-disc-label">
<input type="checkbox" name="burn-disc" class="onoffswitch-checkbox" id="burn-disc" checked />
<div class="onoffswitch-container">
<div class="onoffswitch-slide">
<span class="onoffswitch-active">Yes</span>
<span class="onoffswitch-switch"></span>
<span class="onoffswitch-inactive">No</span>
</div><!-- end div.onoffswitch-slide -->
</div><!-- end div.onoffswitch-container -->
<div class="label-msg"><i class="fa fa-info-circle"></i> Automatically Burn to Disc when the export is complete?</div>
</label>
<div data-alert class="alert-box info radius" id="incompatible-media">
Your Computer is not compatible with this Media Type.<br/> Manage this Export Job from the My Exports page.
</div>
</div><!-- end option -->
<div class="export-destination-option option3">
<div class="row">
<div class="small-12 medium-12 large-12 columns">
<label>Select the DVD Robot to burn discs to</label>
<a href="javascript:void(0);" class="checkbox-option" id="" data-checked="">
<div class="checked-state"></div><!-- end div.checked-state -->
<div class="option-text"><i class="fa fa-database"></i><br />TSROBOT</div>
</a>
<a href="javascript:void(0);" class="checkbox-option" id="" data-checked="">
<div class="checked-state"></div><!-- end div.checked-state -->
<div class="option-text"><i class="fa fa-database"></i><br />Mr. Roboto</div>
</a>
<label>Number of Copies</label>
<!--select class="select inline-select">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select-->
<input type="text" name="copies" id="copies" value="1" class="inline-input" style="width: 60px"/>
</div><!-- end columns -->
</div><!-- end row -->
</div><!-- end option -->
</div>
<!-- end #export-destination-options -->
</div>
<!-- end columns -->
</div>
<!-- end row -->
</div>
<!-- end div.panel radius -->
</div>
<!-- end columns -->
<div class="small-12 medium-5 large-3 columns">
<h4 class="panel-top-title dark-title"><i class="fa fa-list-ul"></i> Export Summary</h4>
<div class="panel radius" data-equalizer-watch>
<div class="export-data-block">
<div class="export-data"><span class="export-size">287</span> MB</div>
<div class="export-label">Estimated Size</div>
</div><!-- end div#export-info-size -->
<div class="export-data-block export-speed">
<div class="export-data">Fast</div>
<!--div class="export-label">Export Speed</div-->
<id id="gauge"></id>
</div><!-- end .export-data-block export-speed -->
<div id="export-label">
<label for="export-label-name">Reference Label</label>
<input type="text" name="export-label-name" id="export-label-name" value="" tabindex="" placeholder="Enter an Rerference or Recipient Name" class="" />
</div><!-- end div#export-recipient-other -->
<a href="queue.html" class="button primary large radius block-button" id="export-submit" disabled>Prepare Export</a>
<a href="javascript:void(0);" class="button small secondary radius no-margin">Cancel Export</a> </div>
<!-- end div.panel radius -->
</div>
<!-- end columns -->
</div>
<!-- end row -->
</div>
<!-- end columns -->
</div>
<!-- end #main-content row -->
</div>
<!-- end content-wrapper columns -->
</div>
<!-- end #content-wrapper -->
</div>
<!-- end #content-outer-wrapper -->
<footer>
<div class="row">
<div class="small-12 medium-12 large-6 columns">
<p class="muted">Copyright <sup>®</sup> 2014 WatchGuard Video. All rights reserved. <a href="javascript:void(0);" class="">Need Help?</a></p>
</div><!-- end columns -->
<div class="small-12 medium-12 large-6 columns show-for-medium-up">
<div class="row collapse text-centered">
<div class="small-12 medium-6 large-6 columns">
<p class="muted">Build: 1.248</p>
</div><!-- end columns -->
<div class="small-12 medium-6 large-6 columns">
<p class ="muted">Version: 4.0.1</p>
</div><!-- end columns -->
</div><!-- end row -->
</div><!-- end columns -->
</div><!-- end row -->
</footer>
</section>
<!-- end main section -->
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/kendo.all.min.js"></script>
<script type="text/javascript" src="js/foundation.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/chosen.jquery.js"></script>
<script type="text/javascript" src="js/jquery.qtip.js"></script>
<script type="text/javascript"src="js/responsive-tables.js"></script>
<!--script type="text/javascript" src="http://cdn.kendostatic.com/2015.1.318/js/kendo.all.min.js"></script-->
<script type="text/javascript" src="js/app.js"></script>
<script type="text/javascript">
$(document).ready(function() {
// toggle linked events/items -- replace with binding
$('.export-item .button.gray-gradient').click(function(){
var toggleThis = $(this).closest('.export-item').next('.linked-events');
toggleThis.toggle();
});
// lets collapse them all !!
$('#expand-all').on('click', function(){
$('.export-item').each(function(){
$(this).next('.linked-events').show();
});
});
$('#collapse-all').on('click', function(){
$('.export-item').each(function(){
$(this).next('.linked-events').hide();
});
});
$("#gauge").kendoRadialGauge({
pointer: {
value: 180,
cap: {
color: '#000',
size: 0.1
},
color: '#444',
},
scale: {
minorUnit: 5,
startAngle: 0,
endAngle: 180,
max: 180,
majorTicks: {
visible: false
},
minorTicks: {
visible: false
},
labels: {
visible: false
},
rangeSize: 30,
ranges: [
{
from: 0,
to: 45,
color: "#c20000"
}, {
from: 45,
to: 90,
color: "#ff7a00"
}, {
from: 90,
to: 125,
color: "#ffc700"
}, {
from: 125,
to: 180,
color: "#86e01e"
}
]
}
});
/* telerik suppport's idea for controlling gauge value.. no dice
var gauge = $("#gauge").data("kendoLinearGauge");
gauge.options.scale.ranges[0].from = 200;
gauge.redraw();
*/
$('.right-offcanvas-toggle').click(function(){
$('.row-offcanvas').toggleClass('menu-active');
});
$('.exit-off-canvas').click(function(){
$('.row-offcanvas').removeClass('menu-active');
});
// default: show orig format option. On click, show other options
$('#change-export-format').on('click', function(e) {
// hide the orig format container
$('#export-format-default').hide(50, function(){
// show the dropdown for other export formats
$('#export-format-options').css('display', 'block');
// keep the dropdown open - must stop click propagation to keep chosen open
e.stopPropagation();
$('#export-format-select').trigger('chosen:open');
});
// preselect the next option so the user can easily reselect the default
$('#export-format-select option:eq(1)').prop('selected', true).change().trigger('chosen:updated');
});
// preset speed at 3, for the native option (fastest)
speed = 5;
// toggle the 'Add Video Play Application' option and Video Quality option based on Format selection
$('#export-format-select').on('change', function() {
exportFormat = $(this).find("option:selected").val();
// hide the quality option
$('#export-option-quality').hide();
// if TS is selected
if (exportFormat == 1) {
// TS Format
$('#export-format-default').show();
$('#export-format-options').hide();
speed = 5;
// if any other format is selected, capture embed text option and calc export speed
}
else {
if (exportFormat == 2) {
// MPEG2
speed = 4;
}
else if (exportFormat == 3) {
// WMV
speed = 2;
}
else if (exportFormat == 4) {
// DVD Video
$('#export-option-quality').show();
speed = 3;
}
else if (exportFormat == 5) {
// AVI
speed = 1;
}
}
updateSpeed();
}).change();
$('#export-destination').on('change', function() {
var exportDestination = $(this).find("option:selected").val();
if (exportDestination > 0) {
$('.export-destination-option').hide();
$('#export-destination-options').find('.option' + exportDestination).show();
}
else {
$('.export-destination-option').hide();
}
}).change();
$('#export-disc-type').hide();
$('#export-destinations a').click(function(){
var option = $(this).attr('data-value'),
group = $(this).parent(),
siblings = group.find('a');
siblings.removeClass('active');
$(this).addClass('active');
//alert(option);
if (option) {
$('.export-destination-option').hide();
$('#export-destination-options').find('.option'+option).show();
$('#media-types a').removeClass('active');
// reflow to re-match heights of Video Options and Export Summary boxes
$(document).foundation('reflow');
}
if(option==2){
$('#export-submit').attr('disabled', true);
$('#export-disc-type').show();
} else if(option == 3) {
$('#export-disc-type').show();
}else{
$('#export-submit').attr('disabled', false);
$('#export-disc-type').hide();
}
});
$('#media-types a').click(function(){
var group = $(this).parent(),
siblings = group.find('a');
siblings.removeClass('active');
$(this).addClass('active');
$('#export-submit').attr('disabled', false);
if($(this).hasClass('incompat')){
$('#burn-disc-label').hide();
$('#incompatible-media').show();
} else {
$('#burn-disc-label').show();
$('#incompatible-media').hide();
}
});
$('.input-group input').on('click', function(){
if(!this.checked ){ // if it's already in a checked state...
speed = speed + 1;
} else {
speed = speed - 1;
}
updateSpeed();
});
function updateSpeed() {
if (speed <= 1) {
$('.export-speed').find('.export-data').html('slowest');
//gauge.set(25);
$("#gauge").data("kendoRadialGauge").value('1');
$('.export-size').html('1,654');
$('.export-disc .cd-title, #media-cd .disc-count').html('4');
}
else if (speed == 2) {
$('.export-speed').find('.export-data').html('slower');
//gauge.set(50);
$("#gauge").data("kendoRadialGauge").value('45');
$('.export-size').html('987');
$('.export-disc .cd-title, #media-cd .disc-count').html('2');
}
else if (speed == 3) {
$('.export-speed').find('.export-data').html('slow');
//gauge.set(50);
$("#gauge").data("kendoRadialGauge").value('90');
$('.export-size').html('806');
$('.export-disc .cd-title, #media-cd .disc-count').html('1');
}
else if (speed == 4) {
$('.export-speed').find('.export-data').html('fast');
//gauge.set(100);
$("#gauge").data("kendoRadialGauge").value('135');
$('.export-size').html('682');
$('.export-disc .cd-title, #media-cd .disc-count').html('2');
}
else if (speed == 5) {
$('.export-speed').find('.export-data').html('fastest');
//gauge.set(100);
$("#gauge").data("kendoRadialGauge").value('180');
$('.export-size').html('682');
$('.export-disc .cd-title, #media-cd .disc-count').html('1');
}
}
}); // end docready
</script>
</body>
</html>