forked from CrowdCurio/audio-annotator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
audio.html
67 lines (63 loc) · 3.02 KB
/
audio.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
{% load staticfiles %}
<head>
<link rel="stylesheet" type="text/css" href="{% static 'css/audio-annotator.css' %}" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<script>
/* record ids */
var user_id = {{ user.id }};
var curio_id = {{ curio.id }};
var task_id = {{ task.id }};
var total_num_tasks = {{ condition.configuration.task1.order|length }};
var num_required_tasks;
var experiment_id;
var experiment_name;
var condition_id;
var bonus_pay;
{% if experiment.id %}
bonus_pay = {{ condition.configuration.task1.bonus }};
experiment_name = '{{ experiment.name }}';
experiment_id = {{ experiment.id }};
condition_id = {{ condition.id }};
num_required_tasks = {{ condition.configuration.task1.batch_size }};
{% endif %}
</script>
<!-- Modal Structure -->
<div id="instructions-modal" class="modal" style="max-height: 100% !important;">
<div class="modal-footer">
<a href="#!" class=" modal-action modal-close waves-effect waves-red btn-flat">Close</a>
</div>
<div class="modal-content">
<div id="instructions-container"></div>
<div class="videowrapper">
<iframe id="tutorial-video" width="100%" height="100%" frameborder="0" allowfullscreen></iframe>
</div>
</div>
</div>
<div class="row">
<div class="col s3"> </div>
<div class="col s6">
</div>
<div class="col s3 right", id="instructions-btn">
<a class="waves-effect waves-light modal-trigger right btn" href="#instructions-modal">Instructions</a>
</div>
</div>
<div class="annotation">
<div class="labels"></div>
<div class="audio_visual"></div>
<div class="play_bar"></div>
<div class="hidden_img"></div>
<div class="creation_stage_container"></div>
<div class="submit_container"></div>
</div>
<script type="text/javascript" src="{% static 'tasks/js/labeling/audio/lib/wavesurfer.min.js'%}"></script>
<script type="text/javascript" src="{% static 'tasks/js/labeling/audio/lib/wavesurfer.spectrogram.min.js'%}"></script>
<script type="text/javascript" src="{% static 'tasks/js/labeling/audio/colormap/colormap.min.js'%}"></script>
<script type="text/javascript" src="{% static 'tasks/js/labeling/audio/src/message.js'%}"></script>
<script type="text/javascript" src="{% static 'tasks/js/labeling/audio/src/wavesurfer.regions.js'%}"></script>
<script type="text/javascript" src="{% static 'tasks/js/labeling/audio/src/wavesurfer.drawer.extended.js'%}"></script>
<script type="text/javascript" src="{% static 'tasks/js/labeling/audio/src/wavesurfer.labels.js'%}"></script>
<script type="text/javascript" src="{% static 'tasks/js/labeling/audio/src/hidden_image.js'%}"></script>
<script type="text/javascript" src="{% static 'tasks/js/labeling/audio/src/components.js'%}"></script>
<script type="text/javascript" src="{% static 'tasks/js/labeling/audio/src/annotation_stages.js'%}"></script>
<script type="text/javascript" src="{% static 'tasks/js/labeling/audio/src/main.js'%}"></script>