', {
104 | class: 'stage_3_message'
105 | });
106 |
107 | var time = Util.createSegmentTime();
108 |
109 | time.hide();
110 |
111 | var button = $('.audio_visual');
112 | button.click(function () {
113 | time.show();
114 | });
115 |
116 | var tagContainer = $('
', {
117 | class: 'tag_container',
118 | });
119 |
120 | this.dom = container.append([message, time, tagContainer]);
121 | },
122 |
123 | // Replace the proximity and annotation elements with the new elements that contain the
124 | // tags in the proximityTags and annotationTags lists
125 | updateTagContents: function(proximityTags, annotationTags) {
126 | $('.tag_container', this.dom).empty();
127 | var proximity = this.createProximityTags(proximityTags);
128 | var annotation = this.createAnnotationTags(annotationTags);
129 | $('.tag_container', this.dom).append([annotation, proximity]);
130 | },
131 |
132 | // Create proximity tag elements
133 | createProximityTags: function(proximityTags) {
134 | if (proximityTags.length === 0) { return; }
135 | var my = this;
136 |
137 | var proximity = $('
');
138 | var proximityLabel = $('
', {
139 | class: 'stage_3_label',
140 | text: '请选择标签:',
141 | });
142 |
143 | var proximityContainer = $('
', {
144 | class: 'proximity_tags'
145 | });
146 |
147 | proximityTags.forEach(function (tagName, index) {
148 | var tag = $('