Skip to content

Commit

Permalink
added default timestamp text under each video
Browse files Browse the repository at this point in the history
  • Loading branch information
ZHANG-EH committed Apr 26, 2023
1 parent ad0a8ab commit 0d210d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions equi_app/static/equi_app/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const createSampleInput = (segment_src, segment_label, i, prefix, task_name) =>
<video width="250" controls muted class="p-2" ontimeupdate="updateTime(this)">
<source src="${segment_src}" type="video/mp4"> Your browser does not support the video tag.
</video>
<div class="ps-2"></div>
<div class="ps-2">Timestamp:</div>
<div class="card-body btn-group btn-group-sm p-2" role="group" aria-label="Binary label of the video segment">
<input type="radio" class="btn-check to_submit" name="${prefix}_btnradio_${i}" id="${prefix}_btnradio1_${i}" autocomplete="off" checked>
<label class="btn btn-outline-primary" for="${prefix}_btnradio1_${i}">Positive</label>
Expand All @@ -77,7 +77,7 @@ const createSampleInput = (segment_src, segment_label, i, prefix, task_name) =>
<video width="250" controls muted class="p-2" ontimeupdate="updateTime(this)">
<source src="${segment_src}" type="video/mp4"> Your browser does not support the video tag.
</video>
<div class="ps-2"></div>
<div class="ps-2">Timestamp:</div>
<div class="card-body btn-group btn-group-sm p-2" role="group" aria-label="Binary label of the video segment">
<input type="radio" class="btn-check to_submit" name="${prefix}_btnradio_${i}" id="${prefix}_btnradio1_${i}" autocomplete="off" ${segment_label == 1 ? 'checked' : 'disabled'}>
<label class="btn btn-outline-primary" for="${prefix}_btnradio1_${i}">Positive</label>
Expand All @@ -94,7 +94,7 @@ const createSampleInput = (segment_src, segment_label, i, prefix, task_name) =>
<video width="250" controls muted class="p-2" ontimeupdate="updateTime(this)">
<source src="${segment_src}" type="video/mp4"> Your browser does not support the video tag.
</video>
<div class="ps-2"></div>
<div class="ps-2">Timestamp:</div>
<div class="card-body btn-group btn-group-sm p-2" role="group" aria-label="Binary label of the video segment">
<input type="radio" class="btn-check" name="${prefix}_btnradio_${i}" id="${prefix}_btnradio1_${i}" autocomplete="off" ${segment_label == 1 ? 'checked' : 'disabled'}>
<label class="btn btn-outline-primary" for="${prefix}_btnradio1_${i}">Positive</label>
Expand All @@ -113,7 +113,7 @@ const createSampleOutput = (segment_src, segment_gt_label, i) => {
<video width="85" controls loop muted class="p-2" ontimeupdate="updateTime(this)">
<source src="${segment_src}" type="video/mp4"> Your browser does not support the video tag.
</video>
<div class="ps-2"></div>
<div class="ps-2">Timestamp:</div>
</div>
`);
}
Expand Down
2 changes: 1 addition & 1 deletion equi_app/templates/equi_app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ <h5>Initialization</h5>
<source src="{% static video_path %}" type="video/mp4"> Your browser does not
support the video tag.
</video>
<div class="ps-2"></div>
<div class="ps-2">Timestamp:</div>
<div class="card-body btn-group btn-group-sm p-2" role="group" aria-label="Binary label of the video segment">
{% if query_idx >= 3 %}
<!-- <input type="radio" class="btn-check to_submit" name="init_btnradio_{{ forloop.counter0 }}" id="init_btnradio1_{{ forloop.counter0 }}" autocomplete="off" checked>
Expand Down

0 comments on commit 0d210d9

Please sign in to comment.