-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathtest_create.html
1175 lines (1171 loc) · 88.1 KB
/
test_create.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
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<!-- This defines the test creator tool for the Web Audio Evaluation Toolbox -->
<link rel="stylesheet" type="text/css" href="test_create/style.css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script src="js/jquery-2.1.4.js"></script>
<script src="js/angular.min.js"></script>
<script type="text/javascript" src="js/specification.js"></script>
<script type="text/javascript" src="test_create/test_core.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script type="text/javascript" src="js/xmllint.js"></script>
<title>WAET 1.2.2 Test Creator</title>
</head>
<body ng-app="creator" ng-controller="view">
<div class="container">
<div id="pageRoot">
<h1>Web Audio Evaluation Tool</h1>
<h3>Test Creator <span class="label label-primary">v1.2.3</span></h3>
</div>
<button type="button" class="btn btn-info" ng-click="validate()">Validate</button>
<button type="button" class="btn btn-success" ng-click="exportXML()" ng-disabled="validated == false">Export XML</button>
<div ng-switch on="validated" ng-show="showValidationMessages">
<div class="panel panel-danger" ng-switch-when="false">
<div class="panel-heading">
<button type="button" class="close" data-dismiss="alert" aria-label="Close" ng-click="hideValidationMessages"><span aria-hidden="true">×</span></button>
<h3 class="panel-title">Invalid Specification!</h3>
</div>
<div class="panel-body">
<p>Your specification is invalid. Please fix the following issues!</p>
<ul id="validation-error-list">
<li>Errors</li>
</ul>
</div>
</div>
<div class="alert alert-success" role="alert" ng-switch-when="true">
<button type="button" class="close" data-dismiss="alert" aria-label="Close" ng-click="hideValidationMessages"><span aria-hidden="true">×</span></button>
<strong>Validates! </strong><span>Well done, you can export this specification!</span>
</div>
</div>
<div id="setupNode" class="node" ng-controller="setup">
<h2>Setup</h2>
<div class="attributes">
<div class="attribute">
<span>Interface: </span>
<select type="text" ng-model="specification.interface" required>
<option value="{{i.name}}" ng-repeat="i in availableInterfaceModules">{{i.name}}</option>
</select>
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="If you would like to save to a server other than your hosting server, you can place the full WAET URL here">
<span>Save URL: </span>
<input type="text" ng-model="specification.projectReturn" placeholder="save.php" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Once the test is completed and save confirmed, the browser will redirect to this page, if not defined.">
<span>Exit URL: </span>
<input type="text" ng-model="specification.returnURL" placeholder="{{placeholder('returnURL')}}" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Randomise the page order">
<span>Randomise Page Order: </span>
<input type="checkbox" ng-model="specification.randomiseOrder" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Set the number of pages to present to the user. This includes repeated pages. Set to '0' or blank to ignore. Randomise page order must be selected.">
<span>Page Pool Size: </span>
<input type="number" ng-model="specification.poolSize" min="0" placeholder="{{placeholder('poolSize')}}" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Automatically analyse and normalsie audio to this target LUFS. If unsure, use -25LUFS. 0 or blank disables normalisation">
<span>Loudness Normalisation (LUFS): </span>
<input type="number" ng-model="specification.loudness" max="0" placeholder="{{placeholder('loudness')}}" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Only perform the test if the browser reported sampling rate matches this.">
<span>Fixed Sampling Rate: </span>
<input type="number" ng-model="specification.sampleRate" min="0" placeholder="{{placeholder('sampleRate')}}" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Default cross-fade time when switching between elements. Can be over-ridden on each page">
<span>Global Cross-fade time: </span>
<input type="number" ng-model="specification.crossFade" min="0" step="0.1" placeholder="{{placeholder('crossFade')}}" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Default pre-play element silence. Can be over-ridden on each page and element">
<span>Global Fragment Pre-Silence: </span>
<input type="number" ng-model="specification.preSilence" min="0" step="0.1" placeholder="{{placeholder('preSilence')}}" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Default post-play element silence. Can be over-ridden on each page and element">
<span>Global Fragment Post-Silence: </span>
<input type="number" ng-model="specification.postSilence" min="0" step="0.1" placeholder="{{placeholder('postSilence')}}" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Disable switching of audio elements">
<span>Play audio one-at-a-time: </span>
<input type="checkbox" ng-model="specification.playOne" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Minimum number of times an audio fragment must be played">
<span>Minimum number of fragment plays</span>
<input type="number" ng-model="specification.minNumberPlays" min="0" max="{{specification.maxNumberPlays}}" placeholder="{{placeholder('minNumberPlays')}}" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Maximum number of times an audio fragment can be played">
<span>Maximum number of fragment plays</span>
<input type="number" ng-model="specification.maxNumberPlays" min="{{specification.minNumberPlays || 0}}" placeholder="{{placeholder('maxNumberPlays')}}" />
</div>
</div>
<div class="node">
<h2>Test Completed Message</h2>
<textarea ng-model="specification.exitText" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Once the test is completed, you can show a message to the user. Markdown syntax is supported for formatting."></textarea>
</div>
<div class="node">
<h2>Pre-Test Calibrations</h2>
<div class="attributes">
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Perform a frequency listening response">
<span>Check Frequency Response</span>
<input type="checkbox" value="testTimer" ng-model="specification.calibration.checkFrequencies" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Set the output levels">
<span>Check Levels</span>
<input type="checkbox" value="testTimer" ng-model="specification.calibration.checkLevels" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Check L/R configuration">
<span>Check Channels</span>
<input type="checkbox" value="testTimer" ng-model="specification.calibration.checkChannels" />
</div>
</div>
</div>
<div id="metricsNode" class="node">
<h3>Session Metrics</h3>
<div class="attributes">
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Report the total test participation time">
<span>Collect Total Test Time: </span>
<input type="checkbox" value="testTimer" ng-click="enableMetric($event)" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Collect the accumulative listening time for each fragment">
<span>Collect Fragment Listen Time: </span>
<input type="checkbox" value="elementTimer" ng-click="enableMetric($event)" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Store the initial position of the fragment">
<span>Collect Fragment Initial Position: </span>
<input type="checkbox" value="elementInitialPosition" ng-click="enableMetric($event)" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Store each movement / value change of each fragment with page-relative timestamps.">
<span>Collect Fragment Movements: </span>
<input type="checkbox" value="elementTracker" ng-click="enableMetric($event)" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Store boolean reporting if a fragment has been played">
<span>Collect Fragment Listened To Flag: </span>
<input type="checkbox" value="elementFlagListenedTo" ng-click="enableMetric($event)" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Store boolean reporting if a fragment has been moved">
<span>Collect Fragment Moved Flag: </span>
<input type="checkbox" value="elementFlagMoved" ng-click="enableMetric($event)" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Store each time a fragment starts and stops playback with page relative timestamps. Also holds fragment relative timestamps.">
<span>Collect Fragment Listened Flag: </span>
<input type="checkbox" value="elementListenTracker" ng-click="enableMetric($event)" />
</div>
</div>
</div>
<div id="globalpresurvey" class="node" ng-controller="survey" ng-init="survey = specification.preTest">
<h2>Pre Test Survey</h2>
<div class="attributes">
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Allow users to go both back and forward in the test">
<span>Show back button: </span>
<input type="checkbox" ng-model="survey.showBackButton" />
</div>
</div>
<button type="button" class="btn btn-success" ng-click="addSurveyEntry()">Add Entry</button>
<div class="node surveyentry" ng-repeat="opt in survey.options" ng-controller="surveyOption">
<h3>Survey Entry</h3>
<button type="button" class="btn btn-danger" ng-click="removeSurveyEntry(opt);">Delete Entry</button>
<div class="attributes">
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Type of survey entry.">
<span>Survey Type: </span>
<select ng-model="opt.type">
<option value="question">Question</option>
<option value="radio">Radio</option>
<option value="checkbox">Checkbox</option>
<option value="statement">Statement</option>
<option value="number">Number</option>
<option value="slider">Slider</option>
<option value="video">Video</option>
<option value="youtube">YouTube</option>
</select>
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Unique across the entire session of all ID entries. ">
<span>Unique Survey Entry ID:</span>
<input type="text" ng-model="opt.id" required/>
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Friendly name. Will be used in test results parsers instead of the ID, if defined.">
<span>Entry Name:</span>
<input type="text" ng-model="opt.name" />
</div>
<div class="attribute" ng-show="['question', 'checkbox', 'radio', 'number'].indexOf(opt.type) >= 0" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="An answer must be given to continue with the test.">
<span>Mandatory:</span>
<input type="checkbox" ng-model="opt.mandatory" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Minimum time in seconds before continuing.">
<span>Minimum Wait Time (s):</span>
<input type="number" ng-model="opt.minWait" min="0" />
</div>
<div class="attribute" ng-show="opt.type == 'question'" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Size of the displayed text box. Does not limit entry but may discourage (or encourage) longer ansewrs if bigger.">
<span>Box Size:</span>
<select ng-model="opt.boxsize">
<option value="small">Small</option>
<option value="normal">Normal</option>
<option value="large">Large</option>
<option value="huge">Huge</option>
</select>
</div>
<div class="attribute" ng-show="['checkbox', 'radio'].indexOf(opt.type) >= 0" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="The minimum number of options that must be selected before continuing">
<span>Minimum Selected:</span>
<input type="number" ng-model="opt.min" min="0" />
</div>
<div class="attribute" ng-show="['checkbox', 'radio'].indexOf(opt.type) >= 0" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Maximum number of options that can be selected to continue.">
<span>Maximum Selected:</span>
<input type="number" ng-model="opt.max" max="{{opt.options.length}}" />
</div>
<div class="attribute" ng-show="['slider', 'number'].indexOf(opt.type) >= 0" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Minimum numerical value">
<span>Minimum Value:</span>
<input type="number" ng-model="opt.min" />
</div>
<div class="attribute" ng-show="['slider', 'number'].indexOf(opt.type) >= 0" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Maximum numerical value">
<span>Maximum Value:</span>
<input type="number" ng-model="opt.max" />
</div>
<div class="attribute" ng-show="['video', 'youtube'].indexOf(opt.type) >= 0" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="URL of the video to embed.">
<span>Video URL:</span>
<input type="text" ng-model="opt.url" />
</div>
</div>
<div class="node" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Statement / Question to pose to the subject.">
<h4>Statement</h4>
<textarea ng-model="opt.statement"></textarea>
</div>
<div class="node" ng-show="['checkbox', 'radio'].indexOf(opt.type) >= 0">
<h4>Options</h4>
<div>
<button type="button" class="btn btn-default" ng-click="addOption();">Add Option</button>
</div>
<div class="node" ng-repeat="option in opt.options">
<div class="attributes">
<div class="attribute">
<button type="button" class="btn btn-default" ng-click="removeOption(option);">Remove</button>
</div>
<div class="attribute">
<span>Name: </span>
<input type="text" ng-model="option.name" required/>
</div>
<div class="attribute">
<span>Displayed Text: </span>
<input type="text" ng-model="option.text" required/>
</div>
</div>
</div>
</div>
<div class="node">
<h4>Conditionals</h4>
<button type="button" class="btn btn-default" ng-click="addCondition()">Add Condition</button>
<div class="node" ng-repeat="condition in opt.conditions">
<div class="attributes">
<div class="attribute">
<button type="button" class="btn btn-danger" ng-click="removeCondition(condition)">Remove</button>
</div>
<div class="attribute">
<span>Check Type:</span>
<select ng-model="condition.check">
<option value="equals">Equal To</option>
<option value="lessThan">Less Than</option>
<option value="greaterThan">Greater Than</option>
<option value="stringContains">String Contains</option>
</select>
</div>
<div class="attribute">
<span>Value: </span>
<input type="text" ng-model="condition.value" required/>
</div>
<div class="attribute">
<span>Jump To On Pass: </span>
<select ng-model="condition.jumpToOnPass">
<option value="">None</option>
<option ng-repeat="entry in survey.options" value="{{entry.id}}">{{entry.id}}</option>
</select>
</div>
<div class="attribute">
<span>Jump To On Fail: </span>
<select ng-model="condition.jumpToOnFail">
<option value="">None</option>
<option ng-repeat="entry in survey.options" value="{{entry.id}}">{{entry.id}}</option>
</select>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="globalpostsurvey" class="node" ng-controller="survey" ng-init="survey = specification.postTest">
<h2>Post Test Survey</h2>
<div class="attributes">
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Allow users to go both back and forward in the test">
<span>Show back button: </span>
<input type="checkbox" ng-model="survey.showBackButton" />
</div>
</div>
<button type="button" class="btn btn-success" ng-click="addSurveyEntry()">Add Entry</button>
<div class="node surveyentry" ng-repeat="opt in survey.options" ng-controller="surveyOption">
<h3>Survey Entry</h3>
<button type="button" class="btn btn-danger" ng-click="removeSurveyEntry(opt);">Delete Entry</button>
<div class="attributes">
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Type of survey entry.">
<span>Survey Type: </span>
<select ng-model="opt.type">
<option value="question">Question</option>
<option value="radio">Radio</option>
<option value="checkbox">Checkbox</option>
<option value="statement">Statement</option>
<option value="number">Number</option>
<option value="slider">Slider</option>
<option value="video">Video</option>
<option value="youtube">YouTube</option>
</select>
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Unique across the entire session of all ID entries. ">
<span>Unique Survey Entry ID:</span>
<input type="text" ng-model="opt.id" required/>
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Friendly name. Will be used in test results parsers instead of the ID, if defined.">
<span>Entry Name:</span>
<input type="text" ng-model="opt.name" />
</div>
<div class="attribute" ng-show="['question', 'checkbox', 'radio', 'number'].indexOf(opt.type) >= 0" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="An answer must be given to continue with the test.">
<span>Mandatory:</span>
<input type="checkbox" ng-model="opt.mandatory" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Minimum time in seconds before continuing.">
<span>Minimum Wait Time (s):</span>
<input type="number" ng-model="opt.minWait" min="0" />
</div>
<div class="attribute" ng-show="opt.type == 'question'" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Size of the displayed text box. Does not limit entry but may discourage (or encourage) longer ansewrs if bigger.">
<span>Box Size:</span>
<select ng-model="opt.boxsize">
<option value="small">Small</option>
<option value="normal">Normal</option>
<option value="large">Large</option>
<option value="huge">Huge</option>
</select>
</div>
<div class="attribute" ng-show="['checkbox', 'radio'].indexOf(opt.type) >= 0" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="The minimum number of options that must be selected before continuing">
<span>Minimum Selected:</span>
<input type="number" ng-model="opt.min" min="0" />
</div>
<div class="attribute" ng-show="['checkbox', 'radio'].indexOf(opt.type) >= 0" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Maximum number of options that can be selected to continue.">
<span>Maximum Selected:</span>
<input type="number" ng-model="opt.max" max="{{opt.options.length}}" />
</div>
<div class="attribute" ng-show="['slider', 'number'].indexOf(opt.type) >= 0" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Minimum numerical value">
<span>Minimum Value:</span>
<input type="number" ng-model="opt.min" />
</div>
<div class="attribute" ng-show="['slider', 'number'].indexOf(opt.type) >= 0" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Maximum numerical value">
<span>Maximum Value:</span>
<input type="number" ng-model="opt.max" />
</div>
<div class="attribute" ng-show="['video', 'youtube'].indexOf(opt.type) >= 0" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="URL of the video to embed.">
<span>Video URL:</span>
<input type="text" ng-model="opt.url" />
</div>
</div>
<div class="node" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Statement / Question to pose to the subject.">
<h4>Statement</h4>
<textarea ng-model="opt.statement"></textarea>
</div>
<div class="node" ng-show="['checkbox', 'radio'].indexOf(opt.type) >= 0">
<h4>Options</h4>
<div>
<button type="button" class="btn btn-default" ng-click="addOption();">Add Option</button>
</div>
<div class="node" ng-repeat="option in opt.options">
<div class="attributes">
<div class="attribute">
<button type="button" class="btn btn-default" ng-click="removeOption(option);">Remove</button>
</div>
<div class="attribute">
<span>Name: </span>
<input type="text" ng-model="option.name" required/>
</div>
<div class="attribute">
<span>Displayed Text: </span>
<input type="text" ng-model="option.text" required/>
</div>
</div>
</div>
</div>
<div class="node">
<h4>Conditionals</h4>
<button type="button" class="btn btn-default" ng-click="addCondition()">Add Condition</button>
<div class="node" ng-repeat="condition in opt.conditions">
<div class="attributes">
<div class="attribute">
<button type="button" class="btn btn-danger" ng-click="removeCondition(condition)">Remove</button>
</div>
<div class="attribute">
<span>Check Type:</span>
<select ng-model="condition.check">
<option value="equals">Equal To</option>
<option value="lessThan">Less Than</option>
<option value="greaterThan">Greater Than</option>
<option value="stringContains">String Contains</option>
</select>
</div>
<div class="attribute">
<span>Value: </span>
<input type="text" ng-model="condition.value" required/>
</div>
<div class="attribute">
<span>Jump To On Pass: </span>
<select ng-model="condition.jumpToOnPass">
<option value="">None</option>
<option ng-repeat="entry in survey.options" value="{{entry.id}}">{{entry.id}}</option>
</select>
</div>
<div class="attribute">
<span>Jump To On Fail: </span>
<select ng-model="condition.jumpToOnFail">
<option value="">None</option>
<option ng-repeat="entry in survey.options" value="{{entry.id}}">{{entry.id}}</option>
</select>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="globalinterface" class="node" ng-controller="interfaceNode" ng-init="interface = specification.interfaces">
<h2>Interface (Globals)</h2>
<div class="node interfaceOptions">
<div class="attributes">
<div class="attribute" name="fragmentPlayed" type="check" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="A page can only be submitted if all fragments have been played">
<span>Check all fragments played: </span>
<input type="checkbox" ng-click="enableInterfaceOption($event)" />
</div>
<div class="attribute" name="fragmentFullPlayback" type="check" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="A page can only be submitted if all fragments have been played completely.">
<span>Check all fragments fully played: </span>
<input type="checkbox" ng-click="enableInterfaceOption($event)" />
</div>
<div class="attribute" name="fragmentMoved" type="check" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="A page can only be submitted if all fragments have been moved">
<span>Check all fragments have been moved: </span>
<input type="checkbox" ng-click="enableInterfaceOption($event)" />
</div>
<div class="attribute" name="fragmentComments" type="check" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="A page can only be submitted if all fragments have their comment boxes completed.">
<span>Check all fragments have comments: </span>
<input type="checkbox" ng-click="enableInterfaceOption($event)" />
</div>
<div class="attribute" name="scalerange" type="check" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="A page can only be submitted if there are fragments above and below the maximum and minimum ranges.">
<span>Enforce a scale usage: </span>
<input type="checkbox" ng-click="enableInterfaceOption($event)" />
<div ng-show="interface.options.find((x)=>{return x.name == 'scalerange';})">
<span>Minimum:</span>
<input type="number" min="0" max="100" name="min" ng-keyup="updateScaleRange();"/>
<span>Maximum:</span>
<input type="number" min="0" max="100" name="max" ng-keyup="updateScaleRange();"/>
</div>
</div>
<div class="attribute" name="volume" type="show" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Show the master volume control on each page.">
<span>Show master volume control: </span>
<input type="checkbox" ng-click="enableInterfaceOption($event)" />
</div>
<div class="attribute" name="playhead" type="show" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Show the playhead for the fragments.">
<span>Show playhead: </span>
<input type="checkbox" ng-click="enableInterfaceOption($event)" />
</div>
<div class="attribute" name="page-count" type="show" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Show number of completed and remaining pages.">
<span>Show Page Count: </span>
<input type="checkbox" ng-click="enableInterfaceOption($event)" />
</div>
<div class="attribute" name="comments" type="show" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Show comment boxes for each fragment.">
<span>Show Fragment Comments: </span>
<input type="checkbox" ng-click="enableInterfaceOption($event)" />
</div>
<div class="attribute" name="ticks" type="show" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Show tick marks for each scale label">
<span>Show Scale Ticks: </span>
<input type="checkbox" ng-click="enableInterfaceOption($event)" />
</div>
</div>
</div>
</div>
</div>
<div style="text-align: center;">
<button type="button" class="btn btn-success" ng-click="addPage()">Add Page</button>
</div>
<div class="node pageNode" ng-controller="page" ng-repeat="page in specification.pages" dropzone>
<h2>Page</h2>
<button type="button" class="btn btn-danger" ng-click="removePage(page)">Remove Page</button>
<div class="attributes">
<div class="attribute">
<span>Unique ID: </span>
<input type="text" ng-model="page.id" required/>
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Define the common root of each fragment URL. For example if every fragment URL starts with 'http://example.org/media/' then this can be placed here and the remainder for each fragment in their respective URL boxed.">
<span>Fragment common-root URL: </span>
<input type="text" ng-model="page.hostURL" />
</div>
<div class="attribute">
<span>Randomise Fragment Order: </span>
<input type="checkbox" ng-model="page.randomiseOrder" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Specify if this page should be repeated and how many times. Please note, that if page-pooling is also selected then it 'may' not repeat as many times.">
<span>Numer of repetitions: </span>
<input type="number" ng-model="page.repeatCount" value="0" step="1" placeholder="{{placeholder('repeatCount')}}" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Loop audio playback until manually stopped or the page submit button is pressed">
<span>Loop audio: </span>
<input type="checkbox" ng-model="page.loop" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Synchronise playback of each fragment in this page. If all fragments have the same audio (such as mix evaluations) then this can enable users to seemlessly transition. Otherwise audio will start from the beginning of each fragment">
<span>Synchronous audio playback: </span>
<input type="checkbox" ng-model="page.synchronous" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Over-ride global loudness normalisation">
<span>Loudness (page): </span>
<input type="number" ng-model="page.loudness" max="0" placeholder="{{specification.loudness || placeholder('loudness')}}" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Label type to display on the fragments.">
<span>Label type: </span>
<select ng-model="page.label">
<option value="default">Default</option>
<option value="none">None</option>
<option value="number">[1, 2, 3...]</option>
<option value="letter">[a, b, c...]</option>
<option value="capital">[A, B, C...]</option>
<option value="samediff" ng-show="specification.interface == 'AB'">[Same, Different]</option>
</select>
</div>
<div class="attribute" ng-show="page.label != 'default' && page.label != 'none'">
<span>Label Start: </span>
<input type="text" ng-model="page.labelStart" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Select a subgroup of the given audio fragments to display. 0 or blank means all fragments will be displayed.">
<span>Fragment pool size: </span>
<input type="number" ng-model="page.poolSize" min="0" max="page.audioElements.length" placeholder="{{placeholder('poolSize')}}" />
</div>
<div class="attribute" ng-show="specification.poolSize > 0" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Always display this page, even after sub-pooling of pages">
<span>Always include page: </span>
<input type="checkbox" ng-model="page.alwaysInclude" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Always show this page in this position. Useful for training pages to ensure they are always positioned first.">
<span>Fixed Page Position: </span>
<input type="number" ng-model="page.position" min="0" max="{{specification.pages.length}}" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Over-ride global pre-silence">
<span>Fragment pre-silence: </span>
<input type="number" ng-model="page.preSilence" min="0" step="0.1" placeholder="{{specification.preSilence || placeholder('preSilence')}}" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Over-ride global post-silence">
<span>Fragment post-silence: </span>
<input type="number" ng-model="page.postSilence" min="0" step="0.1" placeholder="{{specification.postSilence || placeholder('postSilence')}}" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Disable switching of audio">
<span>Cannot interupt audio: </span>
<input type="checkbox" ng-model="page.playOne" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Only allow playing fragments' interface handle to be manipulated during playback.">
<span>Only move playing audio: </span>
<input type="checkbox" ng-model="page.restrictMovement" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Over-ride global minimum number of fragment plays">
<span>Minimum number of fragment plays</span>
<input type="number" ng-model="page.minNumberPlays" min="0" max="{{page.maxNumberPlays || specification.maxNumberPlays}}" placeholder="{{specification.minNumberPlays || placeholder('minNumberPlays')}}" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Over-ride global maximum number of fragment plays">
<span>Maximum number of fragment plays</span>
<input type="number" ng-model="page.maxNumberPlays" min="{{page.minNumberPlays || specification.minNumberPlays || 0}}" placeholder="{{specification.maxNumberPlays || placeholder('maxNumberPlays')}}" />
</div>
</div>
<div class="node" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Set the title of the page">
<h3>Page Title</h3>
<textarea ng-model="page.title"></textarea>
</div>
<div class="node">
<h3>Comment box text prefix</h3>
<textarea ng-model="page.commentboxprefix"></textarea>
<p>Example:
<span style="font-weight:600">{{page.commentboxprefix}} A</span>
</p>
</div>
<div class="node" ng-controller="survey" ng-init="survey = page.preTest">
<h2>Pre Page Survey</h2>
<div class="attributes">
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Allow users to go both back and forward in the test">
<span>Show back button: </span>
<input type="checkbox" ng-model="survey.showBackButton" />
</div>
</div>
<button type="button" class="btn btn-success" ng-click="addSurveyEntry()">Add Entry</button>
<div class="node surveyentry" ng-repeat="opt in survey.options" ng-controller="surveyOption">
<h3>Survey Entry</h3>
<button type="button" class="btn btn-danger" ng-click="removeSurveyEntry(opt);">Delete Entry</button>
<div class="attributes">
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Type of survey entry.">
<span>Survey Type: </span>
<select ng-model="opt.type">
<option value="question">Question</option>
<option value="radio">Radio</option>
<option value="checkbox">Checkbox</option>
<option value="statement">Statement</option>
<option value="number">Number</option>
<option value="slider">Slider</option>
<option value="video">Video</option>
<option value="youtube">YouTube</option>
</select>
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Unique across the entire session of all ID entries. ">
<span>Unique Survey Entry ID:</span>
<input type="text" ng-model="opt.id" required/>
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Friendly name. Will be used in test results parsers instead of the ID, if defined.">
<span>Entry Name:</span>
<input type="text" ng-model="opt.name" />
</div>
<div class="attribute" ng-show="['question', 'checkbox', 'radio', 'number'].indexOf(opt.type) >= 0" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="An answer must be given to continue with the test.">
<span>Mandatory:</span>
<input type="checkbox" ng-model="opt.mandatory" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Minimum time in seconds before continuing.">
<span>Minimum Wait Time (s):</span>
<input type="number" ng-model="opt.minWait" min="0" />
</div>
<div class="attribute" ng-show="opt.type == 'question'" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Size of the displayed text box. Does not limit entry but may discourage (or encourage) longer ansewrs if bigger.">
<span>Box Size:</span>
<select ng-model="opt.boxsize">
<option value="small">Small</option>
<option value="normal">Normal</option>
<option value="large">Large</option>
<option value="huge">Huge</option>
</select>
</div>
<div class="attribute" ng-show="['checkbox', 'radio'].indexOf(opt.type) >= 0" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="The minimum number of options that must be selected before continuing">
<span>Minimum Selected:</span>
<input type="number" ng-model="opt.min" min="0" />
</div>
<div class="attribute" ng-show="['checkbox', 'radio'].indexOf(opt.type) >= 0" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Maximum number of options that can be selected to continue.">
<span>Maximum Selected:</span>
<input type="number" ng-model="opt.max" max="{{opt.options.length}}" />
</div>
<div class="attribute" ng-show="['slider', 'number'].indexOf(opt.type) >= 0" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Minimum numerical value">
<span>Minimum Value:</span>
<input type="number" ng-model="opt.min" />
</div>
<div class="attribute" ng-show="['slider', 'number'].indexOf(opt.type) >= 0" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Maximum numerical value">
<span>Maximum Value:</span>
<input type="number" ng-model="opt.max" />
</div>
<div class="attribute" ng-show="['video', 'youtube'].indexOf(opt.type) >= 0" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="URL of the video to embed.">
<span>Video URL:</span>
<input type="text" ng-model="opt.url" />
</div>
</div>
<div class="node" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Statement / Question to pose to the subject.">
<h4>Statement</h4>
<textarea ng-model="opt.statement"></textarea>
</div>
<div class="node" ng-show="['checkbox', 'radio'].indexOf(opt.type) >= 0">
<h4>Options</h4>
<div>
<button type="button" class="btn btn-default" ng-click="addOption();">Add Option</button>
</div>
<div class="node" ng-repeat="option in opt.options">
<div class="attributes">
<div class="attribute">
<button type="button" class="btn btn-default" ng-click="removeOption(option);">Remove</button>
</div>
<div class="attribute">
<span>Name: </span>
<input type="text" ng-model="option.name" required/>
</div>
<div class="attribute">
<span>Displayed Text: </span>
<input type="text" ng-model="option.text" required/>
</div>
</div>
</div>
</div>
<div class="node">
<h4>Conditionals</h4>
<button type="button" class="btn btn-default" ng-click="addCondition()">Add Condition</button>
<div class="node" ng-repeat="condition in opt.conditions">
<div class="attributes">
<div class="attribute">
<button type="button" class="btn btn-danger" ng-click="removeCondition(condition)">Remove</button>
</div>
<div class="attribute">
<span>Check Type:</span>
<select ng-model="condition.check">
<option value="equals">Equal To</option>
<option value="lessThan">Less Than</option>
<option value="greaterThan">Greater Than</option>
<option value="stringContains">String Contains</option>
</select>
</div>
<div class="attribute">
<span>Value: </span>
<input type="text" ng-model="condition.value" required/>
</div>
<div class="attribute">
<span>Jump To On Pass: </span>
<select ng-model="condition.jumpToOnPass">
<option value="">None</option>
<option ng-repeat="entry in survey.options" value="{{entry.id}}">{{entry.id}}</option>
</select>
</div>
<div class="attribute">
<span>Jump To On Fail: </span>
<select ng-model="condition.jumpToOnFail">
<option value="">None</option>
<option ng-repeat="entry in survey.options" value="{{entry.id}}">{{entry.id}}</option>
</select>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="node" ng-controller="survey" ng-init="survey = page.postTest">
<h2>Post Page Survey</h2>
<div class="attributes">
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Allow users to go both back and forward in the test">
<span>Show back button: </span>
<input type="checkbox" ng-model="survey.showBackButton" />
</div>
</div>
<button type="button" class="btn btn-success" ng-click="addSurveyEntry()">Add Entry</button>
<div class="node surveyentry" ng-repeat="opt in survey.options" ng-controller="surveyOption">
<h3>Survey Entry</h3>
<button type="button" class="btn btn-danger" ng-click="removeSurveyEntry(opt);">Delete Entry</button>
<div class="attributes">
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Type of survey entry.">
<span>Survey Type: </span>
<select ng-model="opt.type">
<option value="question">Question</option>
<option value="radio">Radio</option>
<option value="checkbox">Checkbox</option>
<option value="statement">Statement</option>
<option value="number">Number</option>
<option value="slider">Slider</option>
<option value="video">Video</option>
<option value="youtube">YouTube</option>
</select>
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Unique across the entire session of all ID entries. ">
<span>Unique Survey Entry ID:</span>
<input type="text" ng-model="opt.id" required/>
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Friendly name. Will be used in test results parsers instead of the ID, if defined.">
<span>Entry Name:</span>
<input type="text" ng-model="opt.name" />
</div>
<div class="attribute" ng-show="['question', 'checkbox', 'radio', 'number'].indexOf(opt.type) >= 0" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="An answer must be given to continue with the test.">
<span>Mandatory:</span>
<input type="checkbox" ng-model="opt.mandatory" />
</div>
<div class="attribute" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Minimum time in seconds before continuing.">
<span>Minimum Wait Time (s):</span>
<input type="number" ng-model="opt.minWait" min="0" />
</div>
<div class="attribute" ng-show="opt.type == 'question'" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Size of the displayed text box. Does not limit entry but may discourage (or encourage) longer ansewrs if bigger.">
<span>Box Size:</span>
<select ng-model="opt.boxsize">
<option value="small">Small</option>
<option value="normal">Normal</option>
<option value="large">Large</option>
<option value="huge">Huge</option>
</select>
</div>
<div class="attribute" ng-show="['checkbox', 'radio'].indexOf(opt.type) >= 0" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="The minimum number of options that must be selected before continuing">
<span>Minimum Selected:</span>
<input type="number" ng-model="opt.min" min="0" />
</div>
<div class="attribute" ng-show="['checkbox', 'radio'].indexOf(opt.type) >= 0" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Maximum number of options that can be selected to continue.">
<span>Maximum Selected:</span>
<input type="number" ng-model="opt.max" max="{{opt.options.length}}" />
</div>
<div class="attribute" ng-show="['slider', 'number'].indexOf(opt.type) >= 0" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Minimum numerical value">
<span>Minimum Value:</span>
<input type="number" ng-model="opt.min" />
</div>
<div class="attribute" ng-show="['slider', 'number'].indexOf(opt.type) >= 0" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Maximum numerical value">
<span>Maximum Value:</span>
<input type="number" ng-model="opt.max" />
</div>
<div class="attribute" ng-show="['video', 'youtube'].indexOf(opt.type) >= 0" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="URL of the video to embed.">
<span>Video URL:</span>
<input type="text" ng-model="opt.url" />
</div>
</div>
<div class="node" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Statement / Question to pose to the subject.">
<h4>Statement</h4>
<textarea ng-model="opt.statement"></textarea>
</div>
<div class="node" ng-show="['checkbox', 'radio'].indexOf(opt.type) >= 0">
<h4>Options</h4>
<div>
<button type="button" class="btn btn-default" ng-click="addOption();">Add Option</button>
</div>
<div class="node" ng-repeat="option in opt.options">
<div class="attributes">
<div class="attribute">
<button type="button" class="btn btn-default" ng-click="removeOption(option);">Remove</button>
</div>
<div class="attribute">
<span>Name: </span>
<input type="text" ng-model="option.name" required/>
</div>
<div class="attribute">
<span>Displayed Text: </span>
<input type="text" ng-model="option.text" required/>
</div>
</div>
</div>
</div>
<div class="node">
<h4>Conditionals</h4>
<button type="button" class="btn btn-default" ng-click="addCondition()">Add Condition</button>
<div class="node" ng-repeat="condition in opt.conditions">
<div class="attributes">
<div class="attribute">
<button type="button" class="btn btn-danger" ng-click="removeCondition(condition)">Remove</button>
</div>
<div class="attribute">
<span>Check Type:</span>
<select ng-model="condition.check">
<option value="equals">Equal To</option>
<option value="lessThan">Less Than</option>
<option value="greaterThan">Greater Than</option>
<option value="stringContains">String Contains</option>
</select>
</div>
<div class="attribute">
<span>Value: </span>
<input type="text" ng-model="condition.value" required/>
</div>
<div class="attribute">
<span>Jump To On Pass: </span>
<select ng-model="condition.jumpToOnPass">
<option value="">None</option>
<option ng-repeat="entry in survey.options" value="{{entry.id}}">{{entry.id}}</option>
</select>
</div>
<div class="attribute">
<span>Jump To On Fail: </span>
<select ng-model="condition.jumpToOnFail">
<option value="">None</option>
<option ng-repeat="entry in survey.options" value="{{entry.id}}">{{entry.id}}</option>
</select>
</div>
</div>
</div>
</div>
</div>
</div>
<button type="button" class="btn btn-success" ng-show="specification.interface == 'APE' || page.interfaces.length == 0" ng-click="addInterface()">Add Interface/Axis</button>
<div class="node interface" ng-repeat="interface in page.interfaces" ng-controller="interfaceNode">
<h2>Interface</h2>
<button type="button" class="btn btn-danger" ng-click="removeInterface(interface)">Remove Interface/Axis</button>
<div class="node interfaceOptions">
<div class="attributes">
<div class="attribute" name="fragmentPlayed" type="check">
<span>Check all fragments played: </span>
<input type="checkbox" ng-click="enableInterfaceOption($event)" />
</div>
<div class="attribute" name="fragmentFullPlayback" type="check">
<span>Check all fragments fully played: </span>
<input type="checkbox" ng-click="enableInterfaceOption($event)" />
</div>
<div class="attribute" name="fragmentMoved" type="check">
<span>Check all fragments have been moved: </span>
<input type="checkbox" ng-click="enableInterfaceOption($event)" />
</div>
<div class="attribute" name="fragmentComments" type="check">
<span>Check all fragments have comments: </span>
<input type="checkbox" ng-click="enableInterfaceOption($event)" />
</div>
<div class="attribute" name="scalerange" type="check">
<span>Enforce a scale usage: </span>
<input type="checkbox" ng-click="enableInterfaceOption($event)" />
<span>Minimum:</span>
<input type="number" min="0" max="100" name="min" />
<span>Maximum:</span>
<input type="number" min="0" max="100" name="max" />
</div>
<div class="attribute" name="volume" type="show">
<span>Show master volume control: </span>
<input type="checkbox" ng-click="enableInterfaceOption($event)" />
</div>
<div class="attribute" name="playhead" type="show">
<span>Show playhead: </span>
<input type="checkbox" ng-click="enableInterfaceOption($event)" />
</div>
<div class="attribute" name="page-count" type="show">
<span>Show Page Count: </span>
<input type="checkbox" ng-click="enableInterfaceOption($event)" />
</div>
<div class="attribute" name="comments" type="show">
<span>Show Fragment Comments: </span>
<input type="checkbox" ng-click="enableInterfaceOption($event)" />
</div>
<div class="attribute" name="ticks" type="show" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="Show tick marks for each scale label">
<span>Show Scale Ticks: </span>
<input type="checkbox" ng-click="enableInterfaceOption($event)" />
</div>
</div>
</div>
<div class="node">
<h3>Axis Title</h3>
<textarea ng-model="interface.title"></textarea>
<div class="attributes">
<div class="attribute">
<span>Axis name (in saves): </span>
<input type="text" ng-model="interface.name" />
</div>
</div>
</div>
<div class="node">
<h3>Axis Image</h3>
<textarea ng-model="interface.image"></textarea>
</div>
<div class="node" name="scale-selection">
<h3>Axis Scales</h3>
<button type="button" class="btn btn-success" ng-click="addScale();">Add</button>
<button type="button" class="btn btn-danger" ng-click="clearScales()" ng-show="interface.scales.length > 0">Clear Scales</button>
<div class="dropdown" style="display: inline-block;">
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
Scales: {{selectedScale}}
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
<li ng-repeat="scale in scales" ng-click="useScales(scale)"><a href="#">{{scale.name}}</a></li>
</ul>
</div>
<div class="node" ng-repeat="scale in interface.scales">
<div class="attributes">
<div class="attribute">
<button type="button" class="btn btn-danger" ng-click="removeScale(scale);">Remove</button>
</div>
<div class="attribute">
<span>Position: </span>
<input type="number" min="0" max="100" ng-model="scale.position" required/>
</div>
<div class="attribute">
<span>Text: </span>
<input type="text" ng-model="scale.text" required/>
</div>
</div>
</div>
</div>
</div>
<div class="node">
<h3>Comment Questions</h3>
<button type="button" class="btn btn-success" ng-click="addCommentQuestion()">Add Comment Question</button>
<div class="node" ng-repeat="cq in page.commentQuestions">
<button type="button" class="btn btn-danger" ng-click="removeCommentQuestion(cq)">Remove Comment Question</button>
<div class="attributes">
<div class="attribute">
<span>Type:</span>
<select ng-model="cq.type">
<option value="question">Question</option>
<option value="checkbox">Checkbox</option>
<option value="radio">Radio</option>
<option value="slider">Slider</option>
</select>
</div>
<div class="attribute">
<span>Unique ID:</span>
<input type="text" ng-model="cq.id" required/>
</div>
<div class="attribute">
<span>Common Name:</span>
<input type="text" ng-model="cq.name" />
</div>
<div class="attribute">
<span>Mandatory:</span>
<input type="checkbox" ng-model="cq.mandatory" />
</div>
<div class="attribute" ng-show="cq.type == 'slider'">
<span>Minimum:</span>
<input type="number" ng-model="cq.min" />
</div>
<div class="attribute" ng-show="cq.type == 'slider'">
<span>Maximum:</span>
<input type="number" ng-model="cq.max" />
</div>
<div class="attribute" ng-show="cq.type == 'slider'">
<span>Step size:</span>
<input type="number" ng-model="cq.step" />
</div>
<div class="attribute" ng-show="cq.type == 'slider'">
<span>Initial Value:</span>
<input type="number" ng-model="cq.value" />
</div>
</div>
<div class="node">
<h4>Question:</h4>
<textarea ng-model="cq.statement"></textarea>
</div>
<div class="node" ng-show="['radio', 'checkbox'].indexOf(cq.type) >= 0">