Skip to content

Commit

Permalink
Adding video sync button. Addresses #687
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsielicki committed Jan 16, 2017
1 parent aa83b6b commit 927990f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions web-server/plugins/slycat-parameter-image/js/parameter-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ $.widget("parameter_image.controls",
var self = this;
var scatterplot_controls = $("#scatterplot-controls", this.element);
var selection_controls = $("#selection-controls", this.element);
var video_controls = $("#video-controls", this.element);

this.x_control = $('<div class="btn-group btn-group-xs"></div>')
.appendTo(scatterplot_controls)
Expand Down Expand Up @@ -157,6 +158,17 @@ $.widget("parameter_image.controls",
.appendTo(selection_controls)
;

this.video_sync_button = $("\
<button class='btn btn-default' data-toggle='button' title='Sync Videos'> \
<span class='fa fa-video-camera' aria-hidden='true'></span> \
</button> \
")
.click(function(){
self.element.trigger("video-sync", !$(this).hasClass('active'));
})
.appendTo(video_controls)
;

function openCSVSaveChoiceDialog(){
var txt = "";
var buttons_save = [
Expand Down
2 changes: 2 additions & 0 deletions web-server/plugins/slycat-parameter-image/ui.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@

<div id="selection-controls" class="btn-group btn-group-xs"></div>

<div id="video-controls" class="btn-group btn-group-xs"></div>

<div id="color-switcher" class="btn-group btn-group-xs"></div>

<div id="add-note" class="btn-group btn-group-xs"></div>
Expand Down

0 comments on commit 927990f

Please sign in to comment.